18
18
limitations under the License.
19
19
=========================================================================*/
20
20
21
- /** Controller template for the @MN@ module */
21
+ /**
22
+ * Thing controller for the @MN@ module.
23
+ *
24
+ * @package Modules\@MN_CAP@\Controller
25
+ */
22
26
class @MN_CAP @_ThingController extends @MN_CAP @_AppController
23
27
{
28
+ /** @var array */
29
+ public $ _components = array ();
30
+
31
+ /** @var array */
24
32
public $ _models = array ();
25
- public $ _moduleModels = array ();
26
33
27
- /** STUB: Example get action */
28
- public function getAction ()
29
- {
30
- $ id = $ this ->_getParam ('id ' );
31
- $ this ->view ->id = $ id ;
32
- }
34
+ /** @var array */
35
+ public $ _moduleComponents = array ();
36
+
37
+ /** @var array */
38
+ public $ _moduleModels = array ();
33
39
34
- /** STUB: Example create action */
35
- public function createAction ()
40
+ /** @TODO Delete action. */
41
+ public function deleteAction ()
36
42
{
37
43
$ this ->disableLayout ();
38
44
$ this ->disableView ();
@@ -41,8 +47,15 @@ public function createAction()
41
47
);
42
48
}
43
49
44
- /** STUB: Example update action */
45
- public function updateAction ()
50
+ /** @TODO Get action. */
51
+ public function getAction ()
52
+ {
53
+ $ id = $ this ->_getParam ('id ' );
54
+ $ this ->view ->id = $ id ;
55
+ }
56
+
57
+ /** @TODO Patch action. */
58
+ public function patchAction ()
46
59
{
47
60
$ this ->disableLayout ();
48
61
$ this ->disableView ();
@@ -51,8 +64,8 @@ public function updateAction()
51
64
);
52
65
}
53
66
54
- /** STUB: Example delete action */
55
- public function deleteAction ()
67
+ /** @TODO Post action. */
68
+ public function postAction ()
56
69
{
57
70
$ this ->disableLayout ();
58
71
$ this ->disableView ();
0 commit comments