[puntoengine] r98 committed - * Added ExampleController

0 views
Skip to first unread message

punto...@googlecode.com

unread,
Nov 1, 2011, 5:35:13 PM11/1/11
to punto...@googlegroups.com
Revision: 98
Author: jba...@gmail.com
Date: Tue Nov 1 14:34:57 2011
Log: * Added ExampleController
http://code.google.com/p/puntoengine/source/detail?r=98

Added:
/trunk/puntoengine/controllers
/trunk/puntoengine/controllers/ExampleController.php

=======================================
--- /dev/null
+++ /trunk/puntoengine/controllers/ExampleController.php Tue Nov 1
14:34:57 2011
@@ -0,0 +1,42 @@
+<?php
+/**
+ * Source code of ExampleController class controller
+ * @category puntoengine
+ * @package controllers
+ * @author Juan Benavides Romero <juan.benav...@gmail.com>
+ * @since 0.4.0
+ */
+
+
+/**
+ * ExampleController is a controller class of the many examples
+ * @category puntoengine
+ * @package servlets
+ * @author Juan Benavides Romero <juan.benav...@gmail.com>
+ * @since 0.4.0
+ */
+class ExampleController extends HttpController {
+
+ /**
+ * Master page
+ * @var string
+ */
+ protected $master = 'Example/master.php';
+
+
+ /**
+ * Default action method
+ */
+ public function defaultAction() {
+ //Process the action, connect to database, etc
+ }//defaultAction
+
+
+ /**
+ * Other action method
+ */
+ public function otherAction() {
+ //Process the action, connect to database, etc
+ }//otherAction
+}//ExampleController
+?>

Reply all
Reply to author
Forward
0 new messages