public function render(string $language, string $slug): bool
{
$translation = $this->translationModel->findBySlug($language, $slug);
if (!$translation) {
return false;
}
$lang = $language;
require __DIR__ . '/../../config/business.php';
$replacements = [
'{{brand_name}}' => $orgName,
'{{brand_url}}' => $orgUrl,
'{{legal_name}}' => $orgLegalName,
'{{contact_phone}}' => $orgPhone,
'{{contact_email}}' => $orgEmail,
'{{company_registration}}' => $orgRegistration,
'{{company_tax_id}}' => $orgTaxId,
'{{company_legal_address}}' => $orgLegalAddress,
];
$translation['content'] = strtr($translation['content'], $replacements);
$canonical = $this->translationModel->resolveCanonical($translation);
$allTranslations = $this->translationModel->findByPageId($translation['page_id']);
include __DIR__ . '/../../views/Pages/Show.php';
return true;
}
Warning: Undefined variable $orgPhone in /home/ot2ryobi838h/app/views/landings/seo_donostia.php on line 297
Warning: Undefined variable $orgStreetAddress in /home/ot2ryobi838h/app/views/landings/seo_donostia.php on line 298
Warning: Undefined variable $orgLocality in /home/ot2ryobi838h/app/views/landings/seo_donostia.php on line 299
Warning: Undefined variable $orgRegion in /home/ot2ryobi838h/app/views/landings/seo_donostia.php on line 300
Warning: Undefined variable $orgCountry in /home/ot2ryobi838h/app/views/landings/seo_donostia.php on line 301
Fatal error: Uncaught RuntimeException: local-business.schema.php requiere datos básicos del negocio in /home/ot2ryobi838h/app/views/schemas/local-business.schema.php:5
Stack trace:
#0 /home/ot2ryobi838h/app/views/landings/seo_donostia.php(309): include()
#1 /home/ot2ryobi838h/public_html/index.php(309): include('/home/ot2ryobi8...')
#2 {main}
thrown in /home/ot2ryobi838h/app/views/schemas/local-business.schema.php on line 5