Nooku Guides

Component Entry Point

If you have ever developed a Joomla component before you know about the component entry point, sometimes referred to as the component loader. The file in most cases in Joomla loads a controller and fires the execute method on that controller. We're doing something different; loading and firing our own dispatcher to take care of all that.

So, just create this file:


And then add the following line of code to the file:

<?php echo KObjectManager::getInstance()                     // load the Object Manager
            ->getObject('com://site/todo.dispatcher.http')  // Get an HTTP Dispatcher
            ->dispatch();                                   // call the dispatch action