Controller without Model in CakePHP
In some cases you may need to have a controller without its own model. This might be because you are using other models. You can do this by using an empty array.
<?php
class HomesController extends AppController {
var $name = 'Homes';
var $uses = array(); // Don't use Home Model
function index() {
}
}
?>
December 9, 2010 | Filed Under Php, Web Development
Related Post
Comments
Leave a Reply