Category "codeigniter-4"

How to load Codeigniter 4 lang file into an array variable

Is there a way to load a file from Codeignier 4 Language directory and assign the array content to a variable. Instead of returning the translated line, I want

how to validate form data in codeigniter 4

i am new to codeigniter 4, i am currently building a registration form. when i submit reg form it give error of required fields even if i fill all fields with c

Codeigniter 4 get configuration array by passing a dbgroup

Many websites including official site state about connecting database connections on a dbgroup, however I hardly found a website that talks about getting only a

SYSTEMPATH/CodeIgniter.php at line 219

CodeIgniter show this problem: SYSTEMPATH/CodeIgniter.php at line 219. I already added extension=intl to php.ini file. But the error still. Error : The framewor

Codeigniter 4 throws errors 'user_group' keyword

This is how I print incoming requests to the screen. var_dump($this->request->getVar()); Incoming Data order: user_group order_type: asc Output array(1

Codeigniter 4 Current/Active Controller

In Codeigniter 3 is possible to get current active class and method with this code: $active_controller = $this->router->fetch_class(); $active_fu

jwt decode throws Invalid argument supplied for foreach() on php-jwt and codeignitor 4

I have encoded a token with JWT::encode($payload, $key, 'HS256'); When I am trying to decode it with the same key, it throws an error. Here is the code: <?p

How to display old value in dropdown on edit form then keep the selected value when the form submit failed?

The dropdown's option values were shown from a table on the database. When I clicked "Edit Form," the old values were successfully shown. For example, the optio

why Whoops! error showing in codeigniter-4

i just copy codeingiter 4 in my XAMPP for Linux 7.4.3 which have PHP Version 7.4.3 but getting error like Whoops! We seem to have hit a snag. Please try again

CodeIgniter 4 \Config\Service::my-instance-method returns NULL on true $getShared

Config\Services is a class made to reduce huge code development on singleton. Unfortunately I have committed an error. When repositoryFacade is got from getShar