Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: How do I use esc() in html form input AND get readable text?
Post: RE: How to use esc() in html form input AND get re...

kenjis Wrote: (03-25-2024, 06:58 PM) -- The value of "value" is automatically escaped by form_input(). PHP Code: -- 'value' => $sample_text -- -- Thank you. I missed that in the documentation
70 Views
2 Replies
03-25-2024, 07:43 PM
objecttothis
    Thread: How do I use esc() in html form input AND get readable text?
Post: How do I use esc() in html form input AND get read...

Problem: This code PHP Code: -- -- Yields a textbox with the value "The quick brown fox!" How can I escape output but still produce readable text in the form? I want "...
70 Views
2 Replies
03-25-2024, 06:22 PM
objecttothis
    Thread: Add bool $doubleEncode = true optional parameter to esc()
Post: Add bool $doubleEncode = true optional parameter t...

Current behavior is PHP Code: --     echo esc('& &') //returns '& &' -- Please modify esc() to allow PHP Code: --     echo esc('& &', 'html', 'utf-8', false) //returns ...
81 Views
1 Replies
03-25-2024, 08:08 AM
objecttothis
    Thread: Deprecation warning in \Honeypot\Honeypot.php
Post: RE: Deprecation warning in \Honeypot\Honeypot.php

Yep, that fixes it!
269 Views
3 Replies
12-09-2023, 03:39 AM
objecttothis
    Thread: Deprecation warning in \Honeypot\Honeypot.php
Post: Deprecation warning in \Honeypot\Honeypot.php

PHP 8.2.12 CI 4.4.3 I have the following code PHP Code: -- public function getCsv(): DownloadResponse { $name = 'import_customers.csv'; $data = file_get_contents(WRITEPATH . "uploads/...
269 Views
3 Replies
12-08-2023, 06:45 AM
objecttothis
    Thread: source code says Request::getMethod() is deprecated, what to use?
Post: RE: source code says Request::getMethod() is depre...

MGatner Wrote: (07-19-2021, 05:02 AM) -- We are working on a framework-wide implementation for handling use of deprecated features. This would definitely be the kind of approach it would take. I do...
14,084 Views
15 Replies
12-07-2023, 04:09 AM
objecttothis
    Thread: No DB log files
Post: RE: No DB log files

Apologies. After more research I just realized that this was not built in, but a 3rd party hook added in when the app was on CI3, but not properly migrated to CI4
196 Views
2 Replies
11-27-2023, 01:44 AM
objecttothis
    Thread: No DB log files
Post: No DB log files

CI 4.4.3 Windows Environment PHP 8.1.0 Apache 2.4.58 MySQL 8.2.0 .env file CI_ENVIRONMENT = development app.db_log_enabled = true logger.threshold = 9 In /writable/logs/ the general log f...
196 Views
2 Replies
11-26-2023, 10:59 PM
objecttothis
    Thread: Intermittent "Error connecting to the database"
Post: Intermittent "Error connecting to the database"

I'm running a WAMP installation (Laragon) for development. MySQL 8.0.35, PHP 8.1.10, CI 4.4.3, CI_Environment is development I have the session handler set to the database. Most queries are properl...
230 Views
0 Replies
11-07-2023, 04:50 AM
objecttothis
    Thread: What is the proper way to abort a migration?
Post: What is the proper way to abort a migration?

CI 4.3.1 If, in the up() function of a migration I have some check that causes me to want to abort the migration so that the migration does not continue and does not get added to the migrations tab...
485 Views
1 Replies
02-21-2023, 05:24 AM
objecttothis
    Thread: decrypt() returning incorrect result
Post: RE: decrypt() returning incorrect result

kenjis Wrote: (02-18-2023, 04:25 PM) -- Oh, thank you for the investigation. I got your situation. Try: PHP Code: -- $config        = new Encryption(); $config->driver = 'OpenSSL'; // Your ...
2,212 Views
7 Replies
02-19-2023, 05:44 AM
objecttothis
    Thread: decrypt() returning incorrect result
Post: RE: decrypt() returning incorrect result

@kenjis I applied the workaround that @ardimardiana referenced here https://forum.codeigniter.com/showthread.php?tid=82494&pid=406963#pid406963 and got it working. In doing so I discovered the prob...
2,212 Views
7 Replies
02-18-2023, 02:15 PM
objecttothis
    Thread: CI 3 to CI 4 Encryption Compability
Post: RE: CI 3 to CI 4 Encryption Compability

ardimardiana Wrote: (07-24-2022, 04:54 AM) -- i have figure it out hot to resolve this problem. so. what i am doing is. take / copy Codeigniter 3 encryption class -- @ardimardiana I'm trying to ...
2,666 Views
5 Replies
02-18-2023, 01:31 PM
objecttothis
    Thread: decrypt() returning incorrect result
Post: RE: decrypt() returning incorrect result

kenjis Wrote: (02-17-2023, 05:20 PM) -- It should work... See https://codeigniter.com/user_guide/libraries/encryption.html#configuration-to-maintain-compatibility-with-ci3 -- Should, but it isn't....
2,212 Views
7 Replies
02-18-2023, 09:56 AM
objecttothis
    Thread: decrypt() returning incorrect result
Post: decrypt() returning incorrect result

I'm converting an app from CI 3.1.13 to CI 4.3.1 In CI3 I had: PHP Code: -- $CI =& get_instance(); $this->api_key = $CI->encryption->decrypt($CI->Appconfig->get('mailchimp_api_key')); -- I...
2,212 Views
7 Replies
02-17-2023, 06:17 AM
objecttothis
    Thread: What is the correct way to load data from a databse once for use everywhere?
Post: RE: What is the correct way to load data from a da...

https://codeigniter4.github.io/CodeIgniter4/concepts/factories.html#config So this is what's confusing me.  I have a custom config class, PHP Code: -- class OSPOS extends BaseConfig { publ...
1,824 Views
6 Replies
02-12-2023, 09:46 AM
objecttothis
    Thread: What is the correct way to load data from a databse once for use everywhere?
Post: RE: What is the correct way to load data from a da...

kenjis Wrote: (02-11-2023, 02:52 PM) -- objecttothis Wrote: (02-11-2023, 08:32 AM) -- From what I can tell that will work, but unless I'm mistaken, every time config('foo')->bar gets called its goin...
1,824 Views
6 Replies
02-11-2023, 03:16 PM
objecttothis
    Thread: What is the correct way to load data from a databse once for use everywhere?
Post: What is the correct way to load data from a databs...

I want to load into memory as an associative array all the rows from an app_config table so that the array can be accessed in Models, Views, Controllers, Helpers and Libraries and not need to do a dat...
1,824 Views
6 Replies
02-11-2023, 08:32 AM
objecttothis
    Thread: Migrating Migrations Table from CI3 for existing databases
Post: RE: Migrating Migrations Table from CI3 for existi...

kenjis Wrote: (02-03-2023, 12:50 AM) -- objecttothis Wrote: (02-02-2023, 11:24 PM) -- It would be nicer if migrate recognized the version number from CI3 migrations and didn't try to run migrations ...
1,749 Views
7 Replies
02-03-2023, 12:57 AM
objecttothis
    Thread: Migrating Migrations Table from CI3 for existing databases
Post: RE: Migrating Migrations Table from CI3 for existi...

kenjis Wrote: (02-02-2023, 11:16 PM) -- objecttothis Wrote: (02-02-2023, 10:55 PM) -- Following the current upgrade procedure starts migrations over, so it will re-run migrations 1-5. -- No, don't...
1,749 Views
7 Replies
02-02-2023, 11:24 PM
objecttothis

Theme © iAndrew 2016 - Forum software by © MyBB