• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error after upgrading from beta1 to beta2

#6
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
() ?>
Reply


Messages In This Thread
RE: Error after upgrading from beta1 to beta2 - by elephpantech - 04-06-2019, 07:03 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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