|
Entrypoint
Lesson 3 : entry point
the name of this file is the same name as the component. example: bib.php This file is stored in the root of the component example: com_bib/bib.php First we check if the plugin is active: // Check if Nooku Framework (codename= Koowa) is active
if(!defined('KOOWA')) {
JError::raiseWarning(0, JText::_("Koowa wasn't found. Please install the Koowa plugin and enable it."));
return;
}Second we call the dispatcher (this is like create the controller in Joomla!) // Create the component dispatcher
KFactory::get('admin::com.bib.dispatcher', array('default_view' => 'books'))
->dispatch();use admin for administrator use site for frontend Give a default view |
► Sign in to add a comment
Thanks for nice guide and help me lot to building a nooku example component.
Can you please put "manifest.xml" in svn code so that i can complete proper instlation. Also if you create zip file for component (hello and bis) that would be great for every developer.