params.php 1.5 KB

12345678910111213141516171819202122232425262728
  1. <?php
  2. return [
  3. 'supportEmail' => 'admin@feehi.com',
  4. 'user.passwordResetTokenExpire' => 3600,
  5. 'site' => [
  6. /*
  7. * because frontend and backend may have different domain. but FeehiCMS put all uploads files to frontend/web/uploads.
  8. * so, at backend we should use the frontend url to display uploaded images.
  9. * this url will be covered by admin user filled at "/admin?r=setting/website"(if filled not an empty string)
  10. *
  11. * 因为前台和后台可能使用不同的域名,但是FeehiCMS把所有上传的文件放在frontend/web/uploads。
  12. * 因为,在后台显示已上传的图片时,需要拼接这个前台的域名才能正常显示图片。
  13. * 此值,会被后台管理页面填入的值覆盖掉(如果填入的值不为空的话)
  14. */
  15. 'url' => 'http://cms.feehi.com',
  16. 'sign' => '###~SITEURL~###',//cause domain may be changed, so database store a placeholder. when after fetched data should replace this with frontend domain
  17. ],
  18. 'category.template.directory' => [//分类列表页模版
  19. Yii::getAlias("@frontend/views/article/index.php") => Yii::t("app", "Default"),
  20. ],
  21. 'article.template.directory' => [//文章模版
  22. Yii::getAlias("@frontend/views/article/view.php") => Yii::t("app", "Default"),
  23. ],
  24. 'page.template.directory' => [//单页模版
  25. Yii::getAlias("@frontend/views/page/view.php") => Yii::t("app", "Default"),
  26. ],
  27. ];