hey

What I'm trying to do is to set autoloaderZfPath and autoloaderZfVersion in
application.ini to set the version for my application using ZF. I decided to
use one copy for ZF library (or libraries - one to each version) for
applications. The problem is when one application will be using ZF version
1.10 and other 1.9 or latter.


I added to application.ini:
autoloaderZfPath = "/path/to/ZendFramework"
autoloaderZfVersion = "latest"


and have file structure like this:
/path/to/ZendFramework/ZendFramework-1.9.7/library/Zend/...
/path/to/ZendFramework/ZendFramework-1.10/library/Zend/...


I used also standard index.html with:
// Define path to application directory
defined('APPLICATION_PATH')
    || define('APPLICATION_PATH', realpath(dirname(__FILE__) .
'/../application'));
// Define application environment
defined('APPLICATION_ENV')
    || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ?
getenv('APPLICATION_ENV') : 'production'));
// Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, array(
    realpath(APPLICATION_PATH . '/../library'),
    get_include_path(),
)));
/** Zend_Application */
require_once 'Zend/Application.php';

The problem is how to get Zend/Application.php and from where if I still
don't know which version to use - this information is in application.ini
which is load later.
-- 
View this message in context: 
http://n4.nabble.com/autoloaderZfPath-in-application-ini-tp1459851p1459851.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to