Jump to content


Member Since 12 Jun 2012
Offline Last Active Jun 12 2012 03:08 PM

Topics I've Started

"add record" with session

12 June 2012 - 02:45 PM

Hey There,

I'm actually not even sure if this is my problem (hoping it is though, as it seems to work without the problem mentioned below).

What I'm encountering is "add record" will fail when I include it in a login system that creates a session and then checks the user is logged in.

It will just tend to load forever and do nothing.

	public function __construct() {
		if (!isset($_SESSION['username'])) {

	public function database() {
		$crud = new grocery_CRUD();

		$output = $crud->render();
		$this->load->view('database', $output);

If I use the exact same table and function without the session it works fine - I can view and add data.

Any pointers on what I can do to get this working?