Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Autoload JMenu and JRouter child classes #1196

merged 1 commit into from May 23, 2012


None yet
2 participants

mbabker commented May 9, 2012

Following the example in JPathway::getInstance(), I've modified JMenu and JRouter's getInstance methods to allow for autoloading the child classes. If the class can't be found first, then it will look in the hardcoded includes/<file>.php location for the class.


realityking commented May 23, 2012

Nice one! I wonder if we should move JRouter to its own package as well.

realityking added a commit that referenced this pull request May 23, 2012

Merge pull request #1196 from mbabker/autoload
Autoload JMenu and JRouter child classes

@realityking realityking merged commit fe1516a into joomla:staging May 23, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment