• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Setting and Getting Session and Flashdata

#5
(09-26-2019, 02:14 AM)Digital_Wolf Wrote: full simple example for CI4:

PHP Code:
<?php
namespace App\Models;

use \
Config\Services\session;

class 
My_Model
{
     private session null;
     
     
public function __construct() {
           $this->session = new session();
     }
     public function setDataSession($data) {
           // ... you code
           $this->session->set$data );
           // ... you another code
     }


It throws error Sad

Reply


Messages In This Thread
RE: Setting and Getting Session and Flashdata - by msjagan - 09-26-2019, 02:26 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.