vendredi 20 juillet 2018

How to choose appropriate controller to handle a request in MVC?

I want to create a post so I'm using the create method of post controller. but this page has category and subcategory fields and I want to get the subcategories using AJAX.

The question is which controller is more appropriate to get the subcategories?

  • AJAX controller
  • Post controller
  • Category controller


via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire