Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Out of memory issues
Post: RE: Out of memory issues

I upped the memory to 1024MB in the PHP.ini file which also resolved the issue. As best I was able to research, the view copies the passed variables into an internal variable (which doubles the size...
503 Views
2 Replies
08-22-2022, 09:28 AM
Kaosweaver
    Thread: Out of memory issues
Post: Out of memory issues

I'm running large reports (but not huge ones), using v4.1.3 and I'm running out of memory. I've inserted memory cleanup (unsetting all variables after use, manually calling memory cleanups, etc) in t...
503 Views
2 Replies
08-19-2022, 09:52 AM
Kaosweaver
    Thread: Builder *and* beforeInert beforeUpdate
Post: RE: Builder *and* beforeInert beforeUpdate

kenjis Wrote: (06-23-2022, 04:33 AM) -- Extending Core Classes https://codeigniter.com/user_guide/extending/core_classes.html#extending-core-classes is based on Replacing Core Classes https://codeig...
1,843 Views
4 Replies
06-23-2022, 07:48 AM
Kaosweaver
    Thread: Builder *and* beforeInert beforeUpdate
Post: RE: Builder *and* beforeInert beforeUpdate

I'm not looking to extend the database functionality, I'm looking to be able to use the beforeInsert from the database model while using the builder functionality.  I believe I want to extend the Base...
1,843 Views
4 Replies
06-23-2022, 04:23 AM
Kaosweaver
    Thread: Builder *and* beforeInert beforeUpdate
Post: Builder *and* beforeInert beforeUpdate

I sorted out (with help of a post here) that the Builder functionality and the database model's use of beforeInsert and beforeUpdate don't work together. I would like to extend the Model and write ...
1,843 Views
4 Replies
06-21-2022, 06:29 AM
Kaosweaver
    Thread: Model in subfolder not working
Post: RE: Model in subfolder not working

iRedds Wrote: (01-12-2022, 01:36 PM) --
3,154 Views
2 Replies
01-13-2022, 06:44 AM
Kaosweaver
    Thread: Model in subfolder not working
Post: Model in subfolder not working

In the controller: PHP Code: -- $companyListModel = new \App\Models\rt3\CompanyListModel(); -- The Models folder has an Rt3 folder with the CompanyListModel.php in it. PHP Code: --
3,154 Views
2 Replies
01-12-2022, 12:42 PM
Kaosweaver
    Thread: Filters and $_POST (or $request post vars)
Post: RE: Filters and $_POST (or $request post vars)

Actually, I've sorted out the issue that I needed to sort out. I really didn't need the vars as part of the POST, I needed them to be automatically filled in when I submitted my records for insert or ...
1,463 Views
4 Replies
08-10-2021, 05:47 AM
Kaosweaver
    Thread: Filters and $_POST (or $request post vars)
Post: RE: Filters and $_POST (or $request post vars)

Gary Wrote: (07-29-2021, 02:19 PM) -- Try using $_REQUEST['Maint_Userid']... or whatever the form/post variable's name it is you want to access from inside the Filter. Code: -- public function ...
1,463 Views
4 Replies
08-02-2021, 06:36 AM
Kaosweaver
    Thread: Filters and $_POST (or $request post vars)
Post: Filters and $_POST (or $request post vars)

I want to automatically add variables to each incoming POST, so I thought filters would be helpful, however, I can't see a way to get to the POST vars in the filter class PHP Code: -- class Filt...
1,463 Views
4 Replies
07-27-2021, 05:38 AM
Kaosweaver
    Thread: Help Needed with Documentation
Post: RE: Help Needed with Documentation

Kilishan, As a long time user of CI, I would implore you to focus on the database section. - there is the "straight" way to for queries (i.e. $db->query() ) - there is the "builder" way to for...
20,514 Views
16 Replies
06-21-2021, 08:22 AM
Kaosweaver
    Thread: Class not found when loading a library
Post: RE: Class not found when loading a library

fedeburo Wrote: (03-15-2021, 05:25 AM) -- Inside this library, i have a class defined that is : class anythingToDo{ ... }[/font][/size][/color] How can i create an object anythingToDo in anot...
3,232 Views
4 Replies
03-22-2021, 08:37 AM
Kaosweaver
    Thread: $this->setTable() or $this->table not sticking
Post: RE: $this->setTable() or $this->table not sticking

InsiteFX Wrote: (03-19-2021, 11:21 AM) -- When working with multiple tables you should always call. PHP Code: -- $this->table->clear(); -- Before setting up a table again. -- Tried it two way...
2,824 Views
4 Replies
03-22-2021, 05:10 AM
Kaosweaver
    Thread: $this->setTable() or $this->table not sticking
Post: $this->setTable() or $this->table not sticking

Ok, so, I've got a dynamic database setup where tickets are put in the tables and the tables can be created on the fly (as well as columns) - so I'm setting up the database model to handle this based ...
2,824 Views
4 Replies
03-19-2021, 06:36 AM
Kaosweaver
    Thread: Hosting and codeigniter
Post: RE: Hosting and codeigniter

Yes. You can have non-CI code alongside the CI framework, just need to make sure you're routing things correctly and you'll be fine (the htaccess should not route paths that resolve to files, while un...
776 Views
1 Replies
03-12-2021, 07:53 AM
Kaosweaver
    Thread: Why is Code Igniter not recommended??
Post: RE: Why is Code Igniter not recommended??

When it says "lightweight" framework, it is more about what it automatically does for you and what it doesn't. Seriously people, this is PHP, you can do anything with about any framework depending ...
6,016 Views
9 Replies
03-12-2021, 07:26 AM
Kaosweaver
    Thread: CI4 .env file connecting to multiple databases not working
Post: RE: CI4 .env file connecting to multiple databases...

kenjis Wrote: (02-02-2021, 12:48 AM) -- You need to add the property `second` in app/Config/Database.php. https://github.com/codeigniter4/CodeIgniter4/blob/87327d32e43e9fcfdf9bbee197a4b5743ece0258...
2,925 Views
3 Replies
02-02-2021, 05:56 AM
Kaosweaver
    Thread: CI4 .env file connecting to multiple databases not working
Post: CI4 .env file connecting to multiple databases not...

I have four databases I wish to connect to, like so: Code: -- database.default.hostname = 127.0.0.1 database.default.username = something1 database.default.password = somepass1 database.defau...
2,925 Views
3 Replies
02-01-2021, 11:38 AM
Kaosweaver
    Thread: Codeigniter + React Admin is it a good pair?
Post: RE: Codeigniter + React Admin is it a good pair?

I used CI v2.x/3.,x with a react front end and redux. It works fine.
3,251 Views
3 Replies
12-14-2020, 01:47 PM
Kaosweaver
    Thread: sendWithMail throwing error on shared server
Post: sendWithMail throwing error on shared server

Code: PHP Code: -- $content=view("orders",$data); $email = \Config\Services::email(); $email->setFrom('[email protected]', 'clients name'); $email->setTo($cust_row->email); $email->set...
1,107 Views
2 Replies
04-21-2020, 06:31 AM
Kaosweaver

Theme © iAndrew 2016 - Forum software by © MyBB