Saturday, May 29, 2010

Re: helper naming convention

In your first example, the TimeLineHelper should be named TimeLine in
your helpers array in the controller!
Enjoy,
John

On May 30, 5:58 am, Bryan Lim <ytbr...@gmail.com> wrote:
> Hi all,
>
> Can someone please tell me what did I do wrong with the naming
> convention?
>
> I named my helper time_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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: