php - Invalid controller specified (error) when trying Propel Query -


i've added propel orm zend framework project.
following files under /application/configs folder:

  • application.ini
  • build.properties
  • classmap-gentsefeesten-conf.php
  • gentsefeesten-conf.php
  • runtime-conf.xml
  • schema.xml

under /application/models have:

  • gentsefeesten
    • map
    • om
      query's

i work modules have modules folder 2 folders in (my modules).

in "index.php" file i've added following: (third rule)

set_include_path(implode(path_separator, array(   realpath(application_path . '/../library'),   realpath(application_path . '/models'),//propel   get_include_path(), ))); 

so application gets models in models folder.

but following error :

fatal error: uncaught exception 'zend_controller_dispatcher_exception' message 'invalid controller specified (error)' in /applications/mamp/htdocs/gentsefeesten/library/zend/controller/dispatcher/standard.php:248   stack trace:  #0 /applications/mamp/htdocs/gentsefeesten/library/zend/controller/front.php(954): zend_controller_dispatcher_standard->dispatch(object(zend_controller_request_http), object(zend_controller_response_http))  #1 /applications/mamp/htdocs/gentsefeesten/library/zend/application/bootstrap/bootstrap.php(97): zend_controller_front->dispatch()  #2 /applications/mamp/htdocs/gentsefeesten/library/zend/application.php(366): zend_application_bootstrap_bootstrap->run()  #3 /applications/mamp/htdocs/gentsefeesten/public/index.php(27): zend_application->run()  #4 {main} next exception 'zend_controller_exception' message 'invalid controller specified (error)  #0 /applications/mamp/htdocs/gentsefeesten/library/zend/controller/front.php(954): zend_controller_dispatcher_standard->dispatch(object(zend_controller_re in /applications/mamp/htdocs/gentsefeesten/library/zend/controller/plugin/broker.php on line 336 

it seems don't have access problem, because exceptions catched zend_controller_plugin_errorhandler. have exception because have no errorcontroller, , handler trying call it.

you may have exception details in error logs. in order watch error message., can put code in bootstrap :

$front = zend_controller_front::getinstance(); $front->throwexceptions( false ); 

or in application.ini :

resources.frontcontroller.throwexceptions = false 

(very useful in developpement configuration)

however, if use errorhanlder, should implement errorcontroller


Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -