[eluser]Unknown[/eluser]
Hello All,
I'm new to codeigniter... Great framework : )
I created a new object and placed it in a new folder called
/application/BusinessObjects/Tutor/SkillBO.php
and I tried to reference it from my controller located at the folder
/application/controllers/Tutor/CreateSkill.php using the following code
Code:
<?php
//include BO objects
require_once('../../BusinessObjects/Tutor/SkillBO.php');
class CreateSkill extends Controller {
// Load createskill page
function index()
{
//init BO object
$newSkill = new SkillBO();
//load page
$this->load->view('Tutor/CreateSkillView.php', $newSkill);
}
}
I get the following error
Message: require_once(../../BusinessObjects/Tutor/SkillBO.php): failed to open stream: No such file or directory
Note: I'm not using the model objects directly because I want to use serialize the SkillBO object and store it in the session. The model object has too many additional fields
Thank you for your helop
A