Browse files

add possibility to pass a parameter to controller calls

  • Loading branch information...
1 parent a40485f commit 1c1ca56daff9e96b7107c22d479f8c4ea20b9bf2 Eric Teubert committed Dec 21, 2010
Showing with 10 additions and 10 deletions.
  1. +10 −10 templates/ApplicationController.php
View
20 templates/ApplicationController.php
@@ -27,9 +27,9 @@ function __construct()
*
* template method for create calls
*/
- public function call_index()
+ public function call_index($arg = null)
{
- $this->index();
+ $this->index($arg);
$this->render('index');
}
@@ -38,9 +38,9 @@ public function call_index()
*
* template method for new calls
*/
- public function call_new()
+ public function call_new($arg = null)
{
- $this->newForm();
+ $this->newForm($arg);
$this->render('new');
}
@@ -49,9 +49,9 @@ public function call_new()
*
* template method for create calls
*/
- public function call_create()
+ public function call_create($arg = null)
{
- $this->create();
+ $this->create($arg);
$this->render('create');
}
@@ -60,9 +60,9 @@ public function call_create()
*
* template method for delete calls
*/
- public function call_delete()
+ public function call_delete($arg = null)
{
- $this->delete();
+ $this->delete($arg);
$this->render('delete');
}
@@ -71,9 +71,9 @@ public function call_delete()
*
* template method for update calls
*/
- public function call_update()
+ public function call_update($arg = null)
{
- $this->update();
+ $this->update($arg);
$this->render('update');
}

0 comments on commit 1c1ca56

Please sign in to comment.