What is your reasoning for importing another controller? You should never need to do this.
On Apr 7, 3:30 am, Jeremy Burns | Class Outfit <[email protected]> wrote: > Are you doing this inside a function? Can we see some code? > > Jeremy Burns > Class Outfit > > [email protected]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 > > Tutorialshttp://tv.cakephp.org > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help > > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > > [email protected] For more options, visit this group > > athttp://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 [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
