Link to home
Start Free TrialLog in
Avatar of ProdigyOne2k
ProdigyOne2k

asked on

Zend Framework - Index.php

So...I'm doing my first Zend Framework project and the index.PHP code is as such

"<?php

// Define path to application directory
set_include_path(implode(PATH_SEPARATOR, array(
    || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));

// Define application environment
defined('APPLICATION_ENV')
    || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));

// Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, array(
    realpath(APPLICATION_PATH . '/../library'),
    get_include_path(),
)));

/** Zend_Application */
require_once 'Zend/Application.php';

// Create application, bootstrap, and run
$application = new Zend_Application(
    APPLICATION_ENV,
    APPLICATION_PATH . '/configs/application.ini'
);
$application->bootstrap()
            ->run();"

When I build the project it comes up on the index.phtml page....

Where in that "index.php" code does it direct to the "/application/views/scripts/index/index.phtml"?

I'm trying to understand how that gets routed and can't figure it out.

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Scott Madeira
Scott Madeira
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Also, I would also suggest that you run your project through your IDE (Netbeans, Eclipse, Zend Studio, etc.) in debugging mode so that you can step through all the classes and see how it all fits together.