Note that there are some explanatory texts on larger screens.

plurals
  1. POZend Framework - displayExceptions property not working
    primarykey
    data
    text
    <p>In my ZF project's application.ini, I've set "resources.frontController.params.displayExceptions = 1". However, if an exception is thrown, the exception isn't displayed in the browser.</p> <p>Looking at the code in the generated ErrorController.php, it looks like the line that says:</p> <p>if ($this->getInvokeArg('displayExceptions') == true)</p> <p>always fails this condition.</p> <p>I'm new to the ZF, so there's likely something obvious I'm missing - but I don't know why it's not being set. It does seem to be processing the application.ini file, as it would be failing to connect to my database if it wasn't.</p> <hr> <p><strong>EDIT</strong></p> <p>Just found a clue:</p> <p>I had changed my modules directory. I've just undone that change, and this problem no longer occurs. However, I do actually want to change the modules directory. Here's a list of the changes I had made:</p> <p>In my application.ini, I added:</p> <pre><code>resources.frontController.moduleDirectory = APPLICATION_PATH "/modules" </code></pre> <p>In my Bootstrap class, I added:</p> <pre><code>protected function _initFrontController() { $front = Zend_Controller_Front::getInstance(); $front-&gt;addModuleDirectory(dirname(__FILE__) . '/modules'); $front-&gt;setDefaultModule('frontend'); return $front; } </code></pre> <p>This seems to successfully handle the module's new location and the site works fine (except that the displayExceptions flag isn't being set properly).</p> <p>Any ideas why this would be causing this symptom?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload