Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Do you have the rest of the Zend Framework stuff working without the use of Doctrine? If so, you have a bootstrap file that you use for that application. Assuming a default directory layout, if you have your doctrine.php in your scripts directory and your bootstrap.php in your application directory, you should be able to just do this to get your doctrine cli working in doctrine.php:</p> <pre><code>require dirname(__FILE__).'/../application/global.php'; // the config line below might be different based on how you have your // doctrine config stuff set up $cli = new Doctrine_Cli(Zend_Registry::get('doctrine_config')); $cli-&gt;run($_SERVER['argv']); </code></pre> <p>In your bootstrap.php (or a file required by your bootstrap.php), your autoloader should be configured something like this:</p> <pre><code>// set up your include path here set_include_path(dirname(__FILE__).'/../library/zendframework' . PATH_SEPARATOR . dirname(__FILE__).'/../library/doctrine' . PATH_SEPARATOR . dirname(__FILE__).'/models' . PATH_SEPARATOR . dirname(__FILE__).'/models/generated' . PATH_SEPARATOR . dirname(__FILE__).'/business' . PATH_SEPARATOR . dirname(__FILE__).'/business/exceptions' . PATH_SEPARATOR . dirname(__FILE__).'/business/util' . PATH_SEPARATOR . dirname(__FILE__).'/business/validators' . PATH_SEPARATOR . get_include_path()); require 'Zend/Loader/Autoloader.php'; $loader = Zend_Loader_Autoloader::getInstance(); $loader-&gt;suppressNotFoundWarnings(false); $loader-&gt;setFallbackAutoloader(true); </code></pre> <p>Post here if this doesn't work. We had a bunch of issues setting this up in the beginning with Zend Framework's autoloader.</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.
    1. This table or related slice is empty.
    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