summaryrefslogtreecommitdiff
path: root/framework/cli/views/shell/module
diff options
context:
space:
mode:
authorPatrick Seeger <pseeger@ccwn.org>2012-04-13 23:11:05 +0200
committerPatrick Seeger <pseeger@ccwn.org>2012-04-13 23:11:05 +0200
commit341cc4dd9c53ffbfb863e026dd58549c1082c7a7 (patch)
tree1bbbed20313bafb9b063b6b4d894fe580d8b000f /framework/cli/views/shell/module
yii-framework 1.1.10 hinzugefügtHEADmaster
Diffstat (limited to 'framework/cli/views/shell/module')
-rw-r--r--framework/cli/views/shell/module/components/.yii0
-rw-r--r--framework/cli/views/shell/module/controllers/DefaultController.php9
-rw-r--r--framework/cli/views/shell/module/messages/.yii0
-rw-r--r--framework/cli/views/shell/module/models/.yii0
-rw-r--r--framework/cli/views/shell/module/module.php28
-rw-r--r--framework/cli/views/shell/module/views/default/index.php14
-rw-r--r--framework/cli/views/shell/module/views/layouts/.yii0
7 files changed, 51 insertions, 0 deletions
diff --git a/framework/cli/views/shell/module/components/.yii b/framework/cli/views/shell/module/components/.yii
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/framework/cli/views/shell/module/components/.yii
diff --git a/framework/cli/views/shell/module/controllers/DefaultController.php b/framework/cli/views/shell/module/controllers/DefaultController.php
new file mode 100644
index 0000000..957551e
--- /dev/null
+++ b/framework/cli/views/shell/module/controllers/DefaultController.php
@@ -0,0 +1,9 @@
+<?php
+
+class DefaultController extends Controller
+{
+ public function actionIndex()
+ {
+ $this->render('index');
+ }
+} \ No newline at end of file
diff --git a/framework/cli/views/shell/module/messages/.yii b/framework/cli/views/shell/module/messages/.yii
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/framework/cli/views/shell/module/messages/.yii
diff --git a/framework/cli/views/shell/module/models/.yii b/framework/cli/views/shell/module/models/.yii
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/framework/cli/views/shell/module/models/.yii
diff --git a/framework/cli/views/shell/module/module.php b/framework/cli/views/shell/module/module.php
new file mode 100644
index 0000000..c8f6e02
--- /dev/null
+++ b/framework/cli/views/shell/module/module.php
@@ -0,0 +1,28 @@
+<?php echo "<?php\n"; ?>
+
+class <?php echo $moduleClass; ?> extends CWebModule
+{
+ public function init()
+ {
+ // this method is called when the module is being created
+ // you may place code here to customize the module or the application
+
+ // import the module-level models and components
+ $this->setImport(array(
+ '<?php echo $moduleID; ?>.models.*',
+ '<?php echo $moduleID; ?>.components.*',
+ ));
+ }
+
+ public function beforeControllerAction($controller, $action)
+ {
+ if(parent::beforeControllerAction($controller, $action))
+ {
+ // this method is called before any module controller action is performed
+ // you may place customized code here
+ return true;
+ }
+ else
+ return false;
+ }
+}
diff --git a/framework/cli/views/shell/module/views/default/index.php b/framework/cli/views/shell/module/views/default/index.php
new file mode 100644
index 0000000..b726985
--- /dev/null
+++ b/framework/cli/views/shell/module/views/default/index.php
@@ -0,0 +1,14 @@
+<?php
+$this->breadcrumbs=array(
+ $this->module->id,
+);
+?>
+<h1><?php echo $this->uniqueId . '/' . $this->action->id; ?></h1>
+
+<p>
+This is the view content for action "<?php echo $this->action->id; ?>".
+The action belongs to the controller "<?php echo get_class($this); ?>" in the "<?php echo $this->module->id; ?>" module.
+</p>
+<p>
+You may customize this page by editing <tt><?php echo __FILE__; ?></tt>
+</p> \ No newline at end of file
diff --git a/framework/cli/views/shell/module/views/layouts/.yii b/framework/cli/views/shell/module/views/layouts/.yii
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/framework/cli/views/shell/module/views/layouts/.yii