I was wondering how everyone else would design a directory structure for a homegrown MVC application.
The two options I see are
[CODE}
/app_base
/models(Contains Pear_DBObjects generated models)
/views (contains smarty code and templates)
/smarty_includes
/templates
/templates_c
/controllers (contains classes that are the glue between the views and the models)
[/CODE]
The app_base would have an index.php file in it which fires off to controllers, the controllers would call data pulled from model objects based on the actions and variables/data posted/getted. The index.php file would then call a $controller->display() function.
The views section would have subdirs that are essentially storage places for smarty templates.
The other way I thought about doing it is to combine my controllers and my views since they work hand in hand, ie
/app_base
/models(Contains Pear_DBObjects generated models)
/controllers
/controller1
/view_template
How would you guys do this?
Am I just heading down a rabbit hole?