DISQUS

britg: Using the Zend Framework in CakePHP

  • David Spreekmeester · 1 year ago
    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__));
  • britg · 1 year ago
    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
  • davidcm · 1 year ago
    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__));
  • JoshReedSchramm · 2 months ago
    You good sir are a rockstar. Just found this post and it saved me a ton of headache. *tips hat*