Welcome Guest, Not a member yet? Register   Sign In
running some function before view
#1

Hi, 


I put notification bar on topbar. the data for notifications are set in MY_Controller.php
problem is:

For example there is notification where it says user has N unread messages. 
where N set in MY_Controller.
 
and then when user goes to unreaded message page, that notification should be decreased by 1, 
but as N set in MY_Controller and thus runs before Message Controller runs it will not be decreased by one.

What is the good way to solve this?

Thanks
Reply


Messages In This Thread
running some function before view - by neuron - 05-31-2017, 05:04 AM
RE: running some function before view - by PaulD - 05-31-2017, 10:46 AM
RE: running some function before view - by neuron - 06-01-2017, 04:03 AM



Theme © iAndrew 2016 - Forum software by © MyBB