Your Open Source
Free YourOpenSource Softwares Online Resources and Softwares Downloads with Demo
Related Posts
call the another controller function in cakephp
In cakePHP,Use the requestAction() function if you need to call a one method from the another controller, The example code given below,
class NotesController extends AppController
{
function test()
{
$damu= $this->requestAction('/Stores/read');
$this->set('data', $damu);
}
}
==================
class StoresController extends AppController
{
function read()
{
$str= "hai from controller2";
return $str;
}
}
2787
Feb 25 09 09:14:41
Damu
|
Rating :
![]() ![]() ![]() ![]() ![]() | Tags :- PHP |
|
|||||
Digg
Yahoo
delicious
