Answer the question
In order to leave comments, you need to log in
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
www.yiiframework.com/doc/api/1.1/CClientScript#reg...
Yii::app()->clientScript->registerMetaTag('metaogtitle', '', null, array('property' => 'og:title'), 'meta_og_title');
When you change the form, you don't double-check what is selected.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question