Saturday, May 29, 2010

Re: helper naming convention

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 <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: