Welcome Guest, Not a member yet? Register   Sign In
set_flashdata is underfined?
#1

(This post was last modified: 11-15-2016, 08:53 AM by startbbs.)

PHP Code:
        $session = \Config\Services::session();
        
$session->set_flashdata('error''Wrong email or password. Have you forgotten your password?'); 

the error feedback is as follows:
PHP Code:
Call to undefined method CodeIgniter\Session\Session::set_flashdata() 
Q&A for Codeigniter
StartBBS--open-source, light weight forum software.
Best VPS:Digital Ocean
Reply
#2

(This post was last modified: 11-15-2016, 10:11 AM by superior.)

https://bcit-ci.github.io/CodeIgniter4/l...#flashdata

You are just using the version 3 names, version 4 has diffrent names Smile
Reply
#3

Code:
        $session = \Config\Services::session();
        $session->setFlashdata('error', 'Wrong email or password. Have you forgotten your password?');
Reply
#4

Thanks guys!!
Q&A for Codeigniter
StartBBS--open-source, light weight forum software.
Best VPS:Digital Ocean
Reply




Theme © iAndrew 2016 - Forum software by © MyBB