LerochkaKapito / extjs-bundle

Use ExtJs with Symfony 2
MIT License
21 stars 18 forks source link

Problem with ModelProxy route #31

Open smaug1985 opened 10 years ago

smaug1985 commented 10 years ago

Following the readme file, i have @Extjs\ModelProxy("/api/cars") but Extjs take like an absolute path and the requests are made to http:/localhost/api/cars and if i put a relative path @Extjs\ModelProxy("api/cars") the requests are made in a relative way and doesn't work. The solution to this is have absolute paths in the annotation, but i know this is not a permanent solution. Any Idea?