Helper, and that's why my example is working for me. However
(as you are correctly stating) _ is "reserved" for marking
packages - and it's usage as I did is not very catholic.
The motivations for me to ask this to the list have been:
* I don't like the //-thingy
* Because of the //-thingy I don't know whether my helper would
currently also work on Windows
* I'm somehow violating the _-convention (this point could be
discussed)
* I don't like parts of my code to be found in "hidden" files
Could someone tell me whether
* future ZF versions would probably(!) break my Helper?
* adding an exception for _ in the loader would make sense?
-> if ($name === '_') ...
* all plans for providing a _()-helper have been discarded?
Thanks a lot!
Cheers,
Thomas
Емил Иванов / Emil Ivanov schrieb:
> The _ character is used to mark "packages" like Zend_Form. Having a
> class with something like My_Class__ will make the loader look for this
> class in path My/Class//.
> Also, according to the convention You should name your file _.php :)
>
> Regards
没有评论:
发表评论