Thursday, September 29, 2011

Re: Is this a syntax error in the 1.3 book?

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 <yoursurrogategod@gmail.com> wrote:
Just going through the book tutorial.  I got to this page:


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
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: