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.
excuse my english, I appreciate the help. thanks!!
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!!