Re: Implement PUSH Technology in LAMP

2010-01-23 Thread Soloren2001
I suggest you look at XMPP. It won't fit in your lamp stack. You can use ejabberd or Tornado (facebook). Yaws as web server. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to th

Autosuggest Countries

2010-01-23 Thread Dave
How would you build a function to get a country list for a form for auto suggest? Where would you put it? What would you call it? Basically the js calls the url / function but not sure where to put it. Ideally in app_controller so it can be called from anywhere but it has to be accessed via diffe

Re: Security Component - requirePost() method. Change from Link to Form

2010-01-23 Thread DaveTheRave
I did manage to solve it and directly after I had posted this! I retained the ... "echo $form->create('Product', array('action'=>'edit/'.$this->data ['Product']['id']));" on "list.ctp". I changed the link on "edit.ctp" to a verbose link without the "id" i.e. $form->create('Product', array('action'=

Re: Change default language on the fly in a view

2010-01-23 Thread euromark
or did you mean that you want to stay in "English"? and just load ONE static text in French? the rest of the page remains "English"? => no "language switch" used then john's approach would actually fit you need to be careful, though once you allow changing to a secondary language all .po files us

Re: Change default language on the fly in a view

2010-01-23 Thread euromark
i dont think the first param should be "french" or any language so to speak as pointed out in the cookbook it will look up all french language translations inside the locale folder for french anyway so all access to __d() would be in the currenctly active language (like __() as well) and inside i

Re: Thoughs about naming conflict between model and component

2010-01-23 Thread euromark
actually d) does not work for 80% of all components and therefore is not really working scatch that b) will never make it^^ and changing the core is not really an option i guess so its most like either a) or c) both resulting in 2 groups of components - one with native names and one with artifici

Thoughs about naming conflict between model and component

2010-01-23 Thread euromark
there can be several naming conflicts between models and components if you include a new component with an existing model if they have the same name inside the controller example: - db table "emails" with model "Email" and "EmailComponent" both result in $this->Email in the controller overriding e

Re: Change default language on the fly in a view

2010-01-23 Thread John Andersen
The __d() function is used to specify another domain .po file, thus instead of using the default.po, you specify that it should use the french.po :) Example: [code] echo __d('french','Bon Voyage',true); [/code] and CakePHP will look for 'Bon Voyage' in the "french.po" file! See the CakePHP book