* adjust the assign view methods.

This commit is contained in:
wangchunsheng
2013-01-18 01:47:42 +00:00
parent b54b942703
commit acf877aeb8
+8 -9
View File
@@ -166,20 +166,19 @@ class control
$this->pathFix = $this->app->getPathFix();
$this->viewType = $this->app->getViewType();
$this->view = new stdclass();
$this->view->header = new stdclass();
/* Load the model file auto. */
$this->setModuleName($moduleName);
$this->setMethodName($methodName);
/* Load the model file auto. */
$this->loadModel();
/* Assign them to the view. */
$this->assign('app', $app);
$this->assign('lang', $lang);
$this->assign('config', $config);
/* Init the view vars. */
$this->view = new stdclass();
$this->view->app = $app;
$this->view->lang = $lang;
$this->view->config = $config;
$this->view->title = '';
/* Set super vars. */
$this->setSuperVars();
}