2

I'm working on my MVSC implementation. I'm planning on adding a function called getParams() to my base view, so that I don't have to keep merging item, menu, and component params before rendering the view.

Up until know I've been using JFactory::getApplication()->getParams(); which gets the active menu params.

I want to look at the implementation and maybe avoid having to use the application if there was already a dedicated class, but I can't find any mention of getParams() in any of the JApplication classes (J3.3.0).

I can only assume that it is late static binding, but does anyone know where this method is attached to the application?

1 Answer 1

4

It is in the file libraries/cms/application/site.php. The administrator (back end) file has no such function specified.

1
  • Thanks! I didn't realize that we are actually using two different subclasses of JApplicationCms! Jun 5, 2014 at 7:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.