Re: CakePHP 3.0 beta 1: Please help to use Html helper in function on view

2014-09-02 Thread José Lorenzo
Where did you put that generateLink() function? Helpers can only be used in the templates and from other helpers. What you are trying to do is not possible. You can create other helpers that can call the Html helper internally On Tuesday, September 2, 2014 1:57:30 PM UTC+2, Nguyễn Anh Tuấn wrot

CakePHP 3.0 beta 1: Please help to use Html helper in function on view

2014-09-02 Thread Nguyễn Anh Tuấn
Dear all. This so stupid but please help me. In my cell: *app/src/View/Cell/MyCell.php* i'm use public $helpers = ['Html']; In my cell view: *app/src/Template/Cell/MyCell/display.ctp* Html->link('name', ['controller' => 'mycontroller', 'action' => 'myaction', 'param']); // This one work correctly