controllers/ExtensionController.php
public function actionEnable($class)
    {
        try {
            if (Yii::$app->rhoone->ext->enable($class)) {
                echo "Enabled.";
            } else {
                echo "Failed to enable.";
            }
        } catch (\Exception $ex) {
            throw new Exception($ex->getMessage());
        }
        return 0;
    }
public function actionEnable($class)
    {
        try {
            if (Yii::$app->rhoone->ext->enable($class)) {
                echo "Enabled.";
            } else {
                echo "Failed to enable.";
            }
        } catch (\Exception $ex) {
            throw new Exception($ex->getMessage());
        }
        return 0;
    }
public function actionEnable ( $ class ) { try { if ( Yii :: $ app -> rhoone -> ext -> enable ( $ class ) ) { echo "Enabled." ; } else { echo "Failed to enable." ; } } catch ( \ Exception $ ex ) { throw new Exception ( $ ex -> getMessage ( ) ) ; } return 0 ; }
Enable an extension.
@param string $class
@return int
Enable an extension .