Link to home
Start Free TrialLog in
Avatar of dsrnu
dsrnu

asked on

Make form_error($permission) get treated like form_error('permission')

Make form_error($permission) get treated like form_error('permission')?

I know there's a way to do this.. can't seem to figure it out though.
form_error($permission)

// make it get treated like

form_error('permission')

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Marco Gasi
Marco Gasi
Flag of Spain image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dsrnu
dsrnu

ASKER

dave--i guess im trying to make the variable as a string constant... is there a way to do that?
Avatar of dsrnu

ASKER

<?php echo form_error('${permission}'); ?>

and

<?php echo form_error('{$permission}'); ?>

works

http://www.php.net/manual/en/language.types.string.php#language.types.string.parsing.complex
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial