Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: model validationRules for nullable fields?
Post: RE: model validationRules for nullable fields?

You could always wrap your rules in normal PHP logic... I'm not sure what rules you could apply in this case, but this might be what you're looking for: PHP Code: -- $post = $this->request->getP...
59 Views
2 Replies
01-14-2022, 02:04 PM
BilltheCat
    Thread: Error after upgrading to version 4.1.7
Post: RE: Error after upgrading to version 4.1.7

Are you sure you're on 4.1.7? I thought this was fixed in the 4.1.6 re-release.
189 Views
8 Replies
01-13-2022, 03:58 PM
BilltheCat
    Thread: Apply Filter to Route
Post: RE: Apply Filter to Route

Make sure that it's not in $globals, and then add the alias to public $filters: App/Config/Filters.php PHP Code: -- /** * Configures aliases for Filter classes to * make reading things nicer...
67 Views
2 Replies
01-13-2022, 03:55 PM
BilltheCat
    Thread: Session ID Regeneration
Post: RE: Session ID Regeneration

https://codeigniter.com/user_guide/libraries/sessions.html?highlight=sessionTimeToUpdate#accessing-session-metadata
68 Views
1 Replies
01-12-2022, 10:19 AM
BilltheCat
    Thread: Update using WHERE
Post: RE: Update using WHERE

From your expectation above; Code: -- UPDATE `billing_charges_2` SET activity_id = null WHERE activity_id = 8518 -- Have you tried it this way? PHP Code: -- public function set_activity_id_n...
180 Views
7 Replies
01-11-2022, 08:06 PM
BilltheCat
    Thread: Update codeigniter
Post: RE: Update codeigniter

Code: -- PowerShell 7.2.1 Copyright (c) Microsoft Corporation. PS D:\xampp\mysite> composer update -- Now upload everything to your server, except for that system folder.  And double check that...
319 Views
14 Replies
01-11-2022, 06:35 PM
BilltheCat
    Thread: Update codeigniter
Post: RE: Update codeigniter

Just delete the system folder in your root path.
319 Views
14 Replies
01-11-2022, 05:15 PM
BilltheCat
    Thread: Update using WHERE
Post: RE: Update using WHERE

Try running it as a SELECT instead of UPDATE and see what results you get.
180 Views
7 Replies
01-11-2022, 01:43 PM
BilltheCat
    Thread: Update codeigniter
Post: RE: Update codeigniter

Check your app/Config/Paths.php file to see where your System folder should be: PHP Code: -- class Paths { /** * --------------------------------------------------------------- * SYSTEM FOLDE...
319 Views
14 Replies
01-11-2022, 01:29 PM
BilltheCat
    Thread: Update codeigniter
Post: RE: Update codeigniter

What system folder are you talking about? There should be only one.... https://i2.paste.pics/FM7H4.png
319 Views
14 Replies
01-11-2022, 12:50 PM
BilltheCat
    Thread: Update codeigniter
Post: RE: Update codeigniter

Quote: -- Must i upload other folder to upgrade or only  vendor ? I leave in server old vendor folder renamed vendor_old if i change vendor with  the old vendor work .... On locale i have system...
319 Views
14 Replies
01-11-2022, 12:35 PM
BilltheCat
    Thread: SQL-query length in log files
Post: RE: SQL-query length in log files

I'm pretty sure this controlled by the error INI options in PHP (http://php.net/manual/en/errorfunc.configuration.php). You'll notice there's a log_errors_max_len option: Quote: -- Set the max...
109 Views
1 Replies
01-11-2022, 12:01 PM
BilltheCat
    Thread: Update codeigniter
Post: RE: Update codeigniter

A 500 server error is extremely generic, and there's no way to know what's happening without more information about it.  What information is given?  Are you seeing this in the CI logs, and if so, what...
319 Views
14 Replies
01-11-2022, 11:39 AM
BilltheCat
    Thread: Filter to custom error pages
Post: RE: Filter to custom error pages

Never mind on this.... I think I'm making things harder than they need to be, and it's not worth the effort. I'm just going to throw ConfigException.
170 Views
3 Replies
01-11-2022, 11:22 AM
BilltheCat
    Thread: Update codeigniter
Post: RE: Update codeigniter

Sounds like something didn't make it in the upload to your server. Make sure the whole vendor folder is uploaded
319 Views
14 Replies
01-11-2022, 07:15 AM
BilltheCat
    Thread: Filter to custom error pages
Post: RE: Filter to custom error pages

Thanks, That gets me the message string, but it doesn't push out to my error.php file. If I'm using the CI framework, can I not use an external file to grab the REDIRECT_STATUS key/value?
170 Views
3 Replies
01-10-2022, 09:34 AM
BilltheCat
    Thread: Filter to custom error pages
Post: Filter to custom error pages

I'm using a simple honeypot filter, and I can't seem to display the error page correctly.  Can anyone see something wrong with what I'm doing here? Instead of the expected "Not allowed" message, I'm s...
170 Views
3 Replies
01-09-2022, 09:10 PM
BilltheCat
    Thread: Google client library integration in codeigniter 4
Post: RE: Google client library integration in codeignit...

Here's a tutorial on custom libraries: https://onlinewebtutorblog.com/codeigniter-4-custom-library-easy-steps/ And here's a tutorial on php namespacing: https://www.w3schools.com/php/php_namespac...
1,388 Views
4 Replies
01-06-2022, 09:53 PM
BilltheCat
    Thread: Using Pagination Library
Post: RE: Using Pagination Library

Here's a simple example controller I use for paging through my logs table.  Hopefully, it will help you get started. PHP Code: --
351 Views
5 Replies
01-05-2022, 12:41 PM
BilltheCat
    Thread: url_to not working?
Post: RE: url_to not working?

@"IvanBell", do you have the folders and file capitalized like in your path? Code: -- app    │ └───Controllers │  │ │  └───Admin │      │  Categories.php -- Did you name the class correctl...
1,042 Views
6 Replies
08-30-2021, 12:48 PM
BilltheCat

Theme © iAndrew 2016 - Forum software by © MyBB