Quote:
Originally Posted by chris_hird
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');