Welcome Guest, Not a member yet? Register   Sign In
PHP8 problems
#1

Hi, im using ci4 and working well other php versions but i have problem with php8.
first problems solved with here: https://forum.codeigniter.com/thread-78146.html
and now my route not working. 
PHP Code:
$routes->get('/''IndexController::index'); 

and getting this error: Controller method is not found: index
so if i do my index function static route working like this. But i cant all functions to static please help.
PHP Code:
<?php namespace App\Controllers;
class 
IndexController extends BaseController
{
  public function __construct(){
    var_dump("TEST");
  }
public static function 
index()
{
return 
view('welcome_message');
}
//--------------------------------------------------------------------


Reply


Messages In This Thread
PHP8 problems - by dcyilmaz - 01-05-2021, 12:32 AM
RE: PHP8 problems - by dcyilmaz - 01-05-2021, 12:56 AM
RE: PHP8 problems - by InsiteFX - 01-05-2021, 01:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB