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

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -