Welcome Guest, Not a member yet? Register   Sign In
What is allowed in views exactly?
#2

[eluser]Colin Williams[/eluser]
Might help to move the access check into a helper function. I try to avoid using the $this reference from within views.

Code:
<div class="headerright">
&lt;?php if (is_authenticated()): ?&gt;
<strong class="greeting">Hello,&nbsp;&lt;?php echo $this->session->userdata('username'); ?&gt;</strong>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="?c=adm_logout" title="Logout" class="logoutlink">Logout</a>
&lt;?php endif; ?&gt;
</div>


Messages In This Thread
What is allowed in views exactly? - by El Forum - 01-28-2009, 09:06 PM
What is allowed in views exactly? - by El Forum - 01-28-2009, 10:58 PM
What is allowed in views exactly? - by El Forum - 01-29-2009, 06:49 AM
What is allowed in views exactly? - by El Forum - 01-29-2009, 04:40 PM
What is allowed in views exactly? - by El Forum - 01-29-2009, 05:35 PM



Theme © iAndrew 2016 - Forum software by © MyBB