• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CI4 Beta 1: function _remap not works properly

#1
Bug 
my english is not the best.

in Codeigniter 3 I do:

URL:
/test/parameter1/parameter2/<parameterN>

CI3
called class: Test 
called method:  _remap (I have it function declared).

in Codeigniter 3 all works ok.

but in Codeigniter 4,

with URL:
/test
CI4 call method _remap, woks ok.

but with URL:
/test/parameter1
or URL 
/test/parameter1/parameter2/<parameterN>

show error: ReflectionException "Method App\Controllers\Test::parameter1() does not exist"

-----

Details:
- No setting route additional.
- I try wihtout function index, but it does not affect.

PHP Code:
<?php namespace App\Controllers;

use 
CodeIgniter\Controller;

class 
Test extends Controller
{
    public function 
index()
    {
        echo 
"Test/index";
    }
    
//--------------------------------------------------------------------
    
public function _remap($method)
    {
        echo 
"Test/remap - {$method}";
    }
    
//--------------------------------------------------------------------




excuse my english, I appreciate the help. thanks!!


Attached Files Thumbnail(s)
   
Reply


Messages In This Thread
CI4 Beta 1: function _remap not works properly - by hlmqz - 03-25-2019, 10:12 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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