A
A
Andryushkov Konstantin2015-12-30 05:30:16
Yii
Andryushkov Konstantin, 2015-12-30 05:30:16

PHP template engine, how to get from a child template to the main one?

Good time of the day.
I write code on Yii framework which uses PHP template engine. It is necessary to enter og meta tags from the child template into the main template. You can do this in twig or smart, but I would not want to rewrite everything because of this.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
chesar, 2015-12-30
@robston

www.yiiframework.com/doc/api/1.1/CClientScript#reg...

Yii::app()->clientScript->registerMetaTag('metaogtitle', '', null, array('property' => 'og:title'), 'meta_og_title');

S
Sergey Sokolov, 2017-05-27
@ivansimonov1984

When you change the form, you don't double-check what is selected.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question