Re: adding helper
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@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: adding helper
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 Controller and wrote constructor to merge helper definition arrays. app_controller.php: controllers/investors_controller.php: helpers = array_merge($this->helpers, $this->extendHelpers); } } ?> --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: adding helper
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', 'Javascript', 'Child'); > > Question is: > when I add 'scriptaculous' helper into AppController, do I have to > update all my controllers and add 'scriptaculous' to all helpers or > there is some way to just extend default helper array? > > Thanks in advance, > 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@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
adding helper
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', 'Javascript', 'Child'); Question is: when I add 'scriptaculous' helper into AppController, do I have to update all my controllers and add 'scriptaculous' to all helpers or there is some way to just extend default helper array? Thanks in advance, 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@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---