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
Maybe a case sensitive problem.
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); }
It must be
$this->actionCreateConfig();
The proper way to run actions is
$this->run('CreateConfig');