Thursday, February 7, 2008

How To Make Controller Without a Model?

class MyController extends AppController{
// var $uses = null; works too
var $uses = array();
function index() {
}
}
If you omit the “var $uses = array();” you will get a “missing model” error.
Thank's to CakeBaker!

No comments: