So I have subfolders 'auth/' in my views-folder, where I also but 'our_template.php'
No problem with the simple list, but I dont get the 'add'- or 'edit'-view.
I think it's a routing problem, because when I click on 'Add' it is just adding '/add' to the same function.
Could you or someone here give me a hint what to do? Which path-info needs to be changed? Or what else is to do?
Appreciate every hint, tipp or good question!
Thanks, Jan
class Admin extends Application
{
public function __construct()
{
parent::__construct();
$this->load->database();
$this->load->helper('url');
$this->load->library('grocery_CRUD');
}
public some other functions() {blabla}
public function employees()
{
if(logged_in())
{
/*... as known from documentation...*/
}
else
{
$this->login();
}
}
function _example_output($output = null)
{
$this->load->view('auth/our_template.php',$output);
}
}