3
Guys I have a backend all made in Silex running perfectly, then my client sent me the frontend made in Angular, as I never used the Angular like to know where I put the htmls, JS, CSS of this frontend. And how I create the default route to call index.html. I only need this route because all the others are generated by Angularjs.
Thank you
The structure he sent me was the following:
Public
|->css
|->img
|->js
|->sources
|->views
|->index.html
If I run this with php -S localhost:8080 -t public, it works perfectly.
John, you should put these features on your presentation layer. About routes, Angularjs https://docs.angularjs.org/tutorial/step_07
– Alexandre Maeda
@Alexandremaeda when I said how the default route would be is the route that Silex should create to call index.html and then Angular takes the route service. Now about the files I have to throw all the quotes folders inside my view folder where are the TWIG view files?
– Joao Nivaldo
Do you use Wig for the project? I don’t know how people use Views in Silex, because I used my own Views system.
– Wallace Maxters