303 $lang->load('tpl_' . $template, JPATH_BASE, null, false, true)
304 || $lang->load('tpl_' . $template, JPATH_THEMES . "/$template", null, false, true);
305
306 if (empty($option))
307 {
308 throw new MissingComponentException(\JText::_('JLIB_APPLICATION_ERROR_COMPONENT_NOT_FOUND'), 404);
309 }
310
311 if (JDEBUG)
312 {
313 \JProfiler::getInstance('Application')->mark('beforeRenderComponent ' . $option);
189 else
190 {
191 $document->setGenerator('Joomla! - Open Source Content Management');
192 }
193
194 $contents = ComponentHelper::renderComponent($component);
195 $document->setBuffer($contents, 'component');
196
197 // Trigger the onAfterDispatch event.
198 \JPluginHelper::importPlugin('system');
199 $this->triggerEvent('onAfterDispatch');
option |
NULL
|
228 * ex: due of the sef urls
229 */
230 $this->checkUserRequireReset('com_users', 'profile', 'edit', 'com_users/profile.save,com_users/profile.apply,com_users/user.logout');
231
232 // Dispatch the application
233 $this->dispatch();
234
235 // Mark afterDispatch in the profiler.
236 JDEBUG ? $this->profiler->mark('afterDispatch') : null;
237 }
238
220 {
221 throw new \RuntimeException('Invalid input, aborting application.');
222 }
223
224 // Perform application routines.
225 $this->doExecute();
226
227 // If we have an application document object, render it.
228 if ($this->document instanceof \JDocument)
229 {
230 // Render the application output.
44
45 // Instantiate the application.
46 $app = JFactory::getApplication('site');
47
48 // Execute the application.
49 $app->execute();