* adjust the assign view methods.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user