slimcontroller
slimcontroller copied to clipboard
Controller extensions for the Slim Framework, used by help.fortrabbit.com and blog.fortrabbit.com
I started migrating SlimControllers for a project of mine, before realising the project had too many other dependencies so I've stopped the attempt. I thought I'd publish this in case...
Added ability to return response either as plain text or as Response object from controller. Added convenience method for creating RESTful responses from JSON-serializable objects.
I am wondering if you would update to be compatible with Slim Framework 3 when it will be in stable release.
Hi and thanks for your contribution, I have a problem to get the values of routes parameters. In my routes, I want to get the "id" param in the controller...
Can I ask you pay attention on example line ``` php define('APP_PATH', dirname(__DIR__)); // PHP v5.3+ ``` I tottaly sure that you try to write ``` php define('APP_PATH', dirname(__FILE__)); //...
I really enjoy using slimcontroller. Is it possible to include an authentication middleware while defining routes in index.php ? e.g. I have $authenticate defined: $authenticate = function ($app) { return...
You cannot have a route that is GET and POST, it will default to the later unlike typical Slim which will support either of a type: ``` $app->addRoutes([ '/' =>...
I add new controller by: `addControllerRoute('hello', 'Index:index')->via('GET')->name('name');` and i have problem with ``` Invalid argument supplied for foreach() Location:lib/vendor/slim/slim/Slim/Router.php in handleError , line 147 ``` exactly is: ``` protected function...
Is it possible to have Named Routes, which I can then use in $app->UrlFor() ?
Hey man, I notice a load of functions within the Controller class for parameters etc. How are these used? Do you just pass parameters into them from within the called...