codeigniter-4 Questions

6

Solved

When I am trying to load css or javascript file then it returns 404 error. I've tried to use helpers such as HTML helper's link_tag, URL helper's base_url methods, it will make a route to the file...
Ophthalmic asked 15/10, 2019 at 9:47

5

i'm using codeigniter 4 and i try to implement Login with Google. so far so good until i got this error when i try to get the result. here the error message: Fatal error: Declaration of Monolog\Log...
Antalkali asked 10/3, 2023 at 13:43

17

Solved

I installed Codeigniter 4.0.2 and did following changes: 1- CI_ENVIRONMENT = development in .env file 2- SetEnv CI_ENVIRONMENT development in .htaccess in public folder 3- Added $useKint = true;...
Venicevenin asked 24/3, 2020 at 13:37

5

Solved

I need help with using sub directory controllers in CodeIgniter 4. I just can't make it work for some reason. This is the URL for example: www.example.com/admin/dashboard In the controllers fold...
Winchester asked 10/4, 2020 at 2:43

17

Whoops! We seem to have hit a snag. Please try again later. Codeigniter 4 shows an error when I run the CI4 application, How I resolve? Changes: public $baseURL = 'http://ci.local'; public ...
Virtu asked 9/9, 2019 at 10:27

1

If you have ever come accross this error using codeigniter 4 with Ajax. The action you requested is not allowed. as a result of csrf protection. CRITICAL - 2023-06-10 03:41:17 --> The action you...
Bicuspid asked 10/6, 2023 at 3:50

1

Please if you have a solution to this codeigniter4 error help out enter image description here Codeigniter4 homepage failing to display but shows out that error
Solberg asked 20/2, 2023 at 12:52

10

Solved

I'm using Codeigniter 4. And inserting new data like this, $data = [ 'username' => 'darth', 'email' => '[email protected]' ]; $userModel->save($data); Which is mentioned here:...
Wallow asked 10/4, 2020 at 16:19

6

Solved

I just downloaded CodeIgniter 4 from their official GitHub. They changed a lot from CodeIgniter 3. I want to use base_url() function in the view and for that, you need to load URL helper and in Cod...
Letitialetizia asked 21/1, 2017 at 8:30

4

Solved

I'm trying to set up Codeigniter4 with Xampp but when calling the public address http://localhost/projectfolder/public/index.php as stated in the README.md file of the CodeIgniter4 framework, the n...
Lucielucien asked 11/3, 2022 at 7:15

8

Solved

I just started learning Codeigniter 4. My query always generates NULL and I don't know why. How can I see the generated SQL Select command just like Codeigniter 3? In Codeigniter 3 this command do...
Stotts asked 31/1, 2020 at 8:44

2

Solved

I have a subdomain called test.mysite.com and I have a CI4 installation inside a folder there called project. So the actual url for the CI4 installation is test.mysite.com/project/public/index.php....
Formication asked 11/3, 2021 at 23:37

16

I want normal URL like www.sample.com/controller not www.sample.com/public/index.php/controller. RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRul...
Wellfixed asked 22/1, 2018 at 6:55

4

CodeIgniter\Exceptions\FrameworkException The framework needs the following extension(s) installed and loaded: {0}. SYSTEMPATH\CodeIgniter.php at line 224
Inellineloquent asked 6/2, 2021 at 13:32

5

Solved

I have a project with CodeIgniter 4. I have a before filter: public function before(RequestInterface $request){ $auth = $request->getHeader("Authorization"); if($auth == null){ $r...
Ludewig asked 11/8, 2020 at 13:31

2

Solved

I am building a Web App along with API for Android using CI4. For the Web App, I have a filter to check whether the user already logged in with some exceptions, one of them is to ignore the filter ...
Dimaggio asked 16/3, 2022 at 11:4

9

Solved

After logout, I tried to redirect for the home page. I tried to few ways, but not redirected. class User extends BaseController { public function __construct() { helper('url'); } for the log...
Woolcott asked 5/11, 2019 at 9:8

2

Solved

This is the error I see in CodeIgnitor 4 on a new server installation. Fatal error: Uncaught Error: Call to undefined function CodeIgniter\locale_set_default() When I look at potential problems I...
Millrun asked 27/6, 2021 at 18:54

7

Solved

whatever error occurs in Codeigniter 4 Its always showing default message How to get exact error message in Codeigniter 4
Brower asked 3/3, 2020 at 6:53

4

in codeigniter 4 as per the documentation we have to load library as $session = \Config\Services::session(); if i write it on above of controller name <?php namespace App\Controllers; $se...
Galvez asked 29/4, 2020 at 10:19

5

Solved

I am using CodeIgniter 3 as a web platform and trying to import semantic-UI CSS into my page. I'm doing so by using CodeIgniter's base_url() method in the href property for the CSS import. However,...
1

© 2022 - 2024 — McMap. All rights reserved.