+1 on renaming Zend.php to Zend/xxx.php

(I'd go with Zend_Core)

On 2/26/07, Ramon de la Fuente <[EMAIL PROTECTED]> wrote:

My 2cents..

I think removing Zend.php from the main directory would make the whole
structure more daunting from the point of view of a "beginner". That
"first" file is a very easy step to mentally start grasping the
framework structure.
Also, breaking the naming convention in the very first file you
encounter is IMO a bad way to go.

That being said, as there is a lot of animo from the rest of the gang
for moving the file, I myself would opt for the name "Zend_Framework" or
"Zend_Core" (as said before that suggests "glue" or again the first
starting point), and I would also agree with moving the ::dump() method
to a Zend_Debug class and the registry methods to Zend_Registry.

Regards,

Ramon de la Fuente


Bill Karwin wrote:
> Please take a look at http://framework.zend.com/issues/browse/ZF-958
>
> We propose to move Zend.php to <zf-home>/library/Zend/Zend.php.  The
> class name would continue to be 'Zend', and we're not suggesting
> changing any methods within the class.  Therefore no usage of this class
> would change.
>
> The only change in your application would be that you need to change
> this:
>
>   require_once 'Zend.php';
>
> To this:
>
>   require_once 'Zend/Zend.php';
>
> Alternatively, you could add the 'Zend' directory to your include_path.
>
> The benefit of this change is to simplify integration of a Zend
> Framework tree in an application tree.  You could use svn externals, for
> instance.
>
> The disadvantage is that it does not follow the ZF convention that class
> names always match the physical location of the class file.  But this is
> the only class that needs to be an exception to this convention.
>
> I volunteer to make this change.  I'll update other classes in the ZF
> tree.  I'll write a note in the manual to tell users what they need to
> do.  I'll write a docblock in Zend.php acknowledging that it is an
> exception to the class-to-location convention.
>
> If there are no strong objections, I'll make this change.
>
> Regards,
> Bill Karwin
>





--
best regards,
André Hoffmann

Reply via email to