Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Running Codeigniter Queue
Post: RE: Running Codeigniter Queue

It seems you cannot connect to PostgreSQL via CLI PHP. Try run: php spark db:table
105 Views
3 Replies
9 hours ago
kenjis
    Thread: C4 Latest version shield manage users
Post: RE: C4 Latest version shield manage users

This code is dangerous. Because an attacker  can send any values to your server. Be sure that $id does not have invalid value as the id value (number only?) before running this code. PHP Code: --...
157 Views
4 Replies
05-18-2024, 04:41 PM
kenjis
    Thread: $this->responseCreated() method not found
Post: RE: $this->responseCreated() method not found

Read https://codeigniter.com/user_guide/outgoing/api_responses.html#respondCreated
79 Views
2 Replies
05-18-2024, 04:29 PM
kenjis
    Thread: Codeigniter 4 V 4.5.1 $this->db problem
Post: RE: Codeigniter 4 V 4.5.1 $this->db problem

serialkiller Wrote: (05-17-2024, 06:27 AM) -- You're too telegraphic and I don't understand, I would like to understand how to get back to having the same thing as before the update but in the correc...
266 Views
12 Replies
05-17-2024, 06:44 AM
kenjis
    Thread: Codeigniter 4 V 4.5.1 $this->db problem
Post: RE: Codeigniter 4 V 4.5.1 $this->db problem

serialkiller Wrote: (05-17-2024, 06:27 AM) -- it is correct to use: PHP Code: -- parent::__construct();  -- in the model construct? -- Of course not. It is incorrect. It makes Model not working. ...
266 Views
12 Replies
05-17-2024, 06:34 AM
kenjis
    Thread: Codeigniter 4 V 4.5.1 $this->db problem
Post: RE: Codeigniter 4 V 4.5.1 $this->db problem

In the Model (BaseModel) class, there is the protected $db property. So you can use it in your model. Quote: -- Members declared protected can be accessed only within the class itself and by in...
266 Views
12 Replies
05-17-2024, 06:14 AM
kenjis
    Thread: Error when validating credit card with multiple parameters in valid_cc_number rule
Post: RE: Error when validating credit card with multipl...

This code is dangerous. Be sure to validate the value of $cardType before running the card_number validation. PHP Code: -- $validation->setRules(['card_number' => "required|valid_cc_number[$cardTy...
4,166 Views
5 Replies
05-17-2024, 05:46 AM
kenjis
    Thread: Codeigniter 4 V 4.5.1 $this->db problem
Post: RE: Codeigniter 4 V 4.5.1 $this->db problem

Are you talking about Controller code? or model code? or something else? In PHP, $this->db means the $db property in the object. In CI4, there is no $this->db in controllers by default.
266 Views
12 Replies
05-17-2024, 03:58 AM
kenjis
    Thread: Codeigniter 4 V 4.5.1 $this->db problem
Post: RE: Codeigniter 4 V 4.5.1 $this->db problem

See https://codeigniter.com/user_guide/models/model.html#getting-query-builder-for-another-table
266 Views
12 Replies
05-17-2024, 02:06 AM
kenjis
    Thread: CLI Apps with Codeigniter?
Post: RE: CLI Apps with Codeigniter?

It seems we cannot replace the default `list` command even if we create a new command with $name = 'list' in app/Commands/. Is this a bug?
170 Views
3 Replies
05-16-2024, 03:54 PM
kenjis
    Thread: Validation messages displaying differently between local environment & server
Post: RE: Validation messages displaying differently bet...

The case sensitivity depends on the file system you are using. Probably you put the project files on the Windows file system that is case insensitive.
216 Views
6 Replies
05-16-2024, 05:25 AM
kenjis
    Thread: Validation messages displaying differently between local environment & server
Post: RE: Validation messages displaying differently bet...

The lang file name is Validation.php, not validation.php. Therefore you must write lang('Validation.required', ... Read https://codeigniter.com/user_guide/outgoing/localization.html#language-localiz...
216 Views
6 Replies
05-16-2024, 01:55 AM
kenjis
    Thread: CodeIgniter Tasks - Register Task from Module
Post: RE: CodeIgniter Tasks - Register Task from Module

Maybe if "Config/Tasks.php" is only in one module, it will be used. However, if "Config/Tasks.php" is in more than one module, only one of them will be loaded. If there is "app/Config/Tasks.php", on...
178 Views
4 Replies
05-15-2024, 11:27 PM
kenjis
    Thread: CodeIgniter Tasks - Register Task from Module
Post: RE: CodeIgniter Tasks - Register Task from Module

Why don't you use "app/Config/Tasks.php"?
178 Views
4 Replies
05-15-2024, 07:26 PM
kenjis
    Thread: Set a $_GET value
Post: RE: Set a $_GET value

You should not change the $_GET or the GET parameter in the request. Why do you need to change it?
183 Views
4 Replies
05-15-2024, 07:18 PM
kenjis
    Thread: Call multiple function in callback Models
Post: RE: Call multiple function in callback Models

Read https://codeigniter.com/user_guide/models/model.html#defining-callbacks
237 Views
6 Replies
05-15-2024, 12:46 AM
kenjis
    Thread: Call to undefined function - still need help
Post: RE: Call to undefined function - still need help

The Form helper file must be "form_helper.php". See https://codeigniter.com/user_guide/general/helpers.html#loading-a-helper
160 Views
4 Replies
05-14-2024, 09:36 PM
kenjis
    Thread: Query Builder Conditions Not Being Applied
Post: RE: Query Builder Conditions Not Being Applied

Remove the line:  echo "SQL Query: " . $builder->getCompiledSelect() . ""; See https://codeigniter.com/user_guide/database/query_builder.html#builder-getcompiledselect If you want to see the query...
75 Views
1 Replies
05-14-2024, 09:20 PM
kenjis
    Thread: Call to undefined function - still need help
Post: RE: Call to undefined function - still need help

What is the function display_error()? There is no such function in PHP or CodeIgniter.
160 Views
4 Replies
05-14-2024, 09:16 PM
kenjis
    Thread: fatal logger emergency
Post: RE: fatal logger emergency

Bosborne Wrote: (05-14-2024, 03:32 AM) -- kenjis Wrote: (05-13-2024, 04:09 PM) -- Remove the line in your php.ini: extension=psr.so -- It that extension incompatible with CI 4.5.x?  -- Yes, inc...
339 Views
5 Replies
05-14-2024, 03:39 AM
kenjis

Theme © iAndrew 2016 - Forum software by © MyBB