Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
accessing profile field in SimpleAUth
I Use simpleauth but still don't understand how to retrieve nor use profile_fields.
I use oil console
so in the table
store data like this
I don't understand how to get "accounting" and displaying it in view.
thank you for the advise.. :)
echo Auth::get('accounting', 'not set') would do fine?
so I do this.,
$this->template->title = 'Dashboard';
$this->template->content = View::forge('admin/dashboard');
in view admin/dashboard echo Auth::get('accounting', 'not set');
the result is echoing "not set"...,
i try to change view to echo Auth::get('dept', 'not sure'); the result is echoing "not sure"...,
I don't understand how to get data "accounting" or dept=>accounting
Is a user logged in? Auth methods operate on the current user only.
Sorry.., my mistake I miss the Auth::get_profile_fields(); function
it's easier now., thank
Add a Comment
It looks like you're new here. If you want to get involved, click one of these buttons!
Apply for Membership
↳ Job Board
↳ Installation & Setup
↳ Tips and Tutorials
↳ Code share
In this Discussion