Hey Guys,
I am trying to import a controller into my another controller.
Say i am importing controller1 into my controller2 like ds:
App::import('Controller', 'Users');
after that when i am trying to instantiate it i am getting an error:
Parse error: syntax error, unexpected T_VARIABLE, expecting
T_FUNCTION
i am trying to instantiate it like ds:
$Users = new UsersController();
Can i know wat i am doing wrong??
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php