Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Converting CI3 Validation with multiple parameters
Post: Converting CI3 Validation with multiple parameters

I'm converting a CI3 application to CI4 and having a little difficulty with validation. I've been using https://codeigniter.com/user_guide/libraries/validation.html and https://codeigniter.com/user...
473 Views
1 Replies
03-28-2022, 06:41 AM
objecttothis
    Thread: esc() dropdowns/checkboxes/numbers in views
Post: esc() dropdowns/checkboxes/numbers in views

In this post (https://forum.codeigniter.com/thread-77011-post-377848.html#pid377848) @jreklund makes the statement that everything that a user could manipulate should be escaped in the view.  I have a...
502 Views
0 Replies
11-18-2021, 10:09 AM
objecttothis
    Thread: CI4 $this-db->Table() inside foreach or outside
Post: RE: CI4 $this-db->Table() inside foreach or outsid...

manager Wrote: (11-04-2021, 10:19 PM) -- In your example "where" is a clause, so it's NEED key/value pair. So the first row of code is wrong. -- https://codeigniter.com/user_guide/database/query_...
2,070 Views
9 Replies
11-04-2021, 10:45 PM
objecttothis
    Thread: CI4 $this-db->Table() inside foreach or outside
Post: RE: CI4 $this-db->Table() inside foreach or outsid...

manager Wrote: (11-04-2021, 06:24 AM) -- Second variant is right -- manager Wrote: (11-04-2021, 11:10 AM) -- I don't understand your code , but what i can say (if i understood you correctly) is whe...
2,070 Views
9 Replies
11-04-2021, 11:31 AM
objecttothis
    Thread: CI4 $this-db->Table() inside foreach or outside
Post: RE: CI4 $this-db->Table() inside foreach or outsid...

@manager, a quick followup. Am I correct in my understanding then that the $builder does not need to be reinstantiated unless the table that the operation is being performed against is being changed?...
2,070 Views
9 Replies
11-04-2021, 06:59 AM
objecttothis
    Thread: CI4 $this-db->Table() inside foreach or outside
Post: CI4 $this-db->Table() inside foreach or outside

I have the following code: PHP Code: -- foreach($sales_taxes as $line => $sales_tax) { $builder = $this->db->Table('sales_taxes'); $builder->insert($sales_tax); } -- This will reassign...
2,070 Views
9 Replies
11-04-2021, 02:08 AM
objecttothis
    Thread: $this->load->vars() in CI4
Post: $this->load->vars() in CI4

I'm trying to convert an existing CI3.x application to CI4.x At the end of one of my controllers I am calling PHP Code: -- $data['user_info'] = $logged_in_employee_info; $data['controller_...
1,813 Views
3 Replies
09-30-2021, 05:35 AM
objecttothis
    Thread: CodeIgniter 4 get_mime_by_extension
Post: RE: CodeIgniter 4 get_mime_by_extension

kenjis Wrote: (09-28-2021, 12:32 AM) -- CI3 User Guide says "This is not an accurate way of determining file MIME types, and is here strictly for convenience. It should not be used for security purpo...
1,286 Views
3 Replies
09-28-2021, 12:44 AM
objecttothis
    Thread: CodeIgniter 4 get_mime_by_extension
Post: CodeIgniter 4 get_mime_by_extension

https://codeigniter.com/userguide3/helpers/file_helper.html#get_mime_by_extension Did this not get ported over from CI3? I checked here: https://codeigniter4.github.io/CodeIgniter4/helpers/filesyste...
1,286 Views
3 Replies
09-27-2021, 10:56 PM
objecttothis
    Thread: More Robust 3.x to 4.x documentation
Post: RE: More Robust 3.x to 4.x documentation

kenjis Wrote: (09-24-2021, 03:57 AM) -- https://codeigniter4.github.io/CodeIgniter4/ is not the official User Guide. It is the current in-progress User Guide. If you will see it as the official one...
2,561 Views
6 Replies
09-24-2021, 04:37 AM
objecttothis
    Thread: More Robust 3.x to 4.x documentation
Post: RE: More Robust 3.x to 4.x documentation

kenjis Wrote: (09-23-2021, 04:03 PM) -- Thank you for your suggestion. The dev doc has more info for upgrading. If you don't see it, check it out. https://codeigniter4.github.io/CodeIgniter4/inst...
2,561 Views
6 Replies
09-24-2021, 03:36 AM
objecttothis
    Thread: More Robust 3.x to 4.x documentation
Post: More Robust 3.x to 4.x documentation

Great work on CI4. I'm reworking an existing application from CI3.x to CI4.x and you do have a basic documentation page on the general idea but I'm finding that dozens of features from 3.x were remov...
2,561 Views
6 Replies
09-23-2021, 06:12 AM
objecttothis
    Thread: Output Class in CI4?
Post: Output Class in CI4?

I'm converting an app from CI3x to CI4x. I see that the Input class is more or less replaced by Request, but I don't see a counterpart for Output. For example, how would I convert this? PHP Co...
487 Views
1 Replies
09-23-2021, 06:03 AM
objecttothis
    Thread: function called from view is showing as unused in PHPStorm
Post: function called from view is showing as unused in ...

In my controller I have: PHP Code: -- public function save_info() { ... } -- This function is used in a view PHP Code: -- -- I'm right in the middle of trying to convert this application to CI4....
679 Views
1 Replies
09-23-2021, 01:01 AM
objecttothis
    Thread: CI4 Best Practice for Echo Shortcut Tag
Post: CI4 Best Practice for Echo Shortcut Tag

Preface: According to PHP, as of version 5.4 `
2,214 Views
2 Replies
09-23-2021, 12:34 AM
objecttothis
    Thread: Query Builder: regex error when passing large array to where_in
Post: RE: Query Builder: regex error when passing large ...

kilishan Wrote: (02-15-2019, 11:52 AM) -- I would chunk the data into smaller pieces. Should work fine then. -- Yes, it doesn't error if I put the UPDATE into the foreach loop but that means that I ...
6,514 Views
5 Replies
02-18-2019, 04:01 AM
objecttothis
    Thread: Query Builder: regex error when passing large array to where_in
Post: RE: Query Builder: regex error when passing large ...

php_rocs Wrote: (02-15-2019, 11:48 AM) -- @objecttothis, Why is your Where clause so big?  Can you make it smaller? -- My WHERE clause isn't large. The WHERE IN clause is large however because ...
6,514 Views
5 Replies
02-18-2019, 03:57 AM
objecttothis
    Thread: Query Builder: regex error when passing large array to where_in
Post: Query Builder: regex error when passing large arra...

CI 3.1.9 PHP 5.6.38 FreeBSD 11.2 Apache 2.4 MySQL 5.7 Problem: passing a large array to where_in generates the php error and the update fails. Code: -- preg_match(): Compilation failed: regu...
6,514 Views
5 Replies
02-15-2019, 01:31 AM
objecttothis
    Thread: Server config causing CSRF triggers
Post: RE: Server config causing CSRF triggers

spjonez Wrote: (09-07-2017, 11:26 AM) -- objecttothis Wrote: (09-07-2017, 06:47 AM) -- csrf_regenerate is set to true and so far the AJAX calls haven't been doing things like giving a 200 on the fir...
12,829 Views
18 Replies
09-10-2017, 12:28 PM
objecttothis
    Thread: Server config causing CSRF triggers
Post: RE: Server config causing CSRF triggers

spjonez Wrote: (09-07-2017, 06:33 AM) -- Is cookie_httponly set to false? If security is your primary concern this should be set to true which will break the code you posted. Instead of reading the c...
12,829 Views
18 Replies
09-07-2017, 06:47 AM
objecttothis

Theme © iAndrew 2016 - Forum software by © MyBB