Much of the Joomla Platform was written with support for PHP4 in mind.
Given that PHP5 introduced autoloading, many of the classes and
structures pre-date that functionality. jimport provided a Java
inspired solution for registering files to be loaded in a way that
meant that the system was reasonably flexible.
Increasingly we are shifting to using a camel case based autoloader
for new code however as with any project that has been around for half
a decade and two major PHP versions there is a lot of legacy that
needs to be slowly updated.
Cheers,
Sam Moffatt
http://pasamio.id.au
On Fri, Jul 20, 2012 at 6:39 AM, D. Dante Lorenso <da...@lorenso.com> wrote:
> I see this in the Joomla code:
> jimport('joomla.filesystem.folder');
> JFolder :: create(dirname($file));
> But with PHP, we can just autoload classes, so why dont we just have
> something like this:
> Joomla_Filesystem_Folder :: create(dirname($file));
> I don't understand why jimport exists.
> -- Dante
> D. Dante Lorenso
> --
> You received this message because you are subscribed to the Google Groups
> "Joomla! General Development" group.
> To post to this group, send an email to joomla-dev-general@googlegroups.com.
> To unsubscribe from this group, send email to
> joomla-dev-general+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/joomla-dev-general?hl=en-GB.