Hi all,
I used what Miles suggested. But don't work. Right now, I am using
this:
Class: TimeLineHelper
File:timeline.php
include: $helpers=array('timeline');
which is working fine.
am still curious why the suggested namiing don't work ?
/b
On May 31, 4:46 am, Miles J <[email protected]> wrote:
> Yeah Cakes naming conventions can be confusing:
>
> Class: TimeLineHelper
> File: time_line.php
> Include: $helpers = array('TimeLine')
>
> On May 29, 8:03 pm, Steve Love <[email protected]> wrote:
>
> > The error message gives you a subtle hint.
> > With a file named time_line.php, try defining it in the controller as:
> > var $helpers = array('TimeLine');
>
> > Steve
>
> > On May 29, 8:58 pm, Bryan Lim <[email protected]> wrote:
>
> > > Hi all,
>
> > > Can someone please tell me what did I do wrong with the naming
> > > convention?
>
> > > I named myhelpertime_line.php. It is called class TimeLineHelper
> > > extends AppHelper.
>
> > > At the controller, var $helpers = array("time_line");
>
> > > But it gives me error that TimeLineHelper is not found.
>
> > > So I change time_line.php to tl.php. TimeLineHelper to TlHelper.
> > > $helpers = array("tl");
>
> > > it works.
>
> > > I am using cakephp 1.3.
>
> > > Thanks!
> > > Bryan
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 the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
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