Jump to content

Substitute type 1 for admin


abisson

Recommended Posts

Hey guys,

 

I am using CakePHP. I just want in my Index to switch my type. I get type = 1, and I would like to change it for admin..

 

Here is my echo command for my table. Should I add at the end something like... if type =1 echo admin?

 

<td><?php echo $user['User']['type']; ?></td>

 

 

Thanks!

Link to comment
https://forums.phpfreaks.com/topic/62038-substitute-type-1-for-admin/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.