sparkbuilt / lendr

Joomla! 3.0 Component Tutorial Series
73 stars 50 forks source link

The controller execution was very old. #1

Closed Serhioromano closed 11 years ago

Serhioromano commented 11 years ago

Derived even from Joomla 1.5. That way only trigger tasks like controller=controlername&task=taskname but now natively in Joomla it works like this task=contolername.taskname

davidhurley commented 11 years ago

Thanks for posting this as it brings up a good point. You're introducing a Legacy Controller which is not used in the new MVC structure. Secondly, according to the new MVC we want each controller to have one and only one task. Therefore the "execute" function is the only call made from the controller.

As a result I'm closing this invalid PR. I'm happy to help you though if you have questions about structuring your own working components to use the correct functions and classes. :)

Serhioromano commented 11 years ago

Secondly, according to the new MVC we want each controller to have one and only one task. Therefore the "execute" function is the only call made from the controller.

Can you point me to direction where it is stated that we want only one task? DO you mean that tsk=** URL is depreciated and only controller=** should be used? Because i do not know MVC that is structured for only one task per controller. That is senceless to my :smile:

I am ok you had closed this PR I just want to be sure about direction you are moving me to.