[eluser]landitus[/eluser]
I've managed to load ProcessWire within CI quite succesfully. I've created a library which autoloads ProcessWire, which looks like this:
Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Myprocesswire
{
/**
* CodeIgniter global
*
* @var string
**/
protected $ci;
public function __construct()
{
$this->ci =& get_instance();
include("./pw/index.php");
wire('pages')->setOutputFormatting(true);
}
}
Everything seems to work fine, except for this error/warning:
Code:
Warning: include(application/errors/error_php.php) [function.include]: failed to open stream: No such file or directory in /Users/PROYECTPATH/system/core/Exceptions.php on line 182
Warning: include() [function.include]: Failed opening 'application/errors/error_php.php' for inclusion (include_path='.:/Applications/MAMP/bin/php/php5.2.17/lib/php') in /Users/PROYECTPATH/system/core/Exceptions.php on line 182
Warning: include(application/errors/error_php.php) [function.include]: failed to open stream: No such file or directory in /Users/PROYECTPATH/system/core/Exceptions.php on line 182
Warning: include() [function.include]: Failed opening 'application/errors/error_php.php' for inclusion (include_path='.:/Applications/MAMP/bin/php/php5.2.17/lib/php') in /Users/PROYECTPATH/system/core/Exceptions.php on line 182
Is there something wrong with my code?