Added dictionary search
This commit is contained in:
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.
|
||||
|
||||
Reference in new issue
Block a user