Little CakePHP note

If you’re in the view and you want to use a function that’s part of your controller object, you can get at it by using $this->controller->function_name(vars); This is exactly how it should be, but is not really in the documentation.

Leave a Reply

Your email address will not be published. Required fields are marked *