* adjust for construct.

This commit is contained in:
wangyidong
2016-12-02 09:06:58 +08:00
parent 921ff77303
commit aa6864612c
5 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -19,9 +19,9 @@ class testtask extends control
* @access public
* @return void
*/
public function __construct()
public function __construct($moduleName = '', $methodName = '')
{
parent::__construct();
parent::__construct($moduleName, $methodName);
$this->loadModel('product');
$this->view->products = $this->products = $this->product->getPairs('nocode');
if(empty($this->products)) die($this->locate($this->createLink('product', 'showErrorNone', "fromModule=testtask")));