Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: CI4 cannot start session
Post: RE: CI4 cannot start session

InsiteFX Wrote: (05-13-2020, 03:17 AM) -- It's telling you that you have already sent something to the screen. Check your code for output to the screen. -- Thank you for your reply. I tried to ...
3,072 Views
3 Replies
05-13-2020, 04:00 AM
hoffmanchan
  Sad Thread: CI4 cannot start session
Post: CI4 cannot start session

I add a line in Base Controller and run session.  PHP Code: --
3,072 Views
3 Replies
05-12-2020, 10:06 PM
hoffmanchan
    Thread: Session not working in basecontroller
Post: RE: Session not working in basecontroller

nmaa3003 Wrote: (05-12-2020, 06:24 AM) -- $this->session = \Config\Services::session(); u put wrong namespace. -- Wrong namespace ? I have put "use Config\Services" on top.  And I have change m...
2,727 Views
2 Replies
05-12-2020, 08:21 AM
hoffmanchan
    Thread: Session not working in basecontroller
Post: Session not working in basecontroller

I work on CI4.  When I add "$this->session = Services :: session();", I will be get a error message : ( How to slove it, plz ? ) PHP Code: -- Fatal error: Uncaught ErrorException: Cannot mod...
2,727 Views
2 Replies
05-11-2020, 09:33 PM
hoffmanchan
    Thread: How to use two models in a controller
Post: RE: How to use two models in a controller

kilishan Wrote: (05-11-2020, 06:40 AM) -- Your example works just fine. Personally, I'd use the model() helper just to ensure I don't get more than 1 instance of the model created, but what you've do...
3,370 Views
2 Replies
05-11-2020, 07:36 AM
hoffmanchan
    Thread: How to use two models in a controller
Post: How to use two models in a controller

Hello everyone, this is about codeigniter 4. I wanta use two models in a controller. But I have no idea how to solve it. Any suggestion for me please ?  PHP Code: --
3,370 Views
2 Replies
05-11-2020, 02:46 AM
hoffmanchan

Theme © iAndrew 2016 - Forum software by © MyBB