+ Reply to Thread
Results 1 to 3 of 3

Thread: Zend_Controller_Dispatcher_Exception' with message 'Invalid controller specified (ind

  1. #1
    manaworqutub@yahoo.com is offline Junior Member
    Join Date
    Oct 2009
    Posts
    2

    Default Zend_Controller_Dispatcher_Exception' with message 'Invalid controller specified (ind

    Hello,

    i am New to this to Zend, i am to trying to learn how to use mvc model with Zend .so i added a new domain to my server and modified my windows host file to play with it,my domian ip is 67.192.213.125 .here i am just tring to display "hello world " using mvc.

    So what i did i created a folder /var/www/vhost/comitR.com
    and under httpdocs i have all the files ,here is my directorey structure :

    -httpdocs
    -app
    - controllers
    - IndexController.php
    - models
    - views
    - scripts
    - index
    - index.phtml
    -library
    -ZendFramework-1.5.0
    - library
    - Zend
    -index.php

    i have modified my /var/www/vhost/comitR.com/config/vhost.config as following :

    <Directory /var/www/vhosts/comitR.com/httpdocs>
    #php_admin_value open_basedir "/var/www/vhosts/comitr.com/httpdocs:/tmp"
    php_admin_value include_path ".:/var/www/vhosts/comitR.com/httpdocs/:/tmp:/ar/www/vhosts/comitR.com/httpdocs/library/ZendFramework-1.5.0/library/"
    php_admin_value open_basedir "none"
    php_admin_value safe_mode "off"
    </Directory>


    Now my index.php is like this :

    <?php


    //http://67.192.213.125/index.php
    // Setting up environment

    error_reporting(E_ALL|E_STRICT);
    ini_set('display_errors', true);
    date_default_timezone_set('America/Chicago');

    $rootDir = dirname(dirname(__FILE__));
    //echo $rootDir;

    set_include_path($rootDir . '/library' .PATH_SEPARATOR.get_include_path());


    require_once 'Zend/Loader.php';
    Zend_Loader::loadClass('Zend_Debug');
    Zend_Loader::loadClass('Zend_Controller_Front');
    // setup controller
    $frontController = Zend_Controller_Front::getInstance();
    $frontController->throwExceptions(true);
    $frontController->setControllerDirectory('../app/controllers');
    // run!
    $frontController->dispatch();

    ?>


    so when i run comitR.com or using ip 67.192.213.125 i am getting following errors :


    Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller specified (index)' in /var/www/aerion/library/ZendFramework-1.5.0/library/Zend/Controller/Dispatcher/Standard.php:249 Stack trace: #0 /var/www/aerion/library/ZendFramework-1.5.0/library/Zend/Controller/Front.php(914): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #1 /var/www/vhosts/comitR.com/httpdocs/index.php(35): Zend_Controller_Front->dispatch() #2 {main} thrown in /var/www/aerion/library/ZendFramework-1.5.0/library/Zend/Controller/Dispatcher/Standard.php on line 249



    please help me this is discuragin me,so i am looking forward for some one help .

    thnaks

    Manawor
    Last edited by manaworqutub@yahoo.com; 10-22-2009 at 03:50 PM.

  2. #2
    manaworqutub@yahoo.com is offline Junior Member
    Join Date
    Oct 2009
    Posts
    2

    Default

    is any one here to help us "learner" ???

  3. #3
    lehua768 is offline Junior Member
    Join Date
    Jun 2010
    Posts
    2

    Default

    i have modified my /var/www/vhost/comitR.com/config/vhost.config as following :
    <Directory /var/www/vhosts/comitR.com/httpdocs>
    #php_admin_value open_basedir "/var/www/vhosts/comitr.com/httpdocs:/tmp"
    php_admin_value include_path ".:/var/www/vhosts/comitR.com/httpdocs/:/tmp:/ar/www/vhosts/comitR.com/httpdocs/library/ZendFramework-1.5.0/library/"
    php_admin_value open_basedir "none"
    php_admin_value safe_mode "off"



    __________________
    Replica Handbags
    Replica Watches
    Replica Handbags

+ Reply to Thread

Similar Threads

  1. Replies: 3
    Last Post: 05-18-2010, 10:25 AM
  2. Invalid Controller Problem
    By renzki in forum Model-View-Controller (MVC)
    Replies: 2
    Last Post: 11-29-2009, 05:50 PM
  3. Replies: 0
    Last Post: 07-14-2009, 09:11 AM
  4. Replies: 4
    Last Post: 02-27-2009, 04:41 PM
  5. Zend_Controller_Dispatcher_Exception: Invalid controller specified (error)
    By jasonswett in forum Model-View-Controller (MVC)
    Replies: 1
    Last Post: 01-12-2009, 10:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts