We're exploring the Restler framework. What we need is a custom route like:
[host]/:sessionid/{class}/{method}?param1=x¶m2=y
For example, the Settings
method in the Game
class:
<?php
class Game {
function settings($session, $sound=TRUE, $music=TRUE){
//
}
}
?>
should map to http://hostname/12435635/game/settings?sound=x&music=y
We've managed to achieve it by hacking the routes.php
file a bit, but as the file is auto-generated the idea is not very good. So, is it possible to create such routes without hacking the Restler's source or modifying the routes.php
file?