/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
class UsersController extends AppController { function index() { App::import('Helper', 'Html'); // loadHelper('Html'); in CakePHP 1.1.x.x $html = new HtmlHelper(); } }
URL: http://cakebaker.42dh.com/2007/08/09/how-to-use-a-helper-in-a-controller/
Comments
