* change the title assign method.

This commit is contained in:
wangchunsheng
2013-01-20 06:56:13 +00:00
parent 2ce3941615
commit 8df31557a1
+9 -9
View File
@@ -20,7 +20,7 @@ class convert extends control
public function index()
{
$this->convert->saveState();
$this->view->header->title = $this->lang->convert->common;
$this->view->title = $this->lang->convert->common;
$this->display();
}
@@ -32,7 +32,7 @@ class convert extends control
*/
public function selectSource()
{
$this->view->header->title = $this->lang->convert->common . $this->lang->colon;
$this->view->title = $this->lang->convert->common . $this->lang->colon;
$this->display();
}
@@ -53,7 +53,7 @@ class convert extends control
}
list($sourceName, $version) = explode('_', $this->post->source);
$setFunc = "set$sourceName";
$this->view->header->title = $this->lang->convert->setting;
$this->view->title = $this->lang->convert->setting;
$this->view->source = $sourceName;
$this->view->version = $version;
$this->view->setting = $this->fetch('convert', $setFunc, "version=$version");
@@ -102,9 +102,9 @@ class convert extends control
public function checkConfig()
{
$checkFunc = 'check' . $this->post->source;
$this->view->header->title = $this->lang->convert->checkConfig;
$this->view->source = $this->post->source;
$this->view->checkResult = $this->fetch('convert', $checkFunc, "version={$this->post->version}");
$this->view->title = $this->lang->convert->checkConfig;
$this->view->source = $this->post->source;
$this->view->checkResult = $this->fetch('convert', $checkFunc, "version={$this->post->version}");
$this->display();
}
@@ -184,9 +184,9 @@ class convert extends control
public function execute()
{
$convertFunc = 'convert' . $this->post->source;
$this->view->header->title = $this->lang->convert->execute;
$this->view->source = $this->post->source;
$this->view->version = $this->post->version;
$this->view->title = $this->lang->convert->execute;
$this->view->source = $this->post->source;
$this->view->version = $this->post->version;
$this->view->executeResult = $this->fetch('convert', $convertFunc, "version={$this->post->version}");
$this->display();