2008年8月22日星期五

Re: [fw-mvc] controller syntax

You can read the Zend Framework coding guidelines here:
http://framework.zend.com/manual/en/coding-standard.php-file-formatting.html#coding-standard.php-file-formatting.general

So, to answer your question after reading the documentation, your
controllers and models should only have php code. You can have html in
strings to manipulate, but there should be no plain html in your models or
controllers.


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-tp19114427p19114590.html
Sent from the Zend MVC mailing list archive at Nabble.com.

没有评论: