34 lines
849 B
PHP
34 lines
849 B
PHP
<?php
|
|
|
|
// Debugging: Entry point for home.php
|
|
error_log("[DEBUG] Entering home.php");
|
|
|
|
// Define title and content
|
|
$title = 'Home - Wizdom Networks';
|
|
$content = <<<HTML
|
|
<h1>Welcome to Wizdom Networks</h1>
|
|
<p>Your trusted partner for IT Consulting and Services.</p>
|
|
<p><a href="/services" class="btn btn-primary">Explore Our Services</a></p>
|
|
HTML;
|
|
|
|
// Debugging: Log title and content length
|
|
error_log("[DEBUG] Title: $title");
|
|
error_log("[DEBUG] Content length: " . strlen($content));
|
|
|
|
// Prepare data for rendering
|
|
$data = [
|
|
'title' => $title,
|
|
'content' => $content,
|
|
];
|
|
|
|
// Debugging: Log before rendering main layout
|
|
error_log("[DEBUG] Rendering main layout with data: " . json_encode($data));
|
|
|
|
// Render the main layout
|
|
$this->render('layouts/main', $data);
|
|
|
|
|
|
// Debugging: Exit point for home.php
|
|
error_log("[DEBUG] Exiting home.php");
|
|
|