Difference between revisions of "Developing a MVC Component/Example of a frontend update function"
From Joomla! Documentation
m (M-b-o moved page J2.5 talk:Developing a MVC Component/Example of a frontend update function to Archived talk:Developing a MVC Component/Example of a frontend update function) |
|||
(5 intermediate revisions by 4 users not shown) | |||
Line 9: | Line 9: | ||
:-Dave | :-Dave | ||
+ | |||
+ | :: I can't see why there is dispatcher in the model and another import of it in the controller. [[User:Oc666|oc666]] 00:49, 14 February 2012 (CST) | ||
+ | |||
+ | |||
+ | Hi Dave, | ||
+ | You are correct. Since your comment I created my second small component and followed your suggestion and all is working as expected so I agree and will update. Cheers. | ||
+ | |||
+ | Glenn |
Latest revision as of 17:18, 26 April 2022
This section of the tutorial seems to say that to add an "update" view to the helloworld component a new entry point file must be created with the same name as the view ("updhelloworld.php" in that example). I think this is wrong because: 1) I can delete this file and the example component still works 2) None of the other components have this structure (eg com_users just has a switch in the main controller's display to select different displays based on view name) 3) A "die()" in that file never gets executed.
Note that "helloworld.php" (without the "upd" prefix) was created as the entry point back in part 2.
- -Dave
- I can't see why there is dispatcher in the model and another import of it in the controller. oc666 00:49, 14 February 2012 (CST)
Hi Dave,
You are correct. Since your comment I created my second small component and followed your suggestion and all is working as expected so I agree and will update. Cheers.
Glenn