xkkpafi
Založený: 26.09.2006
Príspevky: 1
Zaslal: 2006-09-26 08:52
Návrat hore
Odpovedať s citátom
|
The code for hiding buttons described on page 14 of the manual results in a syntax error. For example, to hide the 'change' feature of the View button I use
$opts['buttons']['V']['up'] = array('-change','cancel');
$opts['buttons']['V']['down'] = $opts['buttons'] = ['V']['up'];
Loading the page from the browser gives:
Parse error: syntax error, unexpected '[' in /home/MyFile.php on line 63
Is this a bug or what is the correct syntax to use. Thanks.
|
michal
Založený: 17.06.2003
Príspevky: 537
Bydlisko: Slovakia
Zaslal: 2006-09-26 09:36
Návrat hore
Odpovedať s citátom
|
should be
$opts['buttons']['V']['down'] = $opts['buttons']['V']['up'];
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|