Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Pondelok, 30. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Hiding buttons gives syntax error

phpMyEdit Configuration     Hiding buttons gives syntax error
Odoslať novú tému   Odpovedať na tému    
 
xkkpafi     Založený: 26.09.2006   Príspevky: 1  
Príspevok 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
Príspevok 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    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov