Added dictionary search

This commit is contained in:
vladislav.khorev committed 2014-11-26 20:18:59 +00:00
1 parent a6d1de6c1a
commit 830b830358
14 files changed
+661 -1

No files matched your search

@@ -49,6 +49,31 @@ class SiteController extends Controller
));
}
/**
* This is the action to handle external exceptions.
*/
public function actionDictionary()
{
$model = new DictionaryForm;
// collect user input data
if(isset($_POST['DictionaryForm']))
{
$model->attributes=$_POST['DictionaryForm'];
$model->getResponse();
if ($model->serverIsWorking)
{
$this->render('dictionaryResult',array('model'=>$model));
return;
}
}
$this->render('dictionary',array('model'=>$model));
}
/**
* This is the action to handle external exceptions.