Thanks Wil. I think I've overcome this, but I'm always interested in the
patterns and habits of more seasoned Zend developers. I've settled on an
approach for the moment. It's a hybrid. 

I'm using Zend_Layout to maintain a generate layout for the entire site, and
I'm using a combination of Zend_Views to construct page content for
individual pages. For example, the indexAction from my main controller looks
something like this...

$eventV = new Zend_View();
$eventV->setScriptPath('../app/views/scripts/');
$this->view->eventfeed = $eventV->render('event/index.phtml');
...
...
$view = new Zend_View();
$view->setScriptPath('../app/views/scripts/');
echo $view->render('index/index.phtml');

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.

Thanks!


--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/Understanding-where-Zend-Layout-meets-Zend-View-tp3400302p3415684.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