Difference between revisions of "Developing a MVC Component/Adding decorations to the backend"
From Joomla! Documentation
m (moved Talk:Developing a Model-View-Controller (MVC) Component for Joomla!2.5 - Part 10 to Talk:Developing a Model-View-Controller Component/2.5/Adding decorations to the backend: Improve structure with subpages and version disambiguation.) |
(→Delete toolbar item shouldn't work: new section) |
||
Line 1: | Line 1: | ||
This is just so overly complicated to implement MVC... | This is just so overly complicated to implement MVC... | ||
+ | |||
+ | == Delete toolbar item shouldn't work == | ||
+ | |||
+ | In the example code: | ||
+ | |||
+ | JToolBarHelper::deleteListX('', 'helloworlds.delete'); | ||
+ | |||
+ | winds up calling HelloworldsModelHellowworlds->delete() through the controller/helloworlds.php controller. which doesn't exist in this demo or in the base JModelList class. | ||
+ | |||
+ | Clicking the delete button returns an error. | ||
+ | |||
+ | Should this be: | ||
+ | |||
+ | JToolBarHelper::deleteListX('', 'helloworld.delete'); |
Revision as of 00:44, 19 September 2012
This is just so overly complicated to implement MVC...
Delete toolbar item shouldn't work[edit]
In the example code:
JToolBarHelper::deleteListX(, 'helloworlds.delete');
winds up calling HelloworldsModelHellowworlds->delete() through the controller/helloworlds.php controller. which doesn't exist in this demo or in the base JModelList class.
Clicking the delete button returns an error.
Should this be:
JToolBarHelper::deleteListX(, 'helloworld.delete');