Component development question about controller/view?

For Joomla! 3.x Coding related discussions, you could also use: http://groups.google.com/group/joomla-dev-general

Moderators: ooffick, General Support Moderators

Forum rules
Locked
User avatar
jomlary
Joomla! Apprentice
Joomla! Apprentice
Posts: 42
Joined: Mon Aug 12, 2013 10:32 am

Component development question about controller/view?

Post by jomlary » Wed Oct 15, 2014 6:32 am

Hi,

i develop at the moment my first component, already i have 2 views, in the first view i read all categories and in the second all products, this was very easy to do but my question is:

I added a new view named "export", in this view i added a small form with submit button and 2 radiobuttons (export categories, export products), my question is, for a export for one of this 2 things is needed to develop in controller, right? If yes, how can i tell form in the view if user select a radiobutton option and submit form that he get result from my controller?

Thanke you in advance.

iextensions
I've been banned!
Posts: 1498
Joined: Fri Jul 12, 2013 5:37 pm
Contact:

Re: Component development question about controller/view?

Post by iextensions » Thu Oct 16, 2014 4:19 am

you have 2 radiobutton, when select one you can get one report......
you need to have one form.... after click submit, you can call the view that you defined before. you can use javascript to call the view that you want. example: click button event()


Locked

Return to “Joomla! 3.x Coding”