Lost with Zend Framework and MVC [RESOLVED, sans solution]
Posted: Mon Aug 06, 2007 11:59 am
I'm currently trying to add some functionality to a web page that was written by someone else, and am feeling totally lost.
Currently, there's a "front" area that anyone can access, and a member area that requires a login. The public area is all static html, the member area is all php MVC architecture built on the Zend Framework. In the member area is an events calendar that I would like to make publicly viewable. Currently, I have taken the event controller, cut out everything but what (I think) I need to view the events, and turned that into it's own controller class, "calendar".
Now where I get lost is in trying to "call" my calendar controller. The front controller usually gets bootstrapped when someone accesses the index page within the members subdirectory, so I'm not sure what I would need to do to call it from within the site's root dir. Do I basically need to copy over the whole bootstrapping into my calendar page? Or...? The only other thought I've had is to create another application that just accesses the same db and displays the events, but that seems superfluous when there's already functionality to display them!
I've been reading what I can about the Zend controllers (front and otherwise), and I think I understand enough to make it all play nice with itself, but still at a loss as to how to get it to show the one page.
Any help/pointers would be appreciated.
Currently, there's a "front" area that anyone can access, and a member area that requires a login. The public area is all static html, the member area is all php MVC architecture built on the Zend Framework. In the member area is an events calendar that I would like to make publicly viewable. Currently, I have taken the event controller, cut out everything but what (I think) I need to view the events, and turned that into it's own controller class, "calendar".
Now where I get lost is in trying to "call" my calendar controller. The front controller usually gets bootstrapped when someone accesses the index page within the members subdirectory, so I'm not sure what I would need to do to call it from within the site's root dir. Do I basically need to copy over the whole bootstrapping into my calendar page? Or...? The only other thought I've had is to create another application that just accesses the same db and displays the events, but that seems superfluous when there's already functionality to display them!
I've been reading what I can about the Zend controllers (front and otherwise), and I think I understand enough to make it all play nice with itself, but still at a loss as to how to get it to show the one page.
Any help/pointers would be appreciated.