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?
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, , , .
HMVC (Hierarchical MHV) - , HTTP . ( wiredesignz). , https://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc/overview.
, codeigniter V1.7 , CI V2.0
Source: https://habr.com/ru/post/1788776/More articles:сборка dllimport/dllexport и статических библиотек в Visual С++ - staticData structures provided by the Win32 API? - windowssqlcmd: Login failed for user 'NT AUTHORITY \ ANONYMOUS LOGON' - sql-serverPython dictionaries. How to save a new value from overwriting the previous value? - pythonМогу ли я использовать клиентские сертификаты для аутентификации в WCF, не требуя учетных записей в AD или Windows? - wcf-securityHow to access a protected member if we cannot change the class? - c ++Java ProcessBuilder how to capture a request to read a file from a process and provide as a stream? - javaClock gadget in taskbar using C # - c #Big positions in the field of notifications (AKA system tray)? - .netDrupal Optimization with PHP Apache and Mysql Optimization - optimizationAll Articles