Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Codeigniter 4 CSP don't support style-src-attr
Post: RE: Codeigniter 4 CSP don't support style-src-attr

Styopi Wrote: (11-11-2023, 12:58 AM) -- kenjis Wrote: (10-31-2023, 06:03 PM) -- Apparently, the CSP3 directives are not implemented in CI4. It would be helpful if you could send a pull request to...
1,828 Views
4 Replies
10-22-2024, 12:37 AM
objecttothis
    Thread: QueryBuilder inside
Post: RE: QueryBuilder inside

I'm not sure if this is the best way but I've been using queryBuilder to make the sub query then a different instance for the outer query. PHP Code: -- $subqueryBuilder = $this->db->table('cs_we...
1,133 Views
5 Replies
05-07-2024, 08:50 AM
objecttothis
    Thread: Support JOIN in UPDATE
Post: Support JOIN in UPDATE

PHP 8.2 MySQL 8.2 Apache 2.4 CI 4.5.1 With the code PHP Code: -- $builder = $this->db->table('attribute_links'); $builder->join('attribute_values', 'attribute_values.attribute_id = attribut...
533 Views
0 Replies
05-07-2024, 12:41 AM
objecttothis
    Thread: QueryBuilder inside
Post: RE: QueryBuilder inside

kenjis Wrote: (05-06-2024, 03:47 AM) -- I don't know what is the correct way. 1. Do not use Query Builder. Use $db->query() instead. 2. Use RawSql. See https://codeigniter4.github.io/CodeIgniter4/d...
1,133 Views
5 Replies
05-06-2024, 04:35 AM
objecttothis
    Thread: QueryBuilder inside
Post: QueryBuilder inside

Any time QueryBuilder where() and select() functions contain SQL functions (e.g., DATE(), ISNULL(), etc.) table prefix is not prepended and tables/columns are not escaped. What is the correct way to g...
1,133 Views
5 Replies
05-06-2024, 03:31 AM
objecttothis
    Thread: Querybuilder select() parsing problems
Post: RE: Querybuilder select() parsing problems

kenjis Wrote: (04-29-2024, 03:27 AM) -- Cannot reproduce. PHP Code: --
665 Views
2 Replies
05-06-2024, 12:33 AM
objecttothis
    Thread: Querybuilder select() parsing problems
Post: Querybuilder select() parsing problems

CodeIgniter 4.5.1 PHP 8.2 PHP Code: -- $builder = $this->db->table('sales_items'); $builder->select("name, CONCAT(IFNULL(ROUND(percent, 2), 0), '%') AS percent, sales.sale_id AS sale_id, sales...
665 Views
2 Replies
04-29-2024, 01:54 AM
objecttothis
    Thread: Locale tolerant 'decimal' validation rule
Post: Locale tolerant 'decimal' validation rule

Summary: AFAIK the 'decimal' validation rule will only accept period (.) decimal separators, but some locales use the comma (,) as a decimal separator. Request: modify decimal to take a parameter (ei...
540 Views
0 Replies
04-09-2024, 06:14 AM
objecttothis
    Thread: Typo in documentation?
Post: Typo in documentation?

https://codeigniter4.github.io/CodeIgniter4/installation/upgrade_448.html specifies that /tests/.htaccess received changes, but I don't see a .htaccess file in that directory (/vendor/codeigniter4/fra...
635 Views
3 Replies
04-08-2024, 04:26 AM
objecttothis
    Thread: Missing Documentation
Post: Missing Documentation

On codeigniter.com 4.5 is the latest release but https://codeigniter.com/user_guide/installation/upgrading.html does not have upgrade notes to get from 4.4.5 to 4.4.6 to 4.4.7 to 4.4.8 to 4.5.0. [hr] ...
445 Views
1 Replies
04-08-2024, 02:38 AM
objecttothis
    Thread: Input requested on Security Strategy for CI4-based app
Post: Input requested on Security Strategy for CI4-based...

I am converting a CI3 webapp to CI4 we need to make sure that our code security strategy is rock solid. Please comment on what is wrong and what is missing. Escaping outputs: Many of the built-in Cod...
974 Views
1 Replies
04-08-2024, 12:48 AM
objecttothis
    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
712 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 "...
712 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 ...
622 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!
764 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/...
764 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...
18,876 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
573 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...
573 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...
562 Views
0 Replies
11-07-2023, 04:50 AM
objecttothis

Theme © iAndrew 2016 - Forum software by © MyBB