2009年3月30日星期一

Re: [fw-mvc] Module specific Views

-- prodigitalson <ant.cunningham@gmail.com> wrote
(on Monday, 30 March 2009, 01:08 PM -0700):
> Sorry submitted by mistake and then couldnt edit.... Im having trouble figuring
> out certain behavior. I have a modular dir structure, with a module lookin like
> this:
>
> modules/
> --modulename/
> ----controllers/
> ----config/
> ----views/
> ------templates/

Rename the above to 'scripts', and it should work out-of-the-box.

> -------index/
> ----------index.phtml
> --------index.phtml
>
> Ive gotten it to work but its kind of wierd... It always throws an error saying
> it can find the view script if both modulename/views/templates/index.phtml and
> modulename/views/templates/index/index.phtml arent present. Why does it need
> modulename/views/templates/index.phtml? It doesnt seem to be using it for
> anything. When the view is successfully rendered it only consists of my layout
> (located in application/layouts/layout.phtml) wrapping the modulename/views/
> templates/index/index.phtml.

--
Matthew Weier O'Phinney
Software Architect | matthew@zend.com
Zend Framework | http://framework.zend.com/

没有评论: