By: Shashi
Date: 2011-08-22
Time: 13:17
|
protected variables question
Hi,
Following the FAQ , I have this on the php page.
$allowed_vars['num'] =& $num;
$allowed_vars['calls'] =& $calls;
$allowed_vars['header'] =& $header;
$allowed_vars['time'] =& $time;
$allowed_vars['title'] =& $pagetitle;
$allowed_vars['tableclass'] =& $tableclass;
$myTbs = new clsTinyButStrong('','allowed_vars');
except this -> [onload;file=[var.header];getbody] ; everything else is variable with string values.
But I am still getting the errors.
TinyButStrong Error in field [var.header...]: does not match the allowed prefix. This message can be cancelled using parameter 'noerr'.
TinyButStrong Error in field [onload...]: the file '[var.header]' given by parameter file is not found or not readable. This message can be cancelled using parameter 'noerr'.
TinyButStrong Error in field [var.title...]: does not match the allowed prefix. This message can be cancelled using parameter 'noerr'.
TinyButStrong Error in field [var.tableclass...]: does not match the allowed prefix. This message can be cancelled using parameter 'noerr'.
TinyButStrong Error in field [var.num...]: does not match the allowed prefix. This message can be cancelled using parameter 'noerr'.
TinyButStrong Error in field [var.time...]: does not match the allowed prefix. This message can be cancelled using parameter 'noerr'.
TinyButStrong Error in field [var.tableclass...]: does not match the allowed prefix. This message can be cancelled using parameter 'noerr'.
If I remove and use just
$myTbs = new clsTinyButStrong();
it works fine.
Please let me know what the issue could be.
Thanks,
|
By: Skrol29
Date: 2011-08-22
Time: 15:55
|
Re: protected variables question
Helli Shashi,
It's a global variable limitation by a prefix.
Thus, the followinf code
$myTbs = new clsTinyButStrong('','allowed_vars'); |
will allow [var.allowed_vars_header] |
or,
[var.allowed_vars.header] |
and so one....
|
By: shashi
Date: 2011-08-23
Time: 16:12
|
Re: protected variables question
Thanks.
That worked :)
|
|
Posting in progress.
Please wait...
|