CakePHP controller without a model


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. //### A controller without a model
  2. //### From CakeBaker at :
  3. //### http://cakebaker.42dh.com/2006/02/01/a-controller-without-a-model/
  4.  
  5. class MyController extends AppController
  6. {
  7. // var $uses = null; works too
  8. var $uses = array();
  9.  
  10. function index()
  11. {
  12. }
  13. }

URL: http://cakebaker.42dh.com/2006/02/01/a-controller-without-a-model/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.