Welcome Guest, Not a member yet? Register   Sign In
Error after upgrading from beta1 to beta2
#7

(04-06-2019, 07:03 AM)elephpantech Wrote: Same problem detected!

My tests found the problem appear when I use "with('message', 'OK')" method in "return redirect()->back()" object;

I've manual install a new clean app and only change $baseURL on App config.

'Session' service and 'form' helper are enabled on BaseController.


PHP Code:
<?php namespace App\Controllers;

class 
Home extends BaseController
{
    
    public function 
index()
    {
        return 
view('welcome_message');
    }


    public function 
test()
    {
        if (
$this->request->getMethod() === 'post')
        {
            
//return redirect()->back(); GOOD
            
return redirect()->back()->with('message''OK'); //BAD
        
}

        return 
view('test');
    }




PHP Code:
<?= form_open() ?>
    <?= form_input(['type' => 'text''name' => 'input']) ?>
    <?= form_button(['type' =>'submit''content' => 'Submit']) ?>
<?= form_close
() ?>

The same problem. If  I use "redirect()->back()" and have $sessionDriver== 'CodeIgniter\Session\Handlers\DatabaseHandler' throws error.
If session is used with FileHandler there is no error.

Any ideea how to solve that?

Thanks!
Reply


Messages In This Thread
RE: Error after upgrading from beta1 to beta2 - by mirel.popescu - 04-08-2019, 05:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB