User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 391,705 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,257 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 364 | Replies: 2
Reply
Join Date: Mar 2008
Posts: 17
Reputation: dele454 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
dele454's Avatar
dele454 dele454 is offline Offline
Newbie Poster

Zend is making me feel Zendy!!

  #1  
Jun 11th, 2008
Hi,

Just trying to learn on how the Zend Framework works but i keep on getting this errors on viewing as http://mainevent on my local machine:

Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller specified (error)' in D:\apachefriends\xampp\htdocs\xampp\mainevent\include\Zend\library\Zend\Contro ller\Dispatcher\Standard.php:249 Stack trace: #0 D:\apachefriends\xampp\htdocs\xampp\mainevent\include\Zend\library\Zend\Contro ller\Front.php(914): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #1 D:\apachefriends\xampp\htdocs\xampp\mainevent\public_html\index.php(16): Zend_Controller_Front->dispatch() #2 {main} thrown in D:\apachefriends\xampp\htdocs\xampp\mainevent\include\Zend\library\Zend\Contro ller\Dispatcher\Standard.php on line 249


Can anyone help and so new to this? Thanks
Last edited by peter_budo : Jun 11th, 2008 at 2:15 pm. Reason: Keep It Organized - please use [code] tags
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Mar 2008
Posts: 17
Reputation: dele454 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
dele454's Avatar
dele454 dele454 is offline Offline
Newbie Poster

Re: Zend is making me feel Zendy!!

  #2  
Jun 11th, 2008
I ran this code to check if the Zend framework can be viewed and it does indicate Ready

  1. <?php
  2. require ‘Zend/Version.php’;
  3.  
  4. if (Zend_Version::compareVersion(0.9.2beta’) > 0) {
  5. echo “Please upgrade to a newer version of ZF for this demo.\n”;
  6. } else {
  7. echo “Ready!\n”;
  8. }
  9. ?>

But i dont know am getting that controller fatal error!!
Last edited by peter_budo : Jun 11th, 2008 at 2:15 pm. Reason: Keep It Organized - please use [code] tags
Reply With Quote  
Join Date: Mar 2008
Posts: 17
Reputation: dele454 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
dele454's Avatar
dele454 dele454 is offline Offline
Newbie Poster

Re: Zend is making me feel Zendy!!

  #3  
Jun 11th, 2008
This is how my bootstrap looks like

  1. <?php
  2. require_once('Zend/Loader.php');
  3. Zend_Loader::registerAutoload();
  4. $controller = Zend_Controller_Front::getInstance();
  5. $controller->setControllerDirectory('../include/Controllers');
  6. $controller->dispatch();
  7. ?>

Creating virtual host as:

<VirtualHost *:80>
ServerName mainevent
DocumentRoot "D:/apachefriends/xampp/htdocs/xampp/mainevent/public_html"
<Directory "D:/apachefriends/xampp/htdocs/xampp/mainevent/public_html">
AllowOverride None
Options All
</Directory>
php_value include_path ".;D:/apachefriends/xampp/htdocs/xampp/mainevent/include;D:/apachefriends/xampp/php/PEAR;D:/apachefriends/xampp/htdocs/xampp/mainevent/include/zend/library"
php_value magic_quotes_gpc off
php_value register_globals off
</VirtualHost>

And my directory listing are as follows:
D:\apachefriends\xampp\htdocs\xampp\mainevent -> Include, public_html, app_data, templates

D:\apachefriends\xampp\htdocs\xampp\mainevent\include -> Controllers, Zend Framework

D:\apachefriends\xampp\htdocs\xampp\mainevent\include\controllers -> Controller classes

D:\apachefriends\xampp\htdocs\xampp\mainevent\include\Zend -> Library

D:\apachefriends\xampp\htdocs\xampp\mainevent\include\Zend\library ->Zend-> all zend folders and classes

Sorry i have to be so lame breaking it down like this. Just that this seems to be the only way of giving concrete information on what i have set up on my side. thanks
Last edited by peter_budo : Jun 11th, 2008 at 2:16 pm. Reason: Keep It Organized - please use [code] tags
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb PHP Marketplace
Thread Tools Display Modes

Other Threads in the PHP Forum

All times are GMT -4. The time now is 2:52 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC