WizdomWeb/app/Controllers/TestimonialsController.php

43 lines
1.9 KiB
PHP

<?php
namespace WizdomNetworks\WizeWeb\Controllers;
use WizdomNetworks\WizeWeb\Core\View;
use WizdomNetworks\WizeWeb\Utilities\Logger;
use WizdomNetworks\WizeWeb\Utilities\ErrorHandler;
class TestimonialsController
{
public function index()
{
Logger::debug("TestimonialsController::index() - Executing testimonials page rendering.");
try {
$data = [
'title' => 'Client Testimonials - Wizdom Networks',
'heroConfig' => [
'title' => 'What Our Clients Say',
'description' => 'Read testimonials from satisfied customers.',
'image' => '/assets/images/testimonials-hero.jpg',
'cta' => ['text' => 'Contact Us', 'link' => '/contact'],
'style' => 'default',
'position' => 'top'
],
'content' => "<h1>Client Testimonials</h1>
<p>Discover how our services have made a difference for our clients.</p>",
'testimonials' => [
['client' => 'John Doe, CEO of TechCorp', 'quote' => 'Wizdom Networks transformed our IT infrastructure!'],
['client' => 'Jane Smith, Founder of Startup Inc.', 'quote' => 'Exceptional service and expertise. Highly recommended!'],
['client' => 'Michael Brown, CIO of Enterprise Solutions', 'quote' => 'Reliable and professional IT consulting.']
]
];
Logger::debug("TestimonialsController::index() - Data prepared successfully.");
View::render('pages/testimonials', $data);
Logger::info("TestimonialsController::index() - Testimonials page rendered successfully.");
} catch (\Throwable $e) {
Logger::error("TestimonialsController::index() - Error rendering testimonials page: " . $e->getMessage());
ErrorHandler::exception($e);
}
}
}