This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Wellington
Hello Everybody.
I am facing some problem about write an onSave function for a partial code.
Details.
I have a form inside a partial with data-request="onSave" the problem is I don know from what controller this partial is being called so that I can go there and write my onSave function.
Thanks
daftspunky
Just put the onSave() function inside the Layout, this way it will always be available. Otherwise you will need to define onSave() for each page that uses the partial.
1-2 of 2