Codeigniter basic delete -
I have a link that calls this function:
Delete function ($ Id) {// Delete from database - $ -> db-> Delete ('message', array ('id' = & gt; $ id)); $ Data ['delete_message'] = 'Message successfully deleted'; Redirect ('admin'); }
As you can see that I redirect to the admin function, and I want to pass delete_message in that function. How can I do this?
Have you seen "?" You can set your success message in Flash and the next page (the administrator in your case) reads it available and sees it regularly as $ data ['foo']
.
Comments
Post a Comment