Creating own Helper: Problems with including other Helpers, also via app::import

2010-01-12 Thread Deine Mutter
Hey, I'm creating my own helper (PagescrollHelper). I need to include the HtmlHelper and the FormHelper into it. As described in the doc (http:// book.cakephp.org/view/102/Including-other-Helpers) I used: var $helpers = array('Html'); This however leads to an error, which is even described in

Re: Creating own Helper: Problems with including other Helpers, also via app::import

2010-01-12 Thread euromark
use var $helpers = array('Html'); and refer to the helpers in an OOP-way: $this-Html-doSth() On 12 Jan., 22:41, Deine Mutter heyichwuerdgernwissenwerdub...@googlemail.com wrote: Hey, I'm creating my own helper (PagescrollHelper). I need to include the HtmlHelper and the FormHelper into it.

Re: Creating own Helper: Problems with including other Helpers, also via app::import

2010-01-12 Thread Graham Weldon
Can you provide the error you were getting when defining inner helpers in the $helpers array? Cheers, Graham Weldon e. gra...@grahamweldon.com p. +61 407 017 293 w. http://grahamweldon.com On 13/01/2010, at 8:41 AM, Deine Mutter wrote: Hey, I'm creating my own helper

Re: Creating own Helper: Problems with including other Helpers, also via app::import

2010-01-12 Thread Deine Mutter
wow, that was easy. thanks a million times. dunno how i could miss that! On 12 Jan., 23:01, euromark dereurom...@googlemail.com wrote: use var $helpers = array('Html'); and refer to the helpers in an OOP-way: $this-Html-doSth() On 12 Jan., 22:41, Deine Mutter