Skip to content

Commit

Permalink
R
Browse files Browse the repository at this point in the history
  • Loading branch information
SamMousa committed Feb 3, 2015
1 parent 8312e3a commit 04ed465
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
15 changes: 15 additions & 0 deletions plugins/befound/ls/ModulePlugin/ModulePlugin.php
@@ -0,0 +1,15 @@
<?php
namespace befound\ls\ModulePlugin;
/**
* Example plugin that can not be activated.
*/
class ModulePlugin extends \ls\pluginmanager\PluginModule
{
public $defaultController = 'dashboard';
public $controllerNamespace;

public function __construct() {
$this->controllerNamespace = __NAMESPACE__ . '\\controllers';
}
}
?>
6 changes: 6 additions & 0 deletions plugins/befound/ls/ModulePlugin/config.json
@@ -0,0 +1,6 @@
{
"name" : "ModulePlugin",
"namespace" : "\\befound\\ls\\ModulePlugin",
"description" : "Example plugin that uses a Yii module.",
"type" : "module"
}
@@ -0,0 +1,15 @@
<?php
namespace befound\ls\ModulePlugin\controllers;
use \ls\pluginmanager\PluginController;

class DashboardController extends PluginController{
public function accessRules() {
return array_merge([
['allow', 'roles' => ['superadmin']]

], parent::accessRules());
}
public function actionIndex() {
echo 'nice';
}
}

0 comments on commit 04ed465

Please sign in to comment.