Andries Seutens wrote:
Rob,
This is exactly the way how i do it. I think it makes a good use case
for in the documentation.
Best,
Andriesss
Rob Allen schreef:
On 4 Apr 2008, at 05:35, Greg Freeman wrote:
What is the best method for creating an admin area for a zend framework
application?
I've done it in two ways using modules:
1. Each module has an admin controller
2. Two modules: admin and frontend
Going forward, I am going to be using the two separate modules
approach as it's easier to treat the admin as a separate site. One
tip I have is that it's wise to have a models directory outside of
the modules for those models that are common to the application.
e.g.
mysite/
application/
models/
modules/
admin/
controllers/
views/
default/
controllers/
views/
library/
public/
/admin
css/
img/
js/
/default/
css/
img/
js/
Regards,
Rob...
Hi Andries, Rob, all
My application layout is slightly different again, but i agree; the
'Admin' module should be separate. (I use the single bootstrap)
app/
code/
default/
controllers/
Admin/
Core/
Default/
etc...
helpers/
models/
Admin/
Core/
etc...
conf/
app/
db/
design/
default/
blocks/
layouts/
templates/
lib/
Jon/
Zend/
public/
js/
skins/
uploads/
tmp/
cache/
sessions/
The structure is a mix of my own production learnings and seeing how
other projects operate.
Regards,
Jon.