Twilight SEO

Standing at the border line. Beautiful color spectrum of Search Engine Optimization. White, Gray, Black Hat SEO learning by doing.

CakePHP: How To Make Controller Without a Model?

Posted in cakephp by ruru 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 :)