how can I do it?
whenI try to use an action inside anoter action of the same controller it says
Fatal error: Call to undefined function actioncreateconfig() in /home/todolist/public_html/todolist/protected/controllers/SiteController.php on line 22
and I know that actionCreateCongig() exists
Page 1 of 1
call an action from the same CController
#2
Posted 08 January 2010 - 07:59 AM
Maybe a case sensitive problem.
Could you post your code here?
Could you post your code here?
Yes, It Is!
#3
Posted 08 January 2010 - 10:36 AM
ricardograna, on 08 January 2010 - 07:59 AM, said:
Maybe a case sensitive problem.
Could you post your code here?
Could you post your code here?
this is the code:
public function actionCopy() { $user = actionCreateConfig(); $t = Todo::model()->findByPk($_GET['todoId']); $t->todoId = null; $t->userId = $user->userId; $t->save(false); }
Share this topic:
Page 1 of 1