Huge updates:
1. Redesigned the web 2. Fixed logging in redirect issue 3. Added new route 4. Fixed sql issue on entry 5. Fixed typos
This commit is contained in:
@@ -12,7 +12,7 @@ set_error_handler("Core\Error::errorHandler");
|
||||
set_exception_handler("Core\Error::exceptionHandler");
|
||||
|
||||
if (Core\Session::exists('info')) {
|
||||
echo '<h3 style="margin:auto;"><span class="label top">';
|
||||
echo '<h3 style="margin:auto;position:absolute;left:43%;"><span id="info" class="label top" style="position:fixed;" onclick="fadeOutEffect()">';
|
||||
echo Core\Session::flash('info');
|
||||
echo '</span></h3>';
|
||||
}
|
||||
@@ -23,6 +23,7 @@ $router->add('', ['controller' => 'posts', 'action' => 'index']);
|
||||
$router->add('{controller}/{action}');
|
||||
$router->add('{controller}/{action}/{id:\d+}');
|
||||
$router->add('{action}', ['controller' => 'home']);
|
||||
$router->add('{?status:\d+}', ['controller' => 'posts', 'action' => 'index']);
|
||||
|
||||
$url = $_SERVER['REQUEST_URI'];
|
||||
$router->dispatch($url);
|
||||
|
||||
Reference in New Issue
Block a user