Skip to main content

All Questions

Tagged with
0 votes
0 answers
32 views

PHP Codeigniter 4 redirect route not found after insert

I have a controller that calls my model to insert a new record, returned the id of the new record, and then does a redirect to display the new record. But I get an error: "The route for '/r/xx' ...
user2723901's user avatar
0 votes
0 answers
24 views

Url CI page not found

$routes->get('/','Home::index'); URL "http://localhost/" it's work fine but $routes->get('a','Home::index'); URL "http://localhost/a" it's return Page Not Found. Whats ...
ALI SISWANTORO's user avatar
0 votes
1 answer
27 views

Codeigniter 3 404 page not found after hosting but working properly in localhost

my website is not opening when I write greenvaleschool.in but only opens when I write greenvaleschool.in/home In codeigniter 3. The routes.php is not working. It works only when I provide controller ...
Shardul Mishra's user avatar
1 vote
1 answer
28 views

remove controller name from the url to make url clean in sub directory codeigniter

I have created a blogs inside sub directory because my main directory is running an html website so the blog system needs to be created with codengiter i developed and added inside a folder named ...
Usman Khan's user avatar
0 votes
0 answers
26 views

How do I do redirect while keeping url in codeigniter?

I'm using Codeigniter 3.0 and have two DNS mapped to the web server, "a.com" and "b.com" respectively. I am redirected to "b.com/i/" when I type a.com in my browser, but ...
김동원's user avatar
0 votes
1 answer
489 views

CodeIgniter4 - Controller or Method Not Found When Using Routing Groups and Subdirectory in Controllers

I have a controller here: /app/Controllers/Admin/AdminDashboardController.php <?php namespace App\Controllers; class AdminDashboardController extends BaseController { public function index() ...
Vpp Man's user avatar
  • 2,496
0 votes
1 answer
1k views

Codeigniter 4 - how to redirect to another controller

This problem has lots of threads, still I haven't found one to fully resolve my issue. Many of the threads concern older versions of CodeIgniter, I currently have CodeIgniter version 4.3.1. I also use ...
Marius's user avatar
  • 190
3 votes
1 answer
668 views

Codeigniter 4 - REST with Auto Routing improved

I have a controller App/Controllers/Api/Orders.php <?php namespace App\Controllers\Api; use CodeIgniter\RESTful\ResourceController; class Orders extends ResourceController { protected $...
user64675's user avatar
  • 344
1 vote
0 answers
25 views

Routing Error when trying to access a linkother than the baseURL

I have a "routing" problem on CodeIgniter 4.2.7. My home page is displayed well, the page also reloads well when I click on "home" in my menu, on this side there is no problem, ...
Mélina Mitterrand's user avatar
0 votes
1 answer
1k views

Codeigniter 4 auto routes cannot be redirected to?

I've set up a new CI4 project, set up CI4's Shield authorization library, and am literally starting from a fresh install. I've set up Auto Routing and created new Controllers (Dashboard.php, Profile....
TRI_Cryss's user avatar
0 votes
1 answer
734 views

Codeigniter 4: How can I access controller methods from a Controllers/api subfolder?

I'm creating a project with Codeigniter 4. Everything works fine, except for calls to controllers in an "Controllers/api" subfolder. Server with Rocky Linux release 8.7 (Green Obsidian) ...
Telerín's user avatar
0 votes
2 answers
108 views

Routes and Controller problem on Codeigniter 4, can't access

Routes and Controller problem on Codeigniter 4, can't access I created Controller and Routes, and I created a Navbar.php file in Controller with methods and GET in Routes, then can not be accessed ...
rifkidenanda's user avatar
0 votes
1 answer
137 views

ErrorException: Trying to access array offset on value of type null ( CodeIgniter 4 )

When I go to 'create_datapegawai' views, it goes to detail_datapegawai. So, my routes for detail_pegawai is: $routes->get('/admin/(:segment)', 'Admin::detail_pegawai/$1'); $routes->get('/admin/...
misty's user avatar
  • 1
0 votes
0 answers
1k views

How to make routes in group correctly? (CodeIgniter 4)

I have a routes group like this. When i tried to run 'detail_datapegawai' page, it said "404 - File Not FoundController is not found". this is my routes code: $routes->group('admin', ...
misty's user avatar
  • 1
0 votes
1 answer
435 views

CodeIgniter 4 URI Routing: - How to use regular expressions in '$routes->addPlaceholder(...)'

In CodeIgniter 4, it's possible to use Regular Expression patterns in your route definitions via custom placeholders. I tried to make my URI route definitions more readable for development, but it ...
Florianb's user avatar
  • 188

15 30 50 per page
1
2 3 4 5
53