PHP-ist: All about learning PHP, frameworks, tips and tricks

PHP4, PHP5, cakephp, codeigniter, code example (scriptlets / snipplets) and many easy and effective way to learn

CakePHP: How To Make Controller Without a Model?

Posted in cakephp by PHP-ist on the February 8th, 2008
PHP:
  1. class MyController extends AppController
  2. {
  3.     // var $uses = null; works too, BUT MIGHT INTRODUCE BUGS
  4.     var $uses = array();
  5.  
  6.     function index()
  7.     {
  8.     }
  9. }

From: http://cakebaker.42dh.com/

Tags: php4, cakephp, code example

Leave a Reply




Cannot find your answer here?
Feel free to get in touch and ask PHP-ist anything, just anything :)