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!1.6 - Part 10 to Talk:Developing a Model-View-Controller (MVC) Component for Joomla!1.7 - Part 10: 1.6 is not supported anymore) |
m (Hutchy68 moved page J2.5 talk:Developing a Model-View-Controller Component/Adding decorations to the backend to J2.5 talk:Developing a MVC Component/Adding decorations to the backend: trying to shorten title) |
||
(5 intermediate revisions by 4 users not shown) | |||
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() which is a function that doesn't exist in base JModelList class or it's descendant. | ||
+ | |||
+ | Clicking the delete button returns an error. | ||
+ | |||
+ | Changing this to: | ||
+ | |||
+ | JToolBarHelper::deleteListX('', 'helloworld.delete'); | ||
+ | |||
+ | results in the delete() function of a JModelAdmin object being called but it doesn't delete the record. |
Revision as of 14:46, 3 May 2013
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() which is a function that doesn't exist in base JModelList class or it's descendant.
Clicking the delete button returns an error.
Changing this to:
JToolBarHelper::deleteListX(, 'helloworld.delete');
results in the delete() function of a JModelAdmin object being called but it doesn't delete the record.