Keyword

K2 - strange architecture

  • yankes
  • yankes's Avatar Topic Author
  • Offline
  • New Member
More
14 years 6 months ago #74476 by yankes
K2 - strange architecture was created by yankes
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

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum