Everything, My PHP Zend MVC application structure is as follows:
billingsystem
-application
-design
-public
-library
whenever the application loads, it goes to index.php in the shared folder and it gets redirected from there. I want users to access the system by going to http: // billingsystem / instead of going to http: // billingsystem / public . This is a Zend convention for storing a shared folder. or can I get rid of it and move the files to the root directory? I tried to do this, but my application failed because it could not find the Zend library and load its classes. Some of my index.php code:
defined('APPLICATION_PATH')
|| define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));
set_include_path(implode(PATH_SEPARATOR, array(
realpath(APPLICATION_PATH . '/../library'),
get_include_path(),
)));
set_include_path(implode(PATH_SEPARATOR, array(
realpath(APPLICATION_PATH . '/../include'),
get_include_path(),
)));
set_include_path(implode(PATH_SEPARATOR, array(
realpath(APPLICATION_PATH . '/../application/models'),
get_include_path(),
)));
require_once 'Zend/Application.php';
require_once 'Zend/Loader.php';
Zend_Loader::loadClass('Zend_Loader_Autoloader');
Zend_Loader_Autoloader::getInstance()->setFallbackAutoloader(true);
thank
source
share