Zoombat Posted November 15, 2012 Share Posted November 15, 2012 (edited) 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(); } .... } Edited November 15, 2012 by Zoombat Quote Link to comment https://forums.phpfreaks.com/topic/270737-silex-micro-framework-running-errorwhite-screen/ Share on other sites More sharing options...
Zoombat Posted December 1, 2012 Author Share Posted December 1, 2012 Anyway, I got it solved already ;-) Quote Link to comment https://forums.phpfreaks.com/topic/270737-silex-micro-framework-running-errorwhite-screen/#findComment-1396642 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.