Re: l10n broken in cake1.2 after update

2009-01-05 Thread Marcelius
I 'fixed' this by adding this to the core.php: Configure::write('localePaths', array(APP . 'locale')); Strange On 5 jan, 14:59, Marcelius wrote: > Hi! > > I've the cake folder from 1.2 beta to 1.2 final, but all translations > with the __() function don't work anymore. (And they did work in >

Re: Call static function in bootstrap.php

2009-01-05 Thread Jon Bennett
Hi cyberscorp, > Well, you cannot call a non-static method in a static way. I think this should probably be handled by your app_controller rather than in bootstrap, in beforeFilter at a guess. You then need to make your 2 methods model methods not controller methods, and call them like so: //

Re: Call static function in bootstrap.php

2009-01-05 Thread Daniel Hofstetter
Hi, > Sorry, it doesn't work. > > Any idea ? Thank you and sorry to bother you [code snipped] Well, you cannot call a non-static method in a static way. -- Daniel Hofstetter http://cakebaker.42dh.com --~--~-~--~~~---~--~~ You received this message because you ar

question about routes. different actions based on sub domain

2009-01-05 Thread Matthew Camuto
hi there. my question should be simple in nature but alas i am stuck. here is the scenaro. i have a side, call it 'd'. what i want is some themes. i.e. food.d.net -> action foo cars.d.net -> action foo i got that all working with apache and using before filter to 'figure out. what i need. all t

Re: New Install Does Not Show Graphics

2009-01-05 Thread Webweave
First look in /usr/local/apache2/conf/httpd.conf and see if rewrite is enabled. Then if that bit is correct, run the following command: apachectl -t -D DUMP_MODULES You should see something like "rewrite_module (shared)" if it is loaded. On Jan 5, 5:30 pm, reidster wrote: > Webweave, > Thanks

Can a webpage tell the source IP of a message? (no-ip.com like appliction)

2009-01-05 Thread Aus
I'm writing an application like no-ip.com , the user will send a _POST message includes the domain name to the website, and the website should map the domain name in the message with the source IP of the message. and update it in the database. so when someone have a computer at home with dynamic

Re: How to change default mailer Email component link

2009-01-05 Thread xeroxss
I checked everything again and I found the stock under the /cake/libs/ view/layouts/email/(html/text) and not in the apps folder anymore. Thanks a lot! On Jan 6, 9:32 am, Bernardo Vieira wrote: > xeroxss, > That is coming from the email layout, which can be found at > app/views/layouts/email/(ht

Re: New Install Does Not Show Graphics

2009-01-05 Thread reidster
Webweave, Thanks for your interest. Here is the configuration. Configuration: PHP Version 5.2.8 Apache/2.2.11 Linux 2.6.18-92.1.22.el5 #1 (CentOS 5.2) Cake 1.2.0.7962 I have cake directory downloaded and extracted into the htdocs directory. [r...@localhost rillian_cake]# pwd /usr/local/apache2

Does Router::url understand mapResources?

2009-01-05 Thread Tobin Richard
Hello all, I'm a Rails developer stuck in CakePHP land for a while so if this question may have an obvious answer I'm not aware of. Feel free to scold me as needed. :) I'm trying to create a URL to a resource but Router::url doesn't produce correct URLs. As an example, if you have the following

Re: HABTM and associations and loading

2009-01-05 Thread Troy Schmidt
Yes I think it is HABTM on HABTM that causes the problem. But no one has any comment on the performance hit seen by bindModel? If there is any. On Jan 4, 8:48 pm, Webweave wrote: > What do you mean "never runs" ? Do you mean it times out, or dies, or > what ? > > On Jan 4, 4:32 pm, Troy Schmid

Re: How to change default mailer Email component link

2009-01-05 Thread Bernardo Vieira
xeroxss, That is coming from the email layout, which can be found at app/views/layouts/email/(html|text)/default.ctp. Here's what the stock html/default.ctp looks like: This email was sent using the http://cakephp.org";>CakePHP Framework Remove or replace the link and yo

Re: How to change default mailer Email component link

2009-01-05 Thread Bernardo Vieira
xeroxss, That is coming from the email layout, which can be found at app/views/layouts/email/(html|text)/default.ctp. Here's what the stock html/default.ctp looks like: This email was sent using the http://cakephp.org";>CakePHP Framework Remove or replace the link and yo

Re: include calculated data in the model

2009-01-05 Thread Adam Royle
Just add a physical "amount" field to your orders table, and then add a method to your Order model which calculates the order total and updates the order. Then call that method whenever you add/modify/ delete your OrderProducts. On Jan 6, 8:21 am, Yannis wrote: > I have this kind of db structure

Re: How to change default mailer Email component link

2009-01-05 Thread xeroxss
Hi Bernardo, thanks for the reply maybe in other versions the xmailer property is tucked away. but this time it's showing on the email body. and not on the header. Below is what I get from the mailer. I'm using the latest version of cake. Hi xeroxss, Thank you for signing up in our service. To co

Re: Using the named parameters

2009-01-05 Thread Bernardo Vieira
Slightly (but not by a big margin) shorter version: $var = ife($this->params['named']['var'],$this->params['named']['var']); gearvOsh wrote: > Is this the only way to access named parameters without throwing a > notice? > > $var = (isset($this->params['named']['var'])) ? $this->params['named'] >

Using the named parameters

2009-01-05 Thread gearvOsh
Is this the only way to access named parameters without throwing a notice? $var = (isset($this->params['named']['var'])) ? $this->params['named'] ['var'] : ''; Is there some sort of function to get named params that im overlooking? --~--~-~--~~~---~--~~ You receiv

Re: Auth Login Component not working :(

2009-01-05 Thread gearvOsh
Leave your login() action empty. CakePHP automatically does all the login magic. http://www.milesj.me/blog/read/5/using-cakephps-auth-component/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To pos

include calculated data in the model

2009-01-05 Thread Yannis
I have this kind of db structure: Each Account has many Orders. Each Order has many OrderProducts. OrderProduct contains fields like product name, price, quantity. I want to show at the account view a list of related orders and each order has a field "amount" which will be the sum of related ord

Re: 404 error

2009-01-05 Thread Webweave
Your app is in a sub-directory, if you want it to be in the root, you need to change your configuration or move the app up a directory. Apparently you have the app for posts in the root for that web server, which is why it works with /posts/edit On Jan 5, 12:43 pm, sarahlou wrote: > I'm a newbi

Re: setting up cake bake console

2009-01-05 Thread Webweave
Step 1: change directory to where your app lives (in your example above /Users/myusername/myappname) Step 2: from a console, type "cake bake" Step 3: follow the prompts ... On Jan 5, 1:15 pm, gemmes wrote: > Hi, > > I ran: > > cake bake > > I entered my path to appname and proceeded along with n

Re: New Install Does Not Show Graphics

2009-01-05 Thread Webweave
It should be compiled into Apache so you shouldn't have to download it separately. What platform are you on? On Jan 5, 1:31 pm, reidster wrote: > This is all I see in modules.  I know this isn't an apache group. > But, do you know if apache requires any special configure options for > mod_rewrit

Re: List users who are logged in

2009-01-05 Thread Webweave
You can get some of this if you set up your app to use the database to store sessions. Look at config/core.php where it talks about setting Session.save to 'database' On Jan 5, 10:50 am, Bernardo Vieira wrote: > AFAIK you'd need to create custom login and logout actions in your users > controlle

Re: debug a failed save()

2009-01-05 Thread Webweave
Did you try setting debug=2 or 3 so you can see the queries that were executed, and the data ? The code you posted doesn't show you disabling validation, Cake does the validation unless you a) remove any validation from the model or b) you explicitly turn off validation in your save call. Withou

Re: New Install Does Not Show Graphics

2009-01-05 Thread reidster
This is all I see in modules. I know this isn't an apache group. But, do you know if apache requires any special configure options for mod_rewrite? [r...@localhost modules]# pwd /usr/local/apache2/modules [r...@localhost modules]# ls httpd.exp libphp5.so On Jan 5, 4:20 pm, Bernardo Vieira wr

Re: problem with password using AUTH

2009-01-05 Thread gpreston
Best practice would be to leave the password fields blank when the user updates their profile, don't auto-fill the fields in, ever. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this gro

Re: New Install Does Not Show Graphics

2009-01-05 Thread Bernardo Vieira
The actual path to .so files varies in the various linux distros. Scan through your httpd.conf and look for the extensions/modules path and see if mod_rewrite.so exists in that path (from the directory listing you provided I'm guessing /usr/local/apache2/modules). reidster wrote: > Thanks for

Auth Login Component not working :(

2009-01-05 Thread Darren884
Hi I am trying to return a rendered element so I have to customize the login() function on the controller I am using, however its not running the query right even though the fields it is supposed to process are defined in the model. Here is the beforeRender code: PHP Code: function beforeFi

Re: setting up cake bake console

2009-01-05 Thread gemmes
Hi, I ran: cake bake I entered my path to appname and proceeded along with no problems until I tried to do: cake bake model this caused the following error: Error: Model directory could not be found. Be sure you have created /Users/myusername/models/ myusername:~ myusername$ When i try cake

404 error

2009-01-05 Thread sarahlou
I'm a newbie to Cake, so bear with me I've managed to complete the blog tutorial, and now trying the IBM 'Cook up Websites fast' tutorial. However, I get a 404 URL not found error when trying to view http://[domain]/users/register. I can see the register view as expected when I use http://[

Re: New Install Does Not Show Graphics

2009-01-05 Thread reidster
Thanks for the reply. My httpd.conf does not have mod_rewrite enabled. I checked the doc in the aforementioned url, but could not locate the .so file. This does not exist in my apache install. Do I need to re-configure apache? libexec/httpd/mod_rewrite.so [r...@localhost apache2]# ls bin bui

Re: Exposing a Web Service on a Cake Shell

2009-01-05 Thread The_Saint
> Well I don't think that because databases are getting better then we > should stop writing good code because the database can handle the > extra load of a bad written application, at least in my case. The log > file I'm processing with the cake shell is being written constantly, > and the data t

Re: Can i compile the PHP webpage instead of leaving the source code on the server?

2009-01-05 Thread Aus
I do like the Mac address and license thing, but the encryption with ioncube sounds more flexible and less work, i don't care if the website is copied by users, it have many dependencies and will be useless. I only care if it can be open to read ! , inocube sounds like a winner. On Jan 5, 7:48 pm

RE: AJAX Div moving

2009-01-05 Thread Steven Wright
jQuery is the way to go. Just try it out in a single HTML page. You will get the hang of it faster than you think -Original Message- From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf Of KooT Sent: Monday, January 05, 2009 2:52 PM To: CakePHP Subject: AJAX Di

AJAX Div moving

2009-01-05 Thread KooT
I want to create page with movig div's. 10 blocks movind down with content from diffrent categorry. Is there any modules/helper that will help in this kind of things? or maybe i need to use some JS library like jQuery. The real problem is that im not good in JS.. Thanks for any help. --~--~

Re: creating tmp-folder on install

2009-01-05 Thread The_Saint
On Jan 5, 2:11 am, Webweave wrote: > It depends on the users and groups that own your app directory on the > server. If the two users belong to the same group, and the permissions > are set properly with group having full permissions on app, then you > should be able to create the app/tmp directo

debug a failed save()

2009-01-05 Thread brian
I've gone as far as I can in debugging why a save() is failing. I'd appreciate any tips. The situation: I have a form on a user's profile page for uploading a headshot image. The image is being saved ok. The part that's failing is updating the user's record in the DB. The code: $this->Member->r

Re: List users who are logged in

2009-01-05 Thread Bernardo Vieira
AFAIK you'd need to create custom login and logout actions in your users controller to keep a list of logged in users. jmmg77 wrote: > Hi, > > I'm using Cake 1.2 RC3 and the Auth component. > > Is there a way to simply list the user accounts that are logged in. > Or, is there a way to check if a

Re: Can i compile the PHP webpage instead of leaving the source code on the server?

2009-01-05 Thread The_Saint
On Jan 5, 3:49 pm, Mathew wrote: > If your trying to protect an algorithm then you could store the source > code for the algorithm in a text file that is encrypted with a key > from a license file. Design your license file to include the Mac > address. That should be good enough for most cases. T

Re: Auth Redirect And Routes

2009-01-05 Thread Webweave
Don't set the loginRedirect in your beforeFilter, and then just use $this->Auth->redirect() in your login function as follows: /** * Login function - this is where we do the login ... */ function login() { if ($this->Auth->user()) { $this->Session->S

Re: custom SQL query - all values IN() bust be AND

2009-01-05 Thread Webweave
I'm not really clear on what it is you are trying to fetch. Are you trying to restrict your results by the associated values? The results you show can be fetched using a normal find('all') assuming your models are correct. Just add another select count to the conditions like: $this->Advert->find

List users who are logged in

2009-01-05 Thread jmmg77
Hi, I'm using Cake 1.2 RC3 and the Auth component. Is there a way to simply list the user accounts that are logged in. Or, is there a way to check if a particular userid is logged in? I know I can use $session->check('Auth.User.id') or $this->Auth->User ('id') to check if the current user is lo

Re: Problem after uploading to host - mod_rewrite is enabled apparently

2009-01-05 Thread Webweave
You have to look in the httpd.conf file to see if it is allowed or not. You should see something like LoadModule rewrite_module libexec/ httpd/mod_rewrite.so or (for Apache 1.3) AddModule mod_rewrite.c in your httpd.conf. See: http://book.cakephp.org/view/333/A-Note-on-mod_rewrite On Jan 5, 7:3

Using Containable behaviour with join models

2009-01-05 Thread Joe Critchley
I'm doing a find on an "auto-with" (doesn't actually exist) join model, but the difference between recursive levels 1 and 2 is too big, so I want to be able to use Containable. However, I get this error when I try to attach "FinderWear" model Model "FinderItemsUser" is not associated with mod

Re: Exposing a Web Service on a Cake Shell

2009-01-05 Thread Juan Luis Baptiste
On Sun, Jan 4, 2009 at 12:35 PM, Adam Royle wrote: > > Todays databases are designed to handle a crapload of queries, so > don't be afraid to take advantage of this. Just make sure you've got > indexes on the right columns and your queries are using those indexes. > You could possible create anot

Re: How to change default mailer Email component link

2009-01-05 Thread Bernardo Vieira
It's not advisable to change code directly in cake's core files. Cake is designed in a way that pretty much everything is customizable on a per application basis. Furthermore the xMailer property is not actually visible in the email body, it only appears in the email's headers which are norm

How to change default mailer Email component link

2009-01-05 Thread xeroxss
Hi!, I'm new to Cake PHP and i'm trying to change the link in the email being sent by the cake php framework. I change the definition in the following line of the email.php in the /cake/libs/controller/components/email.php but I'm still seeing the same message even if I deleted my cache. Is there

Re: cakeError

2009-01-05 Thread majna
Paste to http://bin.cakephp.org/ your error handler On Jan 5, 4:25 pm, "Mike Bernat" wrote: > At second glance.. it looks like you might want to be using flash messages > that contain your error messages rather than cake's built-in error handling. > > On Mon, Jan 5, 2009 at 10:24 AM, Mike Bernat

Re: Can i compile the PHP webpage instead of leaving the source code on the server?

2009-01-05 Thread Mathew
Use the Zend Optimizer as it also makes your code run faster. It converts your source code into byte code which is the same approach as the Java compiler. There are decompilers that can revert the code back into text, but the context of how everything works and all the source code comments are los

Re: id as primary db key

2009-01-05 Thread Adriano Varoli Piazza
On 5 ene, 11:59, steveh wrote: > Folks, > > I'm a bit new to CakePHP (Java guy from the way back time)and all was > going well and I have been very happy with the framework until I > am trying to simply html->link a column record in a table to a view. > Pretty basic stuff and I have done it a

Re: save() and conditions for update

2009-01-05 Thread WebbedIT
product_id cannot be the primary key alone whilst it has multiple keys with the same value. Your primary key is more likely product_id AND catalgoue_id [sic]. As a rule I add id fields to my join tables to be used as the primary key, but I would imagine that in the absence of this cake should up

Re: Problem after uploading to host - mod_rewrite is enabled apparently

2009-01-05 Thread will
Sorry - the .htaccess file in the /app/webroot folder has the following lines in it: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] Is this the file in question? Thanks very much On Jan 5, 1

Re: cakeError

2009-01-05 Thread Mike Bernat
At second glance.. it looks like you might want to be using flash messages that contain your error messages rather than cake's built-in error handling. On Mon, Jan 5, 2009 at 10:24 AM, Mike Bernat wrote: > You normally don't want that type of verbose error message presented to any > old user. H

Re: cakeError

2009-01-05 Thread Mike Bernat
You normally don't want that type of verbose error message presented to any old user. However, you can enable the debug behavior on an ad-hoc basis by using Configure::write('debug', 2); On Mon, Jan 5, 2009 at 10:17 AM, Aidan Lister wrote: > > I've spent some time creating meaningful error pages

Re: Call static function in bootstrap.php

2009-01-05 Thread cyberscorp
Sorry, it doesn't work. Any idea ? Thank you and sorry to bother you *** bootstrap.php // Encodage // Configure::write('App.encoding', 'utf-8'); // Langues // --- // get actiavted languages $languages = LanguagesController::getActivat

cakeError

2009-01-05 Thread Aidan Lister
I've spent some time creating meaningful error pages for my users (a selection of my users have access to advanced tools like pdf generation). Each error page was a custom error handler, called by $this->cakeError('foo'); as defined in /app/app_error.php I was quite shocked to discover that once

Re: exclude directory from routing

2009-01-05 Thread eMarcus
Thanks grigri, That did the trick! bye me. On Jan 5, 2:40 pm, grigri wrote: > Just add this to your root .htaccess file [before the cake bit] > > # Overrides > >     RewriteEngine On >     RewriteCond %{REQUEST_URI} ^/?(clickheat)/(.*)$ >     RewriteRule ^.*$ - [L] > > # Cake rewrites here >

Re: id as primary db key

2009-01-05 Thread Bernardo Vieira
You can set Model::primaryKey to whatever field you need ;) steveh wrote: > Folks, > > I'm a bit new to CakePHP (Java guy from the way back time)and all was > going well and I have been very happy with the framework until I > am trying to simply html->link a column record in a table to a view

Re: custom SQL query - all values IN() bust be AND

2009-01-05 Thread dev
You wrote good solution, but if I need more than one model (HABTM) where i can search for results, like: Advert HABTM Option Advert HABTM Exta example: [0] => Array ( [Advert] => Array ( [id] => 2 [code] => 54

id as primary db key

2009-01-05 Thread steveh
Folks, I'm a bit new to CakePHP (Java guy from the way back time)and all was going well and I have been very happy with the framework until I am trying to simply html->link a column record in a table to a view. Pretty basic stuff and I have done it a dozen times, with test dbs that have alway

Paginate using multiple tables/associations

2009-01-05 Thread WebbedIT
I have the following Models Referral belongsTo => array('Client') Client belongsTo => array('Person') Person hasOne => array('Client') I can pull out paginated data using the following $this->paginate['Referral'] = array('recursive'=>2); $this->data['Referrals'] = $this->paginate('Referra

l10n broken in cake1.2 after update

2009-01-05 Thread Marcelius
Hi! I've the cake folder from 1.2 beta to 1.2 final, but all translations with the __() function don't work anymore. (And they did work in 1.2beta) I've cleared the tmp folder, renewed session but no result. Any ideas? --~--~-~--~~~---~--~~ You received this messa

Re: exclude directory from routing

2009-01-05 Thread grigri
Just add this to your root .htaccess file [before the cake bit] # Overrides RewriteEngine On RewriteCond %{REQUEST_URI} ^/?(clickheat)/(.*)$ RewriteRule ^.*$ - [L] # Cake rewrites here # ... [Obviously you need to change 'clickheat' to the name of your directory - or use `(clickhea

Re: Problem after uploading to host - mod_rewrite is enabled apparently

2009-01-05 Thread will
Thanks. There is no mention of mod_rewrite in .htaccess. Does this mean it is allowed, or disallowed? Thanks a lot for your help On Jan 5, 12:15 pm, "netik...@gmail.com" wrote: > be sure to check if mod_rewrite is allowed from .htaccess > > On Jan 5, 12:01 pm, will wrote: > > > Hi there, > >

AW: exclude directory from routing

2009-01-05 Thread Liebermann, Anja Carolin
Hi Marcus, I guess the proper setup for the whole thing would be to have the CakePHP-Website and the other one in parallel folders and not the independent one in a subfolder of the Cake-Website / | __cakesite | __other website Anja -Ursprüngliche Nachricht- Von: cake-php@googlegroups

AW: Auth Redirect And Routes

2009-01-05 Thread Liebermann, Anja Carolin
Hi Novice, As far as I have understood the redirect you leave it empty / undefined to achieve, what you want. Anja Von: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] Im Auftrag von Novice Programmer Gesendet: Montag, 5. Januar 2009 12:30 An: c

Re: Call static function in bootstrap.php

2009-01-05 Thread Daniel Hofstetter
Hi, > if i use : > > App::import('Controller', 'Languages'); > > i got the following error: > > Fatal error: Class 'Controller' not found in /var/www/project/app/ > app_controller.php on line 2 It seems like you also have to import the Controller class with App::import('Core', 'Controller'); --

Re: Problem after uploading to host - mod_rewrite is enabled apparently

2009-01-05 Thread netik...@gmail.com
be sure to check if mod_rewrite is allowed from .htaccess On Jan 5, 12:01 pm, will wrote: > Hi there, > > Thought I'd already posted this, but it didn't seem to be listed. > Apologies if this appears twice, then. > > I've been playing with cake on my local machine and decided to upload > it to m

Re: Benefits for $html->link

2009-01-05 Thread grigri
The main difference is reverse routing. Defining a specific route syntax for a given controller/action and using the array method will make the correct url. Let's say you have `Router::connect('/catalogue/c/*', array('controller' => 'categories', 'action' => 'view'));` `Router::connect('/catalo

Re: Auth Redirect And Routes

2009-01-05 Thread Novice Programmer
i meant $this->redirect($this->Auth->redirect()); Sorry for the typo.. :( Thanks. On Mon, Jan 5, 2009 at 4:52 PM, Novice Programmer wrote: > Hello All, > > I am trying to set up auth redirect. i.e the user will be redirected to > login screen if he accesses a page which can't be accessed withou

Auth Redirect And Routes

2009-01-05 Thread Novice Programmer
Hello All, I am trying to set up auth redirect. i.e the user will be redirected to login screen if he accesses a page which can't be accessed without the username/password. After the user authenticates, I try to redirect the user back to the page which he was accessing using $this->redirect($this-

save() and conditions for update

2009-01-05 Thread netik...@gmail.com
Hi, is it possible to define update conditions for save() method ? For example I have multiple habtm relations n <-> n and i like to update or delete only one relation : product_id (123) <-> catalgoue_id (2) product_id (123) <-> catalgoue_id (3) product_id (123) <-> catalgoue_id (4) so currentl

404 error on remote server - mod_rewrite is apparently enabled

2009-01-05 Thread will
Hi there, I've been playing with Cake on my local machine and wanted to check that it works on my host's servers. When I uploaded Cake and tried to view the main page, I got an Apache index page listing the directories (app/ and cake/). The hosts insist that mod_rewrite is enabled. When I try

Problem after uploading to host - mod_rewrite is enabled apparently

2009-01-05 Thread will
Hi there, Thought I'd already posted this, but it didn't seem to be listed. Apologies if this appears twice, then. I've been playing with cake on my local machine and decided to upload it to my host's server to check that it works there. The page that should be the Cake homepage appears as an A

multibyte support in slug?

2009-01-05 Thread KoPanda
i'm working on a website in chinese with tags. i'd like to generate clean urls in /posts/tag/飲食. i also want to save the tag as slug. i did changed some codes to cater multibyte support in the Inflector::slug() of cakephp 1.2 RC3 and it worked. but the same approach doesn't work for 1.2 final and

Re: Call static function in bootstrap.php

2009-01-05 Thread cyberscorp
if i use : App::import('Controller', 'Languages'); i got the following error: Fatal error: Class 'Controller' not found in /var/www/project/app/ app_controller.php on line 2 Thanks Daniel Hofstetter a écrit : > Hi, > > > I'm using a language controller to manage languages (activating and > >

exclude directory from routing

2009-01-05 Thread eMarcus
Hi, On my cakephp testenvironment, I would like to exclude a specific directory from any cakephp rerouting. That directory holds an independent website. However, when I try to access a page in that directory, cakephp tries to load a controller that is called like the directory - which obviously

Benefits for $html->link

2009-01-05 Thread gearvOsh
Are there any benefits, or behind the scenes magic for doing this: $html->link('Link', array('controller' => 'users', 'action' => 'login', 'var')); Compared to: $html->link('Link', '/users/login/var/'); This also applies to anywhere else you build urls. --~--~-~--~~~---

Re: Call static function in bootstrap.php

2009-01-05 Thread Daniel Hofstetter
Hi, > I'm using a language controller to manage languages (activating and > set to default functions etc...) > How can i call a static function in bootstrap to load activated > languages? > > ex: > > // get activated languages > $languages = LanguagesController::getActivatedLanguages(); App::imp

Call static function in bootstrap.php

2009-01-05 Thread cyberscorp
Hi I'm using a language controller to manage languages (activating and set to default functions etc...) How can i call a static function in bootstrap to load activated languages? ex: // get activated languages $languages = LanguagesController::getActivatedLanguages(); Thank you & Happy new y

Re: Can i compile the PHP webpage instead of leaving the source code on the server?

2009-01-05 Thread Aus
Thanks for your answers guys, but see, i'm selling embedded systems that have a web interface (the value of the product is in the web application), it's kind of like a lan switch but it's not. however, that means the users will have direct access to the code anyway. so i guess that i have to tak

Re: need help on ACM plugin

2009-01-05 Thread vikas
Also need for minimum table structure for ACM plugins.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, s

need help on ACM plugin

2009-01-05 Thread vikas
hi all... I want to use ACM plugin for my project which is available at: http://cakeforge.org/projects/acm/ But the problem is there is not much documentation on that helper... when I am trying to use that plugin according to the documentation I got error given below: **

Re: Can i compile the PHP webpage instead of leaving the source code on the server?

2009-01-05 Thread p...@otaqui.com
Hi Aus, sorry if this is obvious, but it's worth noting that your source code on the server will not be viewable by any casual user. Someone would have to be have either FTP or shell access on the server to be able to get the source code. Best, Pete On Jan 5, 11:10 am, Aus wrote: > I've desi

Re: Can i compile the PHP webpage instead of leaving the source code on the server?

2009-01-05 Thread Sergei
Also don't forget that all of these compilers have decoders (Zend Optimizer too, of course), so they're mostly useless, but cost quite a lot! I wonder what precious source code Aus "designed" that it needs to be hidden? Hmm. On Jan 5, 2:48 pm, thatsgreat2345 wrote: > There is also ioncube > >