This topic is locked

How To Assign Value To $Message

2/1/2013 10:47:19 AM
PHPRunner General questions
S
Saraxs author

Hi,
Im using PHPR 6.2 (Build 14479)
How do you assign a value to the message variable on e.g. a List page so that it will show even though the program itself has not assign any value like "No results found".
Im able to change the message text on "Before display" using $xt->assign("message", "new text"). But it will only show if PHPR already has assigned a value.
Regards
Saraxs

C
cgphp 2/1/2013

You can create your own message template variable. In the visual editor, add the following template variable:

{$my_message}



In the "Before display" event, enter your custom message:



$xt->assign("my_message", "new text");