CodeIgniter internal direct action

In the Zend Framework, we can easily redirect an action to another controller using _forward ().

How to simulate this in CI? CI only has a redirect , but I don’t want this, I don’t want the user to see that the URL has changed in their browser.

Any idea to implement it?

+3
source share
2 answers

I know that you can forward another action inside the same controller without changing the url.

$this->action();

Other than that, I don’t see a built-in way to access other controllers.

, -, MVC, , , .

+2

HMVC (Hierarchical MHV) - , HTTP . ( wiredesignz). , https://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc/overview.

, codeigniter V1.7 , CI V2.0

+1

Source: https://habr.com/ru/post/1788776/


All Articles