Help with Zend Framework

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Help with Zend Framework

    <?php

    // includes
    set_include_path('.'
    . PATH_SEPERATOR . get_include_path()
    . PATH_SEPERATOR . '../library/'
    . PATH_SEPERATOR . '../application'

    );

    // front
    require_once 'Zend/Controller/Front.php';
    Zend_Loader::registerAutoload();

    // database connect
    new DbInitialize();

    // start mvc
    Zend_Layout::StartMvc($option);

    ?>

    - - -

    Error is:
    failed to open stream: No such file or directory in xxxxxxxxxxxxxxx/index.php on line 12

    - - -

    Why this happen?
    mysterio.al - programming is a functional art

    #2
    What is xxxxxx? If u nid help, state ur exact issue, if nt stfu about it ha. :-/

    Comment


      #3
      Don't act as a proud-spirited, mobileGIGS . I replaced the real path, because it was long and not important, nothing more.

      If you know Zend Framework, that is the index.php file, and the Front.php (currently in ../library/Zend/Controller/Front.php) is not missing, but the configuration is incorrect!

      Anyway, thanks for the answer! Here is the correct code:

      ini_set('include_path', ini_get('include_path') .PATH_SEPARATOR . '../library/');
      require_once('Zend/Loader/Autoloader.php');
      Zend_Loader_Autoloader::autoload('Zend_Controller_ Front');
      Last edited by Mysterio; 27.03.10, 10:46.
      mysterio.al - programming is a functional art

      Comment

      Working...
      X