[Solar-talk] Namespaces
Antti Holvikari
anttih at gmail.com
Fri Feb 29 15:19:56 CST 2008
On Fri, Feb 29, 2008 at 11:16 PM, Paul M Jones <pmjones at paul-m-jones.com> wrote:
> Forwarding to create a new thread. ;-)
>
> Begin forwarded message:
>
> > From: Jeff Moore <jeff at mashery.com>
> > Date: February 29, 2008 15:08:40 CST
> > To: solar-talk at lists.solarphp.com
> > Subject: Re: [Solar-talk] Toward a Standard Project Structure
> > Reply-To: solar-talk at lists.solarphp.com
> >
> > Hi,
> >
> > I just wanted to point out that the current autoloading mapping
> > might need to be reconsidered in light of namespaces.
> >
> > Does the Solar class belong inside a Solar namespace? If so, the
> > file (Solar.php) would most likely go inside the Solar directory and
> > Solar::start() becomes Solar::Solar::start();
> >
> > Consider Solar_View. With namespaces, will this become Solar::View?
> > Now Consider Solar_View_Helper. Is this:
> >
> > Solar_View::Helper or Solar::View_Helper?
Hope I'm not missing something here but why not Solar::View::Helper?
I mean, why not just replace underscores with colons? Solar.php gets
it's own namespace 'Solar'.
--
Antti Holvikari <http://anttih.com>
More information about the Solar-talk
mailing list