Welcome Guest, Not a member yet? Register   Sign In
Security issue!
#11

[eluser]mrahman[/eluser]
[quote author="pieter dekker" date="1194967026"]
It's easy to understand that views shouldn't contain sensitive data. But how do you display sensitive data? Do I need to call from the view to a controller function?
How do you display sensitive data?
[/quote]

all of the solutions above are perfect. but as an answer: yes you might call a controller function from the view, in this case
Code:
get_instance()->checkLogin()
this is not practical though. if you load the view form a deffirent controller that will not work unless you add this method to each controller that loads that view. not good! now i don't recommend my own solution.




Theme © iAndrew 2016 - Forum software by © MyBB