title: Cannot start phalcon project on browser
body: <p>I use wamp 2.5</p>
  
  <p>I successfully included the phalcon extension by copying the <code>dll</code> file into the ext folder of the wamp php folder , and editing the <code>php.ini</code> file by including <code>extension=php_phalcon.dll</code>. I created a simple project. But when I wanted to open the project on the browser then it shows the list of folders but not the desired page ! Here is the captured photo of the result :</p>
  
  <p><a href="https://i.stack.imgur.com/mSWxQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mSWxQ.png" alt="enter image description here"></a></p>
  
  <p>So how to fix it ?</p>
  
  <p><strong>edit :</strong></p>
  
  <p>here is code of the index.php in the public folder :</p>
  
  <pre><code>&lt;?php
  
  use Phalcon\Loader;
  use Phalcon\DI\FactoryDefault;
  use Phalcon\Mvc\View;
  use Phalcon\Mvc\Application;
  use Phalcon\Mvc\Url as UrlProvider;
  use Phalcon\Db\Adapter\Pdo\Mysql as DbAdapter;
  use Phalcon\Session\Adapter\Files as SessionFiles;
  
  include("../app/config_const.php");
  include("../app/config_inc.php");
  include("../app/lib/PSR.php");
  
  require_once RP_BIRT . 'runReport.php';
  
  try {
  
      // Register an autoloader
      $loader = new Loader();
      $loader-&gt;registerDirs(array(
          '../app/controllers/',
          '../app/models/'
      ))-&gt;register();
  
      // Create a DI
      $di = new FactoryDefault();
  
      // Start the session the first time when some component request the session service
      $di-&gt;setShared('session', function () {
          $session = new SessionFiles();
          $session-&gt;start();
          return $session;
      });
  
      // Setup the database service
      $di-&gt;set('db', function(){
          $cnx = new DbAdapter(array(
              "host"     =&gt; SERVEUR,
              "username" =&gt; LOGIN_DB,
              "password" =&gt; PWS_DB,
              "dbname"   =&gt; BDD
          ));
          return $cnx;
      });
  
      // Setup the view component
      $di-&gt;set('view', function(){
          $view = new View();
          $view-&gt;setViewsDir('../app/views/');
          $view-&gt;registerEngines(array(
              ".phtml" =&gt; 'Phalcon\Mvc\View\Engine\Volt'
          ));
          return $view;
      });
  
      // Setup a base URI so that all generated URIs include the "phalcon" folder
      $di-&gt;set('url', function(){
          $url = new UrlProvider();
  
          $url-&gt;setBaseUri('/'.SITE.'/');
          return $url;
      });
  
      //Register the flash service with custom CSS classes
      $di-&gt;set('flash', function(){
          $flash = new \Phalcon\Flash\Direct(array(
              'error' =&gt; 'alert alert-error',
              'success' =&gt; 'alert alert-success',
              'notice' =&gt; 'alert alert-info',
          ));
          return $flash;
      });
  
      //Handle the request
      $app = new Application($di);
  
     echo $app-&gt;handle()-&gt;getContent();
  
  } catch(\Exception $e) {
       echo "Exception:  ", $e-&gt;getMessage();
  }
  
  ?&gt;
  </code></pre>
  
  <p>code of ../app/config_const.php :</p>
  
  <pre><code>&lt;?php
  
  define("BDD","resto_vide");
  define("SITE", "resto");
  
  define('HTTP_MAIN', 'http://'.  $_SERVER["HTTP_HOST"] .'/'.SITE.'/') ;
  
  define('RP_LANG', HTTP_MAIN . 'lang/');
  define('RP_SSP', HTTP_MAIN . 'ssp/');
  
  define("SERVEUR",$_SERVER["HTTP_HOST"]);
  define("LOGIN_DB","root");
  define("PWS_DB","admin");
  define("BDD_PORT" ,3306);
  
  define('HTTP_CSS', HTTP_MAIN . "css/");
  define('HTTP_JS', HTTP_MAIN . "javascript/");
  define('HTTP_IMG', HTTP_MAIN . "images/");
  define('HTTP_IMG_LOGO', HTTP_IMG . "logo/");
  define('HTTP_IMG_ART', HTTP_IMG . "articles/");
  define('HTTP_IMG_TMP', HTTP_IMG . "tmp/");
  define('HTTP_IMG_MODE_REGLEMENT', HTTP_IMG . "mode_reglement/");
  define('HTTP_IMG_BILLETAGE', HTTP_IMG . "billetage/");
  define('HTTP_IMG_CHAMBRE', HTTP_IMG . "chambre/");
  define('HTTP_IMG_SALLE', HTTP_IMG . "salle/");
  define('HTTP_IMG_TABLE_CLIENT', HTTP_IMG . "table_client/");
  
  define('RP_MAIN', substr($_SERVER["DOCUMENT_ROOT"],-1) == '/' ? $_SERVER["DOCUMENT_ROOT"] . SITE.'/' : $_SERVER["DOCUMENT_ROOT"].'/' . SITE.'/');
  
  define('RP_IMG', RP_MAIN . 'public/images/');
  define('RP_IMG_LOGO', RP_IMG . 'logo/');
  define('RP_IMG_ART', RP_IMG . 'articles/');
  define('RP_IMG_TMP', RP_IMG . 'tmp/');
  define('RP_IMG_BILLETAGE', RP_IMG . "billetage/");
  define('RP_IMG_CHAMBRE', RP_IMG . "chambre/");
  define('RP_IMG_SALLE', RP_IMG . "salle/");
  define('RP_IMG_TABLE_CLIENT', RP_IMG . "table_client/");
  
  define('RP_LIB', RP_MAIN . 'app/lib/');
  define('CODE_LANG','sess_code_lang');
  define('DEFAULT_LANG',  '/fr/');
  define('RP_RESSOURCES', RP_MAIN . 'app/ressources/');
  
  define('RP_BIRT' , RP_LIB . 'birt/');
  
  define('RP_REPORT' , RP_MAIN . "public/report/");
  
  // SQL server connection information
  $sql_details = array(
      'user' =&gt; LOGIN_DB,
      'pass' =&gt; PWS_DB,
      'db'   =&gt; BDD,
      'host' =&gt; SERVEUR
  );
  
  ?&gt;
  </code></pre>
  
  <p>code of ../app/config_inc.php :</p>
  
  <pre><code>&lt;?php
  require_once RP_LIB . 'ressources.lib.php';
  require_once RP_LIB . 'pagination.lib.php';
  require_once RP_LIB . 'debug.php';
  require_once RP_LIB . 'datetime.lib.php';
  require_once RP_LIB . 'mysql.lib.php';
  require_once RP_LIB . 'string.lib.php';
  require_once RP_LIB . 'numberFormat.lib.php';
  require_once RP_LIB . 'file.lib.php';
  
  @ini_alter('error_log', RP_MAIN . 'log/error.log');
  @ini_alter('default_charset', 'iso-8859-1');
  loadRessource('main') ;
  loadRessource('global') ;
  ?&gt;
  </code></pre>
  
  <p>code of ../app/lib/PSR.php :</p>
  
  <pre><code>&lt;?php
  /*
    +------------------------------------------------------------------------+
    | Phalcon Framework                                                      |
    +------------------------------------------------------------------------+
    | Copyright (c) 2011-2015 Phalcon Team (http://www.phalconphp.com)       |
    +------------------------------------------------------------------------+
    | This source file is subject to the New BSD License that is bundled     |
    | with this package in the file docs/LICENSE.txt.                        |
    |                                                                        |
    | If you did not receive a copy of the license and are unable to         |
    | obtain it through the world-wide-web, please send an email             |
    | to license@phalconphp.com so we can send you a copy immediately.       |
    +------------------------------------------------------------------------+
    | Authors: Piyush Rajesh &lt;mba.piyushgupta@gmail.com&gt;                     |
    |          Serghei Iakovlev &lt;sadhooklay@gmail.com&gt;                       |
    +------------------------------------------------------------------------+
  */
  namespace Phalcon\Loader;
  use Phalcon\Loader;
  /**
   * Phalcon\Loader\PSR.
   * Implements PSR-0 autoloader for your apps.
   *
   * @package Phalcon\Loader
   */
  class PSR extends Loader
  {
      /**
       * Namespace separator
       * @var string
       */
      protected $namespaceSeparator = '\\';
      /**
       * Loads the given class or interface.
       *
       * @param string $className The name of the class to load.
       *
       * @return bool
       */
      public function autoLoad($className)
      {
          // Reduce slashes
          $className = ltrim($className, $this-&gt;namespaceSeparator);
          $array = explode($this-&gt;namespaceSeparator, $className);
          if (array_key_exists($array[0], $this-&gt;_namespaces)) {
              $array[0] = $this-&gt;_namespaces[$array[0]];
              $class = array_pop($array);
              array_push($array, str_replace("_", DIRECTORY_SEPARATOR, $class));
              $file = implode($array, DIRECTORY_SEPARATOR);
              foreach ($this-&gt;_extensions as $ext) {
                  if (file_exists($file . ".$ext")) {
                      require $file . ".$ext";
                      return true;
                  }
              }
          }
          // If it did not fit standard PSR-0, pass it on to the original Phalcon autoloader
          return parent::autoLoad($className);
      }
  }
  </code></pre>