You don't need to have a semicolon if the statement ends with a php closing tag ( ?> ).
On Thu, Sep 29, 2011 at 6:00 PM, Yves S. Garret <[email protected]>wrote: > Just going through the book tutorial. I got to this page: > > http://book.cakephp.org/view/1536/Creating-Post-Views > > At the very end you see this: > > <!-- File: /app/views/posts/view.ctp --> > <h1><?php echo $post['Post']['title']?></h1> > <p><small>Created: <?php echo $post['Post']['created']?></small></p> > <p><?php echo $post['Post']['body']?></p> > > Wouldn't the echo $post[...] need a semicolon in the end for both cases? > If this is indeed an issue, how do I go about notifying the documentation > maintainers? > > -- > 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 > -- 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
