ZF-9575: Hardcoded paths in the ZF Library - 'views'
Description
I had thought I had full control over my directory structure. As such I very much dislike naming the MVC directories in the plural and so named them as 'controller', 'model', and 'view'. To my dismay, there are hardcoded path references within the ZF library to 'views'.
In my mind this is a coupling that shouldnt be there. Lets make this more flexible shall we? Convention is OK, but something like this makes little sense when all other directories are allowed to be named whatever the developer chooses. Why is the view directory the only one required to be named something specific?
Also please consider the bootstrap file sets the front controller's 'controller' directory. Similarly there should be a way to set the view directory as well.
Comments
Posted by Matthew Weier O'Phinney (matthew) on 2010-03-30T11:00:47.000+0000
All of these are configurable.
Basically, the paths are not hardcoded, and can be configured whenever and however you want; you just need to know where and when to configure them.
Posted by matthew ishii (mishii1776) on 2010-03-30T11:05:57.000+0000
Matthew - Very sorry, I had done a grep on the source and had seen 'views' in quotations - I made a risky assumption that this meant it was not configurable or changed later if configured differently.
Thank you for showing me how this is possible - again I apologize.
Posted by Matthew Weier O'Phinney (matthew) on 2010-03-30T14:22:29.000+0000
No worries -- just wanted to point out where and how to configure. :)