Smarty / PHP does not show error why it's not rendering anymore -
this little bit hard explain feel free ask further details.
scenario: built website using smarty template engine. alle texts use located in lang.php file. wanted to same before (in first step), reading "language array" databse.
but call textreading function smarty not render anymore, though not override existing texts.
looks this:
$content = new content("en"); $result = $content->gettexts(); // calling, not changing // var_dump($result) ==> working! $lang_en = array ( ... ); $lang_de = array ( ... );
the function gettexts working perfectly. can dump results, or can leave table empty - nothing changes, code stops working suddenly. actual language variables ($lang_en, $lang_de) or not yet affected call.
i tried activate log:
error_reporting(e_all); ini_set("display_errors", 1);
nothing seems help.
any ideas?
update: problem calling datbase. if not call - working (for example returning "test" before actual call). problem is: call working - can return results, smarty isn't rendering ....
update2 (db call):
if ($stmt = $mysqli->prepare("select name, content content_text lang='de'")) { /* bind parameters markers */ $stmt->bind_param("s", $lang); /* execute query */ $stmt->execute(); ...
but said - call working. retreive result (the table content) smarty stops rendering...
Comments
Post a Comment