2010年6月2日星期三

Re: [fw-mvc] Subfolders within views/scripts

Hi Tina,

Using the ViewRenderer action helper will accomplish what you need.

http://framework.zend.com/manual/en/zend.controller.actionhelpers.html#zend.controller.actionhelpers.viewrenderer


On Wed, Jun 2, 2010 at 9:48 AM, Tina Matter <tinab@umich.edu> wrote:
Hello -

Does anyone know if there is a way to avoid having subfolders within the application/views/scripts folder?
Currently, the default for Zend is to have an "index" subfolder with a corresponding "IndexController.php" file in the application/controllers folder.

I know you can put other subfolders in there in place of (or in addition to) the "index" subfolder, but this just adds extra to the URL that the user has to type in.

So.....for example.......

/application/views/scripts/index/main.phtml
/application/controllers/IndexController.php

Is there a way to avoid having the index subfolder?

Any insight on this is appreciated.

Thanks bunches.
Tina


--

Tina Matter

Web Software Developer

Department of Mechanical Engineering

University of Michigan

734-763-3184




--
Andrew Sledge

没有评论: