⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

solved: necessary adjustments using ag_auth (e.g.)



Jan from Hamburg
  • profile picture
  • Member

Posted 02 March 2012 - 10:47 AM

Hi, great work! but, I've just put it together with ag_auth.
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);
}
}

Jan from Hamburg
  • profile picture
  • Member

Posted 02 March 2012 - 11:38 AM

yes, if you use ag_auth you have to write a line in config/routes for every 'add', 'edit', etc. just point to the function and add e.g. "/add".