I’m trying to use the title and description from frontend.php but I’m not doing it well.
The idea is to use a variable that stores the title and the description from frontend.php and the way I’m doing it is:
$_site_description = View::escape(Config::option(‘site_description’));
$data = $meta->title ? $meta->title : Config::option(‘site_title’);
$data .= ‘ ‘;
$data .= $meta->description ? $meta->description : $_site_description;
However, at every page loaded, my $data is always the same, even though the title and description varies according with the page.
Can you guide me, please?