39 lines
1.5 KiB
PHP
39 lines
1.5 KiB
PHP
<?php
|
|
namespace WizdomNetworks\WizeWeb\Controllers;
|
|
|
|
use WizdomNetworks\WizeWeb\Core\View;
|
|
use WizdomNetworks\WizeWeb\Utils\Logger;
|
|
use WizdomNetworks\WizeWeb\Utils\ErrorHandler;
|
|
|
|
class ContactController
|
|
{
|
|
public function index(): void
|
|
{
|
|
Logger::debug("ContactController::index() - Executing contact page rendering.");
|
|
|
|
try {
|
|
// Prepare data for the contact page
|
|
$data = [
|
|
'title' => 'Contact Us - Wizdom Networks',
|
|
'heroConfig' => [
|
|
'title' => 'Get in Touch',
|
|
'description' => 'Reach out to our team for inquiries and support.',
|
|
'image' => '/assets/images/contact-hero.jpg',
|
|
'cta' => ['text' => 'Send a Message', 'link' => '/contact'],
|
|
'style' => 'default',
|
|
'position' => 'top'
|
|
],
|
|
'content' => "<h1>Contact Us</h1>
|
|
<p>We're here to help. Send us a message and we'll get back to you as soon as possible.</p>"
|
|
];
|
|
|
|
Logger::debug("ContactController::index() - Data prepared successfully.");
|
|
View::render('pages/contact', $data);
|
|
Logger::info("ContactController::index() - Contact page rendered successfully.");
|
|
} catch (\Throwable $e) {
|
|
Logger::error("ContactController::index() - Error rendering contact page: " . $e->getMessage());
|
|
ErrorHandler::exception($e);
|
|
}
|
|
}
|
|
}
|