Welcome Guest, Not a member yet? Register   Sign In
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



Theme © iAndrew 2016 - Forum software by © MyBB