Welcome Guest, Not a member yet? Register   Sign In
Community Auth - Use to selectivly display content on page
#1

Hi all,

thanks for this nice plugin, i had some trouble setting it up but reading helped me big time.

One thing i could not achieve though was content on a page depending on a role.

i tried usingĀ 


PHP Code:
<?php
    
if( $this->require_role('admin') ) {
        echo 
'<a href="'.echo base_url(). 'index.php/advertsize/">Anzeigengr&ouml;&szlig;e</a>';
    }
?>

but this leads to the error:

Fatal error: Call to undefined method MY_Loader::require_role() in ...

Which i think is because i am calling this from a .php page and not a Controller.

How would i implement such a thing?

Thanks a lot.
x
Reply


Messages In This Thread
Community Auth - Use to selectivly display content on page - by xBarns - 11-27-2018, 02:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB