Search the Community
Showing results for tags 'micro-framework'.
-
I'm not 100% sure that this is the best place for this thread, however I wanted to know which micro-frameworks you guys use (if any). They're not always the best to use, however I've been using Flight for quite a while and I love it, but I moved to Flight from Slim, so I'm just wondering if there isn't an even better framework I should be using. I've ventured into the larger supported frameworks like CakePHP, and Fuel, but I don't really like them; I mostly do smaller projects which require as little overhead as possible.
- 8 replies
-
- framework
- micro-framework
-
(and 1 more)
Tagged with:
-
So my silex application did run for a good time, but now it's disfunctional, and I do not know exactly why, because I believe nothing changed.. It should be a little website with administration page. - This is a snippet of the code, the total code is still in concept phase. - For the full code: http://pastebin.com/myXwF4nT - Other code parts on request. - Controller::invoke() is called from the index.php Thanks in advance! require_once __DIR__.'/vendor/autoload.php'; require_once __DIR__.'/const.php'; require_once __DIR__.'/route.php'; require_once __DIR__.'/../model/database.php'; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\HttpKernelInterface; class Controller { public static $appProvider = null; public static $expireTime = 5400; public static $timeStamp = null; public static $routeArray = null; public static $routeMatched = null; public static $subRouteMatched = null; public static function getSilex() { if(self::$appProvider == null) { self::$appProvider = new Silex\Application(); // Twig Service Provider self::$appProvider->register( new Silex\Provider\TwigServiceProvider(), array('twig.path' => __DIR__.'/../view/', 'twig.options' => array('cache' => __DIR__.'/../cache'),)); self::$appProvider['debug'] = true; } return self::$appProvider; } public static function invoke() { // example $silex = self::getSilext()->run(); } .... }
- 1 reply
-
- silex
- micro-framework
-
(and 1 more)
Tagged with: