dmzf (1) [Avatar] Offline
#1
I have a problem early on in my application, an issue with this block of code


public function __construct($configSection)
{
$rootDir = dirname(dirname(__FILE__));
define('ROOT_DIR', $rootDir);
set_include_path(get_include_path()
. PATH_SEPARATOR . ROOT_DIR . '/library/'
. PATH_SEPARATOR . ROOT_DIR .
'/application/models/'
);

include 'Zend/Loader.php';
require_once 'Zend/Loader/Autoloader.php';

//Load configuration
Zend_Registry::set('configSection', $configSection);
$config=new Zend_Config_Ini(ROOT_DIR.'/application/config.ini', $configSection);
Zend_Registry::set('config', $config);
date_default_timezone_set($config->date_default_timezone);


My folder structure is as follows, can anybody help me with the issue?

-my_app
- -application
- - -controllers
- - -models
- - -views
- - -bootstrap
- - -config
- -library
- - -Zend
- -public
- - -.htaccess
- - -index.php

Any help appreciated, I am desperate to get started
Nathan Andrews (1) [Avatar] Offline
#2
That is good information, I really appreciated your effort has you done here.