I’ve got the problem, that I’ve got one site with lots of content in it with the visablity managed by javascript. In this site are some fields and stuff, which should end in a create for the table “statistic”.
So my question is, how can I manage a create on a table (or receive an ajax post with a controller) from a javascript file.
check this guide section you should be using createUrl to generate the correct url to your StatisticController instead of just calling a static php file (test.php)
You can also take a look at this wiki as it explains how to use this rules to generate user friendly urls