login app in codeigniter 4 with mysql code example
Example 1: codeigniter 4 login example
<?php
if ( ! function_exists('render'))
{
function render(string $name, array $data = [], array $options = [])
{
return view(
'layout',
[
'content' => view($name, $data, $options),
],
$options
);
}
}
Example 2: codeigniter 4 login example
<html>
<head></head> <!-- move code from welcome_message.php's html <head> to here -->
<body>
<!-- move code from welcome_message.php's style to here,
or use separate file for css and apply to <head>
-->
<div class="wrap">
<?php echo $content; ?>
</div>
</body>
</html>