Error & nbsp; error & nbsp; {$ data [& quot; bank_data & quot;] [& quot; Arrangement & quot;] [& quot; id & quot;]} & nbsp; PHP (5.3.9) ERROR (E_USER_ERROR): File: brackets in smarty syntax
Error
{$ Data ["bank_data"] ["Arrangement"] ["id"]}
PHP (5.3.9) ERROR (E_USER_ERROR ):
File: Smarty. class. php
Line: 1092
Type: Smarty error: [in tke-g-admin_scopeofwork.tpl line 10]: syntax error: unrecognized tag: $ data ["bank_data"] ["Arrangement"] ["id"] (Smarty_Compiler.class.php, line 446)
Correct
{$ Data. bank_data.Arrangement.id}
Why is the first error?
------ Solution --------------------
Smarty is so agreed! No. why?
------ Solution --------------------
------ Solution --------------------
OK? Try this way:
PHP code
$ Arr = array ("a" => array (1, 2, 3 ), "B" => array ("c" => array ("d" => array ("e" => "Tom ", "f" => "BeiJing"); $ smarty-> assign ("A", $ arr); $ smarty-> display ("testTwo.html ");