Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Session hijacking problem
Post: RE: Session hijacking problem

Thank you for your responses. I also did what luckmoshy said, but kept timeToUpdate at 100.
513 Views
4 Replies
10-11-2023, 05:54 AM
LuxesR
    Thread: Session hijacking problem
Post: Session hijacking problem

I have a question about ci_session. We build our own login system with a session. We found out that if you copy and paste the ci_session and put it in an other browser, the user is logged in without s...
513 Views
4 Replies
10-06-2023, 02:11 AM
LuxesR
    Thread: Update 4.4.1 makes it slower
Post: RE: Update 4.4.1 makes it slower

I work on a Mac, so that's not the issue. If what Kenjis says it true, then it makes sense.
776 Views
7 Replies
09-25-2023, 06:54 AM
LuxesR
    Thread: Update 4.4.1 makes it slower
Post: RE: Update 4.4.1 makes it slower

kenjis Wrote: (09-20-2023, 01:26 PM) -- I have no idea. If you instantiate Invoices_model once, `new \App\Models\Invoices_model()` seems to be faster. If `new Invoices_model()` does not work in v...
776 Views
7 Replies
09-20-2023, 11:30 PM
LuxesR
    Thread: Update 4.4.1 makes it slower
Post: RE: Update 4.4.1 makes it slower

I'm using this now: Code: -- $this->Invoices = model('Invoices_model'); -- Instead of this: Code: -- $this->Invoices = new \App\Models\Invoices_model(); -- It's now as fast as it was bef...
776 Views
7 Replies
09-20-2023, 07:01 AM
LuxesR
    Thread: Update 4.4.1 makes it slower
Post: Update 4.4.1 makes it slower

I've updated from CodeIgniter 4.3.6 to 4.4.1. But it seems much slower. Like 2 seconds more load time. I've checked it on the same environment.  Is there a setting I missed? I've added setAutoRoute on...
776 Views
7 Replies
09-20-2023, 05:18 AM
LuxesR
    Thread: Cookies removed on specific URL's
Post: Cookies removed on specific URL's

One of our clients found a problem that I can't figure out and seems like a CodeIgniter problem. We have an application in CodeIgniter 4 that can be accessed from multiple domains and using the same a...
162 Views
0 Replies
07-10-2023, 05:07 AM
LuxesR
    Thread: Model within a model
Post: RE: Model within a model

Okay. It looks like that this is not an option what I'm asking. But how about I include the model every time there is a new function inside a model? Is this oke or will it also eventually give a memor...
6,029 Views
12 Replies
07-01-2021, 05:02 AM
LuxesR
    Thread: Model within a model
Post: RE: Model within a model

paulbalandan Wrote: (06-30-2021, 07:07 PM) -- By any chance, why do you need an instance of Users model inside Settings model, and vice versa? -- Because in some functions of the Settings_model I n...
6,029 Views
12 Replies
07-01-2021, 02:58 AM
LuxesR
    Thread: Model within a model
Post: RE: Model within a model

Thanks for your responses. What InsiteFX suggested was my first idea but I had the same problem with that. I'm using it like this (just like the Settings_model): PHP Code: -- namespace App\Model...
6,029 Views
12 Replies
06-30-2021, 02:49 AM
LuxesR
    Thread: Model within a model
Post: RE: Model within a model

Thanks for your response. But can I call the LoggingModel in the UserModel the same way?
6,029 Views
12 Replies
06-29-2021, 01:47 PM
LuxesR
    Thread: How to use $request->uri->getSegment() inside view?
Post: RE: How to use $request->uri->getSegment() inside...

0x0undefined Wrote: (06-20-2020, 11:02 AM) -- I'm trying to use `$ request-> uri-> getSegment (1)` in the view but I get an error saying "Undefined variable: request", what should I do to display a g...
7,565 Views
5 Replies
06-29-2021, 12:42 PM
LuxesR
    Thread: Model within a model
Post: Model within a model

Is it possible to include a model in the '__construct' and do the same with the other model? PHP Code: -- class Users_model extends \App\Models\BaseModel {     function __construct()     { ...
6,029 Views
12 Replies
06-29-2021, 12:31 PM
LuxesR
    Thread: Autoload for models like BaseController
Post: RE: Autoload for models like BaseController

As for the BaseModel.php. Find it out later. The BaseModel should look like this: PHP Code: -- namespace App\Models; use CodeIgniter\Model; class BaseModel extends Model { function __c...
4,447 Views
5 Replies
06-22-2021, 05:55 AM
LuxesR
    Thread: Autoload for models like BaseController
Post: RE: Autoload for models like BaseController

includebeer Wrote: (06-19-2021, 09:40 AM) -- You can create a base model and extend your other model on it. -- Thanks for you reply. I didn't know that you can make a base model. What is the conten...
4,447 Views
5 Replies
06-19-2021, 12:17 PM
LuxesR
    Thread: Autoload for models like BaseController
Post: Autoload for models like BaseController

So I'm working on CodeIgniter 4 lately and I'm trying to put my code from my CodeIgniter 3 project to CodeIgniter 4. Which isn't very easy. I want to use CodeIgniter 4 the best way possible, which is ...
4,447 Views
5 Replies
06-19-2021, 08:35 AM
LuxesR
    Thread: Include model inside a model
Post: RE: Include model inside a model

MGatner Wrote: (06-19-2021, 06:12 AM) -- Conceptually that should work fine! I believe your actual error is hiding because you are in a production instance. Try checking your error logs or switching ...
2,372 Views
3 Replies
06-19-2021, 06:45 AM
LuxesR
    Thread: Include model inside a model
Post: Include model inside a model

Hello! We are finally ready to use CodeIgniter 4. I only have some problems with using a model inside a model. I was expecting that I could use something like this: PHP Code: -- namespace App\Mode...
2,372 Views
3 Replies
06-18-2021, 12:13 AM
LuxesR

Theme © iAndrew 2016 - Forum software by © MyBB