You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello Steve,
why do we have to use the main controller.php for checking the right token?
If no url is given then the json request ist routed to index.php?option=com_helloworld&view=helloworld...
so why don't use the view.json.php to check the token also.
The additional function mapsearch is not needed any more, therefore not included in the json ajax call.
There is more flexibility to use several jason ajax requests at serveral views of one component (that's I want to do).
Please give me a short reply of your opinion to this. It's just a question of better understanding.
Best regards,
vomoa com_hellow2.zip
The text was updated successfully, but these errors were encountered:
I don't think it matters functionally whether you do the check in the controller or in the view.
The convention within the Joomla core components seems to be that they perform the check in the controller though, and from that perspective I think it's best to follow that pattern.
The Joomla team may do it this way because if the token is wrong or missing then it indicates something suspicious, so the http request is rejected as a priority.
Hello Steve,
why do we have to use the main controller.php for checking the right token?
If no url is given then the json request ist routed to index.php?option=com_helloworld&view=helloworld...
so why don't use the view.json.php to check the token also.
The additional function mapsearch is not needed any more, therefore not included in the json ajax call.
There is more flexibility to use several jason ajax requests at serveral views of one component (that's I want to do).
Please give me a short reply of your opinion to this. It's just a question of better understanding.
Best regards,
vomoa
com_hellow2.zip
The text was updated successfully, but these errors were encountered: