How change Config (base_url) on a Controller |
I want build a website with subdomains, to a multi-language purpose, and that solution can help me.
Code eg. Code: public function initController(RequestInterface $request, ResponseInterface $response, LoggerInterface $logger)
@includebeer, Has a very nice tutorial on how to do this multilingual website.
Creating a multilingual website with CodeIgniter 4 He also has another tutorial for creating a website. What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
You can store info in database then use code to detect valid domain.
Idea: In admin controller, create CRUD to manager domain list: Code: //DATABASE TABLE domainList: Include to header file: Code: //check valid domain, $currentDomain = $_SERVER['SERVER_NAME']; |
Welcome Guest, Not a member yet? Register Sign In |