/var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/cakephp/src/View
NameSizeModeActions
Exception/-0755rm
Form/-0755rm
Helper/-0755rm
Widget/-0755rm
AjaxView.php10880644editdlrm
Cell.php90450644editdlrm
CellTrait.php44460644editdlrm
Helper.php73290644editdlrm
HelperRegistry.php48600644editdlrm
JsonView.php58780644editdlrm
NegotiationRequiredView.php18360644editdlrm
SerializedView.php36900644editdlrm
StringTemplate.php115640644editdlrm
StringTemplateTrait.php28640644editdlrm
View.php523500644editdlrm
ViewBlock.php64040644editdlrm
ViewBuilder.php176020644editdlrm
ViewVarsTrait.php30690644editdlrm
XmlView.php47980644editdlrm
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/cakephp/src/View/StringTemplateTrait.php (2864B)
$templates Templates to be added. * @return $this */ public function setTemplates(array $templates) { $this->templater()->add($templates); return $this; } /** * Gets templates to use or a specific template. * * @param string|null $template String for reading a specific template, null for all. * @return array|string */ public function getTemplates(?string $template = null) { return $this->templater()->get($template); } /** * Formats a template string with $data * * @param string $name The template name. * @param array $data The data to insert. * @return string */ public function formatTemplate(string $name, array $data): string { return $this->templater()->format($name, $data); } /** * Returns the templater instance. * * @return \Cake\View\StringTemplate */ public function templater(): StringTemplate { if ($this->_templater === null) { /** @var class-string<\Cake\View\StringTemplate> $class */ $class = $this->getConfig('templateClass') ?: StringTemplate::class; $this->_templater = new $class(); $templates = $this->getConfig('templates'); if ($templates) { if (is_string($templates)) { $this->_templater->add($this->_defaultConfig['templates']); $this->_templater->load($templates); } else { $this->_templater->add($templates); } } } return $this->_templater; } }