View Single Post
  #9 (permalink)  
Old 05-02-2007, 11:11 PM
SpotSec's Avatar
SpotSec SpotSec is offline
Senior Member
 
Join Date: Feb 2007
Location: United States
Posts: 122
Default

Quote:
Originally Posted by chris_hird View Post
I have set up the php.ini to see the /www/shieldcrm/application in searches. This allows me to include files in the config simply by using config/DB_config.php etc... However I still have to set the scriptpaths etc to the full path ie /www/shieldcrm/application/controllers etc...

How can I set the scriptpaths to be linked to a partial url?

Chris...
Actually now Zend_View will automatically render views from the views folder in a setup described here: Ben Ramsey » Blog Archive » Zend Framework View Notes

As for setScriptPath(), a relative path I think would start from your controllers directory (so '../views'). You can use get_include_path() as a lazy way for the path of the views or do something similar to this:

PHP Code:
$appDir Zend_Registry::getInstance()->get('applicationDirectory'); 
$this->setScriptPath($appDir DIRECTORY_SEPARATOR $request->getModuleName() . '/Views'); 
__________________
Zym Framework - A Zend Framework extension library w/ demo app

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

Last edited by SpotSec : 05-02-2007 at 11:14 PM.
Reply With Quote