Welcome Guest, Not a member yet? Register   Sign In
does not automatically redirect for the use of modules.
#4

PHP Code:
<?php
namespace Login\Controllers;
use 
App\Controllers\BaseController;
class 
Login extends BaseController
{
 public function 
__construct()
 {
 
parent::__construct();
 
$this->template->setContentViewPath('Login\Views');
 }
 public function 
getIndex()
 {
 
$data = [];
 
$this->template->set('title','Başlık');
 
$this->template->content('blog_view',$data);
 
$this->template->publish();
 }



Quote:Important
A controller method that will be executed by Auto Routing (Improved) needs HTTP verb (get, post, put, etc.) prefix like getIndex(), postCreate().
https://codeigniter4.github.io/CodeIgnit...ello-world
Reply


Messages In This Thread
RE: does not automatically redirect for the use of modules. - by kenjis - 12-18-2023, 01:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB