<?php
/**
 * FecShop file.
 *
 * @link http://www.fecshop.com/
 * @copyright Copyright (c) 2016 FecShop Software LLC
 * @license http://www.fecshop.com/license/
 */

namespace fecshop\app\appadmin\modules\System\controllers;

use fecshop\app\appadmin\modules\System\SystemController;
use Yii;

/**
 * @author Terry Zhao <2358269014@qq.com>
 * @since 1.0
 */
class ExtensioninstalledController extends SystemController
{
    public $enableCsrfValidation = true;

    public function actionManager()
    {
        $data = $this->getBlock()->getLastData();

        return $this->render($this->action->id, $data);
    }

    public function actionManageredit()
    {
        $data = $this->getBlock()->getLastData();

        return $this->render($this->action->id, $data);
    }
    
    public function actionManagerview()
    {
        $data = $this->getBlock()->getLastData();

        return $this->render($this->action->id, $data);
    }
    
    public function actionManagerenable()
    {
        $data = $this->getBlock('manageredit')->extensionEnable();
    }
    
    public function actionManagerdisable()
    {
        $data = $this->getBlock('manageredit')->extensionDisable();
    }
    
    
    
    
    public function actionManagereditsave()
    {
        $data = $this->getBlock('manageredit')->save();
    }
    /*
    public function actionManagerdelete()
    {
        $this->getBlock('manageredit')->delete();
    }
    */
}
