I'm using the codeigniter Framework to use my servers side logic, and I want to use backbonejs to manage the client side logic.
I read a lot about it and there are many ways to achieve this, I thought using the following design:
- In CI , keep only one view for each application. This will be a placeholder for the content that will be pushed by BackboneJS. The BackboneJS will be loaded from this page.
- In BackboneJS, manage all the application client side , and query the CI controllers (that might call CI models if needed) to fetch the dynamic content.
What is the best way to use them both? Does my design breaks the MVC design somehow?