コラボレーションしようとしNginxてYiiいます。私はnginx rootディレクトリをyii webapp-として設定しましたyiic webapp /usr/share/nginx/app
index.phpこのディレクトリには、 yiiのようなデフォルトのファイルと、、、、などのindex-test.php重要なフォルダがいくつかあります。また、私は自分のファイルを持っています。印刷し、テーブルからいくつかの列を印刷します。ヒットするとphpinfoを表示できますが、 - の出力を表示できません。protectedthemescssimagesphpinfo.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 ?>
このコードに何か問題がありますか?