2008年8月22日星期五

Re: [fw-mvc] controller syntax

Omitting the closing tag on php only files is part of the zend
framework coding standards.
Check out: http://framework.zend.com/manual/en/coding-standard.coding-style.html#coding-standard.coding-style.php-code-demarcation

Regards,

Adam

On Aug 22, 2008, at 3:50 PM, spaceage wrote:

>
> As a noob, I just learned the hard way about the problem with having a
> closing "?>" in a controller file. This seems highly unorthodox,
> plus I
> don't recall reading anything about this in the docs here...I found an
> obscure reference in the "Practical Web 2.0" book.
>
> My questions are:
>
> 1) Is it always the case that controller files DO NOT have a closing
> "?>"?
>
> 2) Are there other areas of the framework where you must omit the
> closing
> "?>"?
>
>
> --
> View this message in context: http://www.nabble.com/controller-syntax-tp19114427p19114427.html
> Sent from the Zend MVC mailing list archive at Nabble.com.
>

没有评论: