/** * Action * Call the method indexAction * @return nothing */ public function indexAction() { $userTable = new UserTable(); //$u->create(); $user = $userTable->findOne('login = ?', array('gs009')); $this->render('ControllerIndex:ViewIndex', $user); }
/** * [indexAction description] * @return [type] [description] */ public function indexAction() { //die(__function__); //$this->render('ControllerName:ViewFilename', ['boulou'=>'testou']); $u = new UserTable(); $user = $u->findOne('login = ?', array('nellouille')); $this->render('Index:index', $user); }
/** * Finds the UserTable model based on its primary key value. * If the model is not found, a 404 HTTP exception will be thrown. * @param integer $id * @return UserTable the loaded model * @throws NotFoundHttpException if the model cannot be found */ protected function findModel($id) { if (($model = UserTable::findOne($id)) !== null) { return $model; } else { throw new NotFoundHttpException('The requested page does not exist.'); } }