Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>APPLICATION_PATH is a PHP constant used by ZendFramework to determine where you deployed/installed your project. It's usually defined in newproject/public/index.php i.e.</p> <pre><code>// Define path to application directory defined('APPLICATION_PATH') || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application')); // Define application environment defined('APPLICATION_ENV') || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production')); /** Zend_Application */ require_once 'Zend/Application.php'; // Create application, bootstrap, and run $application = new Zend_Application( APPLICATION_ENV, APPLICATION_PATH . '/configs/application.ini' ); $application-&gt;bootstrap() -&gt;run(); </code></pre> <p><strong>Application.ini is not a php class / file</strong>, it is a configuration file which means it follows a different syntax. </p> <p>To concatenate strings and constants together, you simple put them next to each other, <strong>you don't use the dot (.) operator</strong>. One thing to watch out for is that you have to use double quotes ("), otherwise the constant will not be evaluated.</p> <p>For more information, you can look into the documentation of the parse_ini() function, which is the function that's used by ZendFramework to parse configuration files.</p> <p>References: <a href="http://php.net/manual/en/function.parse-ini-file.php" rel="noreferrer">http://php.net/manual/en/function.parse-ini-file.php</a> http://php.net/manual/en/function.constant.php <a href="http://framework.zend.com/manual/en/zend.application.quick-start.html" rel="noreferrer">http://framework.zend.com/manual/en/zend.application.quick-start.html</a></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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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