Jump to content

Search the Community

Showing results for tags 'silex'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

Found 1 result

  1. 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(); } .... }
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.