Warning: require_once(C:\wamp\www\ecommerce\pages\ecommerce.php) [function.require-once]: failed to open stream: No such file or directory in C:\wamp\www\ecommerce\classes\Core.php on line 59
I'm following the project videos of one of the Web Ecommerce project using PHP,MYSQL.
Here is my run()
method Throwing error:
public function run() {
ob_start();
switch ($this->objUrl->module) {
case 'panel':
set_include_path(implode(PATH_SEPARATOR, array(
realpath(ROOT_PATH.DS.'admin'.DS.TEMPLATE_DIR),
realpath(ROOT_PATH.DS.'admin'.DS.PAGES_DIR),
get_include_path()
)));
require_once(ROOT_PATH.DS.'admin'.DS.PAGES_DIR.DS.
$this->objUrl->cpage.'.php');
break;
default:
set_include_path(implode(PATH_SEPARATOR, array(
realpath(ROOT_PATH.DS.TEMPLATE_DIR),
realpath(ROOT_PATH.DS.PAGES_DIR),
get_include_path()
)));
require_once(ROOT_PATH.DS.PAGES_DIR.DS.
$this->objUrl->cpage.'.php');
}
ob_get_flush();
}