下記のphpとsmartyを実行すると
Arrayと表示されてしまいます。
abcde を表示させるにはどうしたらよいのでしょうか?
{$smarty.version}は、3.1.28-dev/44 と表示されます。
環境は
CentOS7(64bit)
PHP 5.4
よろしくお願いします。
index.php
<?php session_start(); require_once('Smarty.class.php'); $SMARTY = new Smarty(); $_SESSION['id'] = 'abcde'; $SMARTY->display('index.tpl'); ?>index.tpl
<html> <head></head> <body> {$smarty.version}<br> {$smarty.session.id}<br> </body> </html>
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2015/08/16 11:49
退会済みユーザー
2015/08/16 12:02 編集