Пример #1
0
 public function indexAction()
 {
     $user_id = $this->_user->user_id;
     $this->_db_user->load($user_id);
     // create a new notes
     $notes = new Database_Notes($this->_db);
     $categorys = $notes->getMyCategorysByUserId($user_id);
     $this->view->categorys = $categorys;
     var_dump($categorys);
 }
Пример #2
0
 public function indexAction()
 {
     //$auth = Zend_Auth::getInstance();
     //$user = $auth->getIdentity();
     //$this->view->user = $user;
     $user_id = $this->_user->user_id;
     $this->_db_user->load($user_id);
     // get my  categories
     $notes = new Database_Notes($this->_db);
     $categorys = $notes->getMyCategorysByUserId($user_id);
     $this->view->categorys = $categorys;
     var_dump($categorys);
 }