Skip to content

Unable to use another controller'method in one controller? #997

Description

@jinmarcus

Unable to use another controller'method in one controller?

like this:

namespace Common\Controller;
use App\Controllers\Login;

class Common extends \CodeIgniter\Controller {
       $login = new Login();
       $login->test();
}

and wrong

ArgumentCountError
Too few arguments to function CodeIgniter\Controller::__construct(), 0 passed in

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions