2009年8月6日星期四

Re: [fw-mvc] Logic within view layout

Another approach, which might have some overhead but is probably conceptually cleaner, is to subclass Zend_View, and put all your logic in there. Remember, Views are objects as well.
On Thu, Aug 6, 2009 at 11:51 AM, dbutler83 <declan.butler@gmail.com> wrote:

Just to follow up that if I copy the helper class into
application/views/helpers I get a bit further but run into a different issue

Fatal error: Cannot redeclare class FooBar in
C:\dev\web\<myprojectdir>\application\layouts\helpers\FooBar.php on line 14
--
View this message in context: http://www.nabble.com/Logic-within-view-layout-tp24845215p24849236.html
Sent from the Zend MVC mailing list archive at Nabble.com.


没有评论: