-implemented new ui design for preferences page.
This commit is contained in:
parent
89ae221f4c
commit
7c17758721
4 changed files with 17 additions and 20 deletions
|
@ -10,6 +10,8 @@ class PreferenceController extends Zend_Controller_Action
|
|||
|
||||
public function indexAction()
|
||||
{
|
||||
$this->view->statusMsg = "";
|
||||
|
||||
$form = new Application_Form_Preferences();
|
||||
$this->view->form = $form;
|
||||
}
|
||||
|
@ -23,15 +25,18 @@ class PreferenceController extends Zend_Controller_Action
|
|||
|
||||
$form = new Application_Form_Preferences();
|
||||
if (!$form->isValid($request->getPost())) {
|
||||
// Failed validation; redisplay form
|
||||
$this->view->form = $form;
|
||||
return $this->render('index'); //render the phtml file
|
||||
|
||||
} else {
|
||||
$values = $form->getValues();
|
||||
Application_Model_Preference::SetHeadTitle($values["stationName"], $this->view);
|
||||
|
||||
$this->view->statusMsg = "Preferences Updated.";
|
||||
}
|
||||
|
||||
$values = $form->getValues();
|
||||
Application_Model_Preference::SetHeadTitle($values["stationName"], $this->view);
|
||||
|
||||
|
||||
$this->view->form = $form;
|
||||
return $this->render('index'); //render the phtml file
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue