public function indexAction() { $phones = Phones::find(); $this->view->phones = $phones; $this->view->user_id = $this->getUserId(); }