【问题标题】:Yii framework - what is the file ".yii" in some foldersYii 框架 - 某些文件夹中的“.yii”文件是什么
【发布时间】:2010-12-07 07:34:36
【问题描述】:

以下文件夹中有“.yii”文件:

  • /资产/
  • /图片/
  • /protected/commands/shell/
  • /保护/扩展/
  • /protected/messages/
  • /受保护/运行时/
  • /protected/views/system/
  • /themes/classic/views/layouts/
  • /themes/classic/views/site/
  • /themes/classic/views/system/

这是什么?

【问题讨论】:

    标签: php frameworks yii


    【解决方案1】:

    我相信它们是由 yiic 生成的,但不确定它们有什么用途,因为它们总是看起来是空的,除非它们纯粹用作存储构建日期时间戳的一种方式。

    【讨论】:

      【解决方案2】:

      我认为这是阻止 mercurial/git 忽略目录的某种占位符

      【讨论】:

      • 有趣的是,对我来说,git 仍然忽略了该目录(我只是在克隆到另一台机器后才意识到其中只有 .yii 文件的目录不在存储库中) - 所以我添加了 .gitignore 文件.我希望删除 .yii 文件是安全的。
      猜你喜欢
      • 1970-01-01
      • 2013-05-21
      • 1970-01-01
      • 2021-09-12
      • 2022-05-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多