¬¬ Regards, Pablo Viojo [email protected] http://pviojo.net
¿Que necesitas? http://needish.com On Sat, Oct 3, 2009 at 4:59 PM, <[email protected]> wrote: > First line of index() is missing a semicolon > Schreck > > -----Original Message----- > From: Jeff <[email protected]> > Date: Sat, 3 Oct 2009 13:01:48 > To: CakePHP<[email protected]> > Subject: unexpected T_VARIABLE > > > Hi, > > I am just starting out with cake, making a Facebook app. I get the > following error: > > Parse error: syntax error, unexpected T_VARIABLE in /users/home/ > trompsbpbc/web/public/app/controllers/things_controller.php on line 22 > > And here is the code: > > <?php > class ThingsController extends AppController { > var $user; > > /** > * Name: beforeFilter > * Desc: Performs necessary steps and function calls prior to > executing > * any view function calls. > */ > function beforeFilter() { > $this->user = $this->facebook->require_login(); > } > > /** > * Name: index > * Desc: Display the friends index page. > */ > function index() { > // Retrieve the user's friends and pass them to the view. > $this->loadModel('Thing') > > $things = $this->$Thing->find('all'); > $this->set('things', $things); > > $friends = $this->facebook->api_client->friends_get(); > $this->set('friends', $friends); > } > } > ?> > > Can anyone tell me what is wrong? > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
