Zend Framework and CodeIgniter Model class doubts -


both zend , ci framework have seperate model, view, controller directories. doubt how use model in zend framework.

[ codeigniter controller ]

<?php class users extends ci_controller {     function __construct()     {         parent::__construct();         $this->load->model('users_model');     }      function index()     {         // here using model function //         $myvar = $this->user_model->login();     } } ?> 

[ zend framework controller ]

<?php class userscontroller extends zend_controller_action {     public function indexaction()     {         // how load model , use here ???? //     } } ?> 

in codeigniter controller load model "users_model" , used in index function. in same way how create zend model , use in controller? please me, sorry english not good.

thanks friends, rajendra

you shouldn't compare zend codeigniter since philosophy quite different.

it best read: http://framework.zend.com/manual/en/learning.quickstart.create-model.html


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -