CakePHP Overload?

It seems to me that the objects in CakePHP are too overloaded. I output debug in my layout: debug($this);and I found 6 instances of the HTML helper object:

[Html] => HtmlHelper Object
        ([tags] => Array
             ([meta] => <meta%s/>
              [metalink] => <link href="%s"%s/>
              [link] => <a href="%s"%s>%s</a>
              [mailto] => <a href="mailto:%s" %s>%s</a>
              [form] => <form %s>
              .........................................
              .........................................

Why is it so possible to reduce this value to 1 instance?

+3
source share
1 answer

Most likely, these are all references to the same instance.

To prove that they are, you can modify the helper constructor to include your own debug tracing.

+4
source

Source: https://habr.com/ru/post/1746889/


All Articles