我正在尝试合作Nginx和Yii. 我已将nginx root目录设置yii webapp为 -yiic webapp /usr/share/nginx/app
在这个目录中,我有一些默认文件,如 yii's index.php,index-test.php以及基本文件夹,如protected、和. 我也有自己的文件;打印和打印表中的一些列。当我点击时,我能够显示 phpinfo,但我无法显示- themescssimagesphpinfo.phpphpinfo()getAttribute.phpmysqlhistoryhttp://localhost/phpinfo.phpgetAttribute.php
#getAttribute.php
<?php
public function attributeLabels() {
return array(
Yii::t('app','model.history.sfExternalfield')=>array(
'External Field'=>Yii::t('app','model.history.sfExternalfield'),
'Delivery Status'=>Yii::t('app','model.history.deliveryStatus'),
)
);
}
?>
<html>
<body><?php
print_r(attributeLabels());
?></body>
</html>
<?php ?>
这段代码有问题吗?