I don't know much about slauta93's framework, but I would say that knowing what the server is returning would be very helpful to anyone who can help you with this problem (i.e. what is it returning other than valid JSON - my guess is an error that would lead to the problem).
I have made a debug and saw that there was no json returned, because there was no valid routes found by Symfony2. And with a valid route, there is no json but the page itself returned...
So the sAjaxSource is wrong and i don't understand why... I will continue to learn more about routes in Symfony2 maybe...
Replies
Thank you for providing us your code.
I use normal routing via yml files, so just putted your routes in the file instead of using SensioFrameworkExtraBundle.
Datatables is saying that there is a JSON formatting error.
Can you explain a bit your code ?
Thank you.
Allan
I have made a debug and saw that there was no json returned, because there was no valid routes found by Symfony2. And with a valid route, there is no json but the page itself returned...
So the sAjaxSource is wrong and i don't understand why... I will continue to learn more about routes in Symfony2 maybe...
I solved my problem, just had to give the namespace when using the path to the entity repository.
Example:
[code]
mynamespaceMyBundle:MyEntity
[/code]
:)