符号链接到Kohana的视图

时间:2022-11-15 16:26:06

I'm using an HTML template, where every single data object is presented in a box (every news, article etc.). I assumed I will possibly replace the template in the future, so I decided to create symbolic-linked views to the view 'box', which is included in the main template. These unix filesystem symbolic links are called 'news', 'article' etc. Is there any way to implement it in Kohana or do you know any other way to solve the problem?

我正在使用HTML模板,其中每个数据对象都显示在一个框中(每个新闻,文章等)。我假设我将来可能会替换模板,所以我决定为视图'box'创建符号链接视图,它包含在主模板中。这些unix文件系统符号链接被称为“新闻”,“文章”等。有没有办法在Kohana中实现它,或者你知道其他任何方法来解决这个问题吗?

1 个解决方案

#1


0  

Kohana should treat symbolic links as if they were normal files.

Kohana应将符号链接视为普通文件。

If they are not behaving that way, check your webserver config. Apache often does not follow symbolic links by default.

如果他们不这样做,请检查您的网络服务器配置。 Apache默认情况下通常不遵循符号链接。

#1


0  

Kohana should treat symbolic links as if they were normal files.

Kohana应将符号链接视为普通文件。

If they are not behaving that way, check your webserver config. Apache often does not follow symbolic links by default.

如果他们不这样做,请检查您的网络服务器配置。 Apache默认情况下通常不遵循符号链接。