DISQUS

DISQUS Hello! britg is using DISQUS, a powerful comment system, to manage its comments. Learn more.

Community Page

Jump to original thread »
Author

Using the Zend Framework in CakePHP

Started by britg · 11 months ago

No excerpt available. Jump to website »

3 comments

  • Hey there, thanks for the advice. Works great, adjusting the include path on the fly like this.

    However, my include path was not ending in a semicolumn, so I had to adjust this in zend_include_path.php:

    ini_set(‘include_path’, ini_get(‘include_path’).';'.dirname(__FILE__));
  • Interesting - i guess the most extensible solution would be to check if
    there is a semicolon and add it if there is not - like your case.
    Thanks for sharing
  • In fact, is better to use the PATH_SEPARATOR constant to determine the character to use. And there is no need to check if the include path ends with it or not, because an empty entry should no affect.

    ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR . dirname(__FILE__));

Add New Comment

Returning? Login