Welcome Guest, Not a member yet? Register   Sign In
Issue with session in Datamapper 1.80
#1

[eluser]da_mage[/eluser]
Hi there,
I have been using codeigniter for about a year now and used snippets like this one all over the place
-------------------------------------------------------------------------------------------
Code:
if(!$town->save())
    {
       log_message ( 'ERROR' , 'Could not create town' );
       $this->session->set_flashdata ('error','<p> cannot create town</p>');
       redirect ( 'frontend/page_create_town' );
    }
-------------------------------------------------------------------------------------------

I recently decided to start using Datamapper ORM v 1.80 as my ORM of choice.
But when I paste the exact same snippet in any of my Datamapper extended models I get this error:

Fatal error: Call to a member function set_flashdata() on a non-object

What on earth am I doing wrong...I have been looking on the forums and did't find a similar issue,


Messages In This Thread
Issue with session in Datamapper 1.80 - by El Forum - 03-19-2011, 08:34 AM
Issue with session in Datamapper 1.80 - by El Forum - 03-19-2011, 10:14 AM
Issue with session in Datamapper 1.80 - by El Forum - 03-19-2011, 10:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB