use Netbeans ;)
Von: David Lozzi <david@lozzi.net>
An: cake-php@googlegroups.com
Gesendet: 15:45 Dienstag, 3.Juli 2012
Betreff: Re: syntax error, unexpected T_CLASS
Holy sucky-IDE Batman! That worked!! GAH that's frustrating. I'm using Komode Edit for my IDE, which obviously didn't pick up on that. What IDE do you use?
On Monday, July 2, 2012 7:21:49 PM UTC-4, MaJerle.Eu wrote: --
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Thanks a million!!
David
On Monday, July 2, 2012 7:21:49 PM UTC-4, MaJerle.Eu wrote:
<? phpit should be <?phpcheck line 1 :)
--Lep pozdrav, Tilen Majerle
2012/7/3 David Lozzi <david@lozzi.net>Hi There,I'm new to PHP. I installed PHP/MySql using Xampp. I downloaded CakePHP into a directory called caketest. When I land on the home page I get two red issues around security (blog tutorial said that's optional), all green except for database connectivity.I walked through the blog tutorial, created the model, controller and view. I am now getting an errorFatal ErrorError: syntax error, unexpected T_CLASSFile: C:\xampp\htdocs\caketest\app\ Controller\PostsController. phpLine: 2When i hit localhost/caketest/posts. Here's what the code looks like in the controller<? phpclass PostsController extends AppController { <-- LINE 2public $helpers = array('Html','Form');public function index(){$this->set('posts',$this-> Post->find('all'));}public function view($id = null){$this->Post->id = $id;$this->set('post', $this->Post->read());}}?>I'm guessing the error does not have to do with the database connection issue I have (I am working on resolving that now).Thanks!David--
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+unsubscribe@ 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment