[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,