i always building component as:
docs.joomla.org/Developing_a_Mod ... t_-_Part_1 when starting code looks like:
Code:
if($controller = JRequest::getVar('controller')) {
$path = JPATH_COMPONENT.DS.'controllers'.DS.$controller.'.php';
if (file_exists($path)) {
require_once $path;
} else {
$controller = '';
}
}
and this is simple...
but now, I starting adventure with K2 component and i see... $controller = JRequest::getWord('view', 'itemlist');
this is correct ? what happens when I put insersts link like: index.php?option=com_test&controller=user_add and view user_add doesn't exists ?? i don't understand K2 construction who can help me , and tell me how it works