Skip to content

Call another controller #224

Open
Open

Description

@willianis4w

Hey guys!

Is it possible to call a controller from other controller?

Thank you, I really enjoy this project :)

Activity

  1. panique commented on Sep 17, 2016

    @panique
    Owner

    That's a good question ! :) In normal frameworks you can do this for sure, but i would go with a helper like Helper::MyHelperMethod($abc) or do a hard redirect+exit.

    http://php.net/manual/en/function.header.php

    btw it's important to do the exit; after doing a redirect as technically a redirect is just "asking the browser" to go somewhere else, your php process will still go on !

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions