Check out this document outilinig several typical directory layouts:
Choosing Your Application's Directory Layout
My setup looks like this:
app/
controllers/
forms/
lib/
models/
views/
config.ini
lib/
sql/
var/
web/
css/
img/
js/
.htaccess
index.php
I use Zend Autoloader to automatically include model classes. The very top of my index.php
file is:
$paths = array(
'/usr/share/php/ZendFramework/library',
'../app/models',
'../app/lib',
'../app/forms',
'../app/models',
'../lib',
get_include_path()
);
set_include_path(implode(PATH_SEPARATOR, $paths));
// bootstrap
require 'Zend/Loader.php';
Zend_Loader::registerAutoload();
Works well with Zend Framework 1.7 as well as 1.8.