Are you doing this inside a function? Can we see some code? Jeremy Burns Class Outfit
jeremybu...@classoutfit.com http://www.classoutfit.com On 7 Apr 2011, at 11:29, Shashank wrote: > 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 > cake-php+unsubscr...@googlegroups.com For more options, visit this group at > http://groups.google.com/group/cake-php -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php