gtracy wrote:
> 
> $eventV = new Zend_View();
> $eventV->setScriptPath('../app/views/scripts/');
> $this->view->eventfeed = $eventV->render('event/index.phtml');
> ...
> 
I'm glad you were able to find a way to make it work for you.


gtracy wrote:
> 
> In addition, there are controllers that respond via Ajax calls for the
> individual modules. Some of the page modules load exclusively via
> Javascript. Others will load through both Javascript and the view
> controllers.
> 
> I'm always looking for good patterns and open source projects that have
> good pattern examples. Any help is appreciated.
> 
ZF also has:

# Context Switch Helper (can help you with the JavaScript/Ajax response)
# Custom View Helpers (can mitigate the need instantiate Zend_View in the
controller and render a specific script)

View helpers are especially helpful for re-using a view or view specific
logic in > 1 place. If you have any specific questions about View helpers,
myself, as well as most other ZF developers, should be able to help you.

Check out Zend's View helpers to get started. Here is a simple one to
reference:
https://github.com/zendframework/zf2/blob/master/library/Zend/View/Helper/Url.php

-----
--
Wil Moore III

Why is Bottom-posting better than Top-posting:
http://www.caliburn.nl/topposting.html

DO NOT TOP-POST and DO trim your replies:
http://linux.sgms-centre.com/misc/netiquette.php#toppost
--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/Understanding-where-Zend-Layout-meets-Zend-View-tp3400302p3418691.html
Sent from the Zend Framework mailing list archive at Nabble.com.

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to