(on Thursday, 23 April 2009, 09:44 AM +0300):
> I got some questions related to Zend_Application Zend_Tool, i know the code had
> some changes, i didn't tested anything new into latest 2-3 weeks, waiting for a
> version more closer to final:
>
> 1. How are resources (models, forms, aso) auto-loaded from various modules ?
> With or without module bootstrap.
The recommended way is to create a bootstrap for any module that will
have resources that need to be autoloaded; such bootstraps should extend
Zend_Application_Module_Bootstrap, which will automatically setup a
resource autoloader for that module.
> 2. There is still that annoying "default module" bootstrap (special, different
> than for the other modules) ? Was about to be "removed" as far as i know...
I knew I'd missed something -- I'll try and get this addressed by
end-of-week.
> 3. There is a Layout resource implemented/planned ?
It's already present, but needs to be documented.
> 4. There is a (pre-made) way to setup through Zend_Tool a modular project
> according to http://framework.zend.com/wiki/display/ZFPROP/
> Zend+Framework+Default+Project+Structure+-+Wil+Sinclair ?
Ralph is working on this; I'm not sure of the status currently.
> There are some conventions i saw used by Zend_Tool, which there are no into ZF
> Default Project Structure as: " configuration file, newproject/application/
> configs/application.ini"
>
> This are gonna be standard into ZF Default Project Structure also ?
Umm... the application/configs/ directory is part of that structure
already; the application.ini is introduced both as part of
Zend_Tool_Project and as part of Zend_Application.
> 5. Related to " newproject/public/index.php"
>
> // Define application environment
> defined('APPLICATION_ENV')
> || define('APPLICATION_ENV',
> (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV')
> : 'production'));
>
> I am not quite sure, but i think most of us are using rather something
> linked to getenv(), maybe i am wrong... What's the way to have setup
> the default for APPLICATION_ENV ?
>
> if( getenv('APPLICATION_ENVIRONMENT') !== false)
> define('APPLICATION_ENVIRONMENT', getenv('APPLICATION_ENVIRONMENT'));
> else
> define('APPLICATION_ENVIRONMENT', 'production');
Umm... that's what the above is doing, but via a ternary.
--
Matthew Weier O'Phinney
Project Lead | matthew@zend.com
Zend Framework | http://framework.zend.com/
没有评论:
发表评论