Archived talk

Difference between revisions of "Developing a MVC Component/Adding decorations to the backend"

From Joomla! Documentation

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');