![]() |
|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
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. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
| 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 |
![]() |