How To Make Model Without a Table? Easy Decision!
The answer is simple:
class ModelWithoutTable extends AppModel
{
var $useTable = false;
}
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!
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home