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(P ATH_SEPARA TOR, 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(P ATH_SEPARA TOR, 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/script s/index/in dex.phtml" ?
I'm trying to understand how that gets routed and can't figure it out.
Thanks
"<?php
// Define path to application directory
set_include_path(implode(P
|| define('APPLICATION_PATH',
// Define application environment
defined('APPLICATION_ENV')
|| define('APPLICATION_ENV', (getenv('APPLICATION_ENV')
// Ensure library/ is on include_path
set_include_path(implode(P
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/script
I'm trying to understand how that gets routed and can't figure it out.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.