PATH:
home
/
letacommog
/
letaweb
/
install
/
controllers
<?php class SiteController extends CController { public $layout = 'column1'; public function actionIndex() { $model = new InstallForm('update'); if (isset($_POST['InstallForm'])) { $model->attributes = $_POST['InstallForm']; if ($model->save()) { $url = $this->createUrl('complete'); $this->redirect($url); } } $this->render('index', array('model' => $model)); } public function actionComplete() { $this->render('complete', array()); } public function actionError() { if ($error = Yii::app()->errorHandler->error) { if (Yii::app()->request->isAjaxRequest) { echo $error['message']; } else { $this->render('error', $error); } } } }
[+]
..
[-] SiteController.php
[edit]