Hello all,
This may be a simple question, but I cannot seem to figure it out.
I started with the index.php file on the front end of a Joomla 3.5.1 install to trace the program execution. Trying to educate myself on how the internals of joomla works.
Well, I know that a JApplicationSite object is created and walked myself through the code if its creation using netbeans.
Then I started down the execute() method and learned that the document is created and populated with some information, loads the template and executes the component. All in the JApplicationsite, dispatch() method.
Well the best I can tell from reading code, if I entered the site application with
http://mysite..com that the components option would be null. It isn't passed on the url and I am not seeing it set in the code.
Now, I know if option is not set when firing the site application it defaults to com_content.
Can some one, PLEASE tell me where the code sets this default value?
When in dispatch() it calls JComponentHelper::renderComponent($component) and as best I can tell, in the scenario above, $component = null. The renderComponent() method would throw and exception if the component is null.
Many thanks for your time and energy.
Joe