0
I have the following scenario, some models that will be accessed via administration (website) and via client (app), in the administration it will be able to read and write data and the customer only read data.
My question, what is the best way to follow the MVC standard to optimize code (do not repeat)?
Since the administration and client will consume data, being the only difference that one will consume in html and the other json.
I thought to make a controller containing all the communication with the models and one more controller for each purpose (administration and model), these would access the main controller.
That my thinking is correct?
The basic answer would be: "Understand the basics of MVC + experience"... Each project is one way, I really think it has frameworks a little better than CI. I think the question is very broad
– Guilherme Nascimento
Have you seen HMVC? It might solve for your case.
– Marcelo Diniz
@Marcelodiniz found this idea interesting, I did not know this model
– Danilo
then, take a look here, in case you haven’t found né https://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc
– Marcelo Diniz