fork download
  1. <?php
  2.  
  3. require_once __DIR__.'/../vendor/autoload.php';
  4.  
  5. $app = new Silex\Application();
  6.  
  7. $app['debug'] = true;
  8.  
  9. $app->get('/', 'Controllers\IndexController::index')->bind('homepage');
  10.  
  11. $app->get('/products', 'Controllers\IndexController::viewAllProducts')->bind('all.products');
  12.  
  13. $app->get('/product/{$id}', 'Controllers\IndexController::viewProduct')->bind('single.product');
  14.  
  15.  
  16. $app->run();
Runtime error #stdin #stdout #stderr 0.03s 52432KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Warning:  require_once(/home/QCgPE9/../vendor/autoload.php): failed to open stream: No such file or directory in /home/QCgPE9/prog.php on line 3
PHP Fatal error:  require_once(): Failed opening required '/home/QCgPE9/../vendor/autoload.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/QCgPE9/prog.php on line 3