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

[eluser]WanWizard[/eluser]
CI objects aren't assigned to Datamapper models, because you don't load them using $this->load->model().

If you want to use them, do the same as you do in a library:
Code:
if(!$town->save())
    {
       log_message ( 'ERROR' , 'Could not create town' );
       $CI =& get_instance();
       $CI->session->set_flashdata ('error','<p> cannot create town</p>');
       redirect ( 'frontend/page_create_town' );
    }


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