Re: Adding helper in layout

2007-10-16 Thread dijaplus
Try var $helper = array('CssMenu') as cakephp conventions --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this gro

Re: adding helper

2006-11-12 Thread Andrej
Meek, you are right. At least I get familiar with inheritance model in cakephp. Thanks, a. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroup

Re: adding helper

2006-11-12 Thread meek
Hi, Your solution shouldn't be necessary. Cake merges $helper, $component and even $uses arrays automatically. So if you have ... var $helpers = array('Html','Javascript'); ... in your AppController, and ... var $helpers = array('MyHelper'); ... in your child controller, then all three Helpers wil

Re: adding helper

2006-11-12 Thread Andrej
As I've got solution I post it to community. According to http://www.php.net/manual/en/keyword.parent.php it's impossible to access parent variables using parent:: The only way to access parent variable is _not_ to use same variable name in derived class. So I put a new variable into my custom Co

Re: adding helper

2006-11-12 Thread Andrej
On Nov 11, 8:55 pm, "Andrej" <[EMAIL PROTECTED]> wrote: > in AppController I've got two default helpers: > > var $helpers = array('html','javascript'); > > in EmployeesController I want to use another helper, the Child helper. > It is possible by typing: > > var $helpers = array('Html', 'Javascr