Which of the following is an example of a model definition in CakePHP?

Question:Which of the following is an example of a model definition in CakePHP?

1.None of these

2.App::uses('AppModel', 'Model'); class Ingredient extends AppModel { public $name = 'Ingredient'; }

3.CakePlugin::loadAll(); // Loads all plugins at once CakePlugin::load('ContactManager'); //Loads a single plugin

4.class IngredientsController extends AppController { public function index() {


Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!