I have the following set up for the directories
Directory ->Application
contains folders config, controllers,views,models
Directory ->htdocs
contains folders images, scripts, styles
Directory ->library
contains folder Zend (this is the Framework)
Directory tmp
Contains folders cache, sessions, view_compiles
The server is set to serve pages from htdocs. I did not want to have the Application in the htdocs directory so this seemed like a reasonable structure?
I have the UserController.php in the Application/controllers directory and here is a piece of code where I am having to define the whole path to the view
Code:
function registerAction()
{
$view = new Zend_View();
$view->setScriptPath('/www/shieldcrm/application/views');
echo $view->render('register.php');
}
This is the same for all of the script paths I have to set. In a tutorial I am reviewing the path is set simply as 'controllers' or 'views' so I can only assume that somewhere there is a basedir value I can set which would state that all requests for these files use the base plus the next level?
Chris...