Thread: Plugins
View Single Post
  #7 (permalink)  
Old 05-02-2007, 12:35 AM
SpotSec's Avatar
SpotSec SpotSec is offline
Senior Member
 
Join Date: Feb 2007
Location: United States
Posts: 121
Default

Quote:
Originally Posted by jeffrey_stevenson View Post
I was able to figure out that I needed to add my module to my config file so it knows the routes. What I'm wondering now, is there a way for it to find my modules models, and views automatically? Or, do I need to always tell it the whole path to find where they are located when I'm trying to render the views or access the models?
This ability is available for the view, I do not think it is documented yet though, but there is a blog about it somewhere. Unfortunately for the model you will have to extend the Zend_Controller_Action class to do that automatically or you can add your models path on to your include path and that way you can include/require or use Zend_Loader::loadCLass() etc... your model. Another nifty method would be to add the models to your include path and use the php class autoloader (__autoload() or spl_autoload_register())

I think most of this is documented in fine print somewhere in the manual, but hey, this forum is here to help any little problem or misunderstanding . Probably not to the point of doing your project for you but its worth a try asking ain't it? :P
__________________
Zym Framework - A Zend Framework extension library w/ demo app

SpotSec Blog:
http://spotsec.com/blog

Last edited by SpotSec : 05-02-2007 at 05:50 AM.
Reply With Quote