Cakephp Override HtmlHelper::link

前端 未结 7 1494
离开以前
离开以前 2021-01-06 18:42

I want to setup HtmlHelper::link() method so the default options array have escape = false.

How can I achieve this without changing the core class?

OBS: I al

7条回答
  •  春和景丽
    2021-01-06 19:06

    You could copy the original HTMLHelper from cake/libs/view/helpers to app/views/helpers and modify the link() method there.

提交回复
热议问题