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: Smarty. class. phpLine: 1092 Type: smarty brackets 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");