Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Model in subfolder not working
Post: RE: Model in subfolder not working

iRedds Wrote: (01-12-2022, 01:36 PM) --
188 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: --
188 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 ...
829 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 ...
829 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...
829 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...
15,142 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...
1,545 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...
1,438 Views
3 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 ...
1,438 Views
3 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...
528 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 ...
3,804 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...
1,653 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...
1,653 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.
2,348 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...
860 Views
2 Replies
04-21-2020, 06:31 AM
Kaosweaver
    Thread: insert, get ID of insert [FIXED: My fault]
Post: RE: insert, get ID of insert [FIXED: My fault]

cyberstunts Wrote: (04-13-2020, 04:06 PM) -- Documentation "Query Helper Methods" specifies that the correct usage is: PHP Code: -- $db->insertID(); -- and not PHP Code: -- $MyModel->insertID();...
2,183 Views
3 Replies
04-14-2020, 04:47 AM
Kaosweaver
    Thread: insert, get ID of insert [FIXED: My fault]
Post: insert, get ID of insert [FIXED: My fault]

Tried: PHP Code: -- $order_id = $orderModel->insert($data); -- Then tried: PHP Code: -- $orderModel->insert($data); $order_id = $orderModel->insertID(); -- Neither returned the inserted I...
2,183 Views
3 Replies
04-13-2020, 08:26 AM
Kaosweaver
    Thread: Including CI4 resources in custom libraries
Post: RE: Including CI4 resources in custom libraries

kilishan Wrote: (03-24-2020, 07:05 PM) -- You got it - you create them just like you would in a controller/model. -- PLEASE write that in the docs? It would be super awesome if the docs got some...
3,079 Views
5 Replies
04-10-2020, 08:51 AM
Kaosweaver
    Thread: Anyone using CI with React,Vue,Svelte or Marko?
Post: RE: Anyone using CI with React,Vue,Svelte or Marko...

We use CI with ReactJS for an application that is a SaaS for 1700 locations with thousands of concurrent users (all day long too) - we handle a boat load of POS transactions, appointments, services, e...
5,296 Views
5 Replies
03-06-2020, 09:38 AM
Kaosweaver
    Thread: Why is Code Igniter not recommended?
Post: RE: Why is Code Igniter not recommended?

website Wrote: (08-19-2019, 01:59 AM) -- Really cool, fast and simple  (and cloudflare optimizes traffic and protects against DDos attacks) I would add a little better mobile version to starcitygames...
11,021 Views
12 Replies
08-19-2019, 07:36 AM
Kaosweaver

Theme © iAndrew 2016 - Forum software by © MyBB