/ Published in: PHP
URL: http://cakebaker.42dh.com/2007/08/09/how-to-use-a-helper-in-a-controller/
Expand |
Embed | Plain Text
class UsersController extends AppController { function index() { App::import('Helper', 'Html'); // loadHelper('Html'); in CakePHP 1.1.x.x $html = new HtmlHelper(); debug($html->link('Cake!', 'http://cakephp.org')); } }
You need to login to post a comment.
