Zend Framework Forum

Go Back   Zend Framework Forum > Zend Framework Forum > Forum Feedback

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-22-2009, 03:40 PM
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 10-23-2009, 05:33 PM
Junior Member
 
Join Date: Oct 2009
Posts: 2
Default

is any one here to help us "learner" ???
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT. The time now is 06:07 PM.


Designed by: Miner Skinz Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0