|
Thursday, 03 January 2008 |
Joomla needs a clear convention for executing components and modules encapsulated in the core. A typical URL for reading a content item is: index.php?option=com_content&task=view&id=1&Itemid=2
Here we have a controller (option) "com_content" executed which calls a specific action (task) "view" to show a content item. If Joomla could implement a real front controller pattern, the only job a component coder has to do is to write a task within a component as a container. By now a component coder has to write the controller for himself (mapping tasks to function calls). This should be taken over by the Joomla core.
|