Remove segment from url in multi language site |
(02-22-2021, 06:05 AM)demyr Wrote: It looks like you are trying to add and view the result within the same method (It/Main::article). Have you tried seperating them? Plus, can you see any response data from your controller, I mean for example: Hi @demyr! I have a view called blog with categories and articles for each category. blog method: PHP Code: public function blog() article method: PHP Code: public function article() Routes: PHP Code: // TEST The error is the same: Trying to access array offset on value of type null https://demo.samuelesantoni.com/host/CI4-1-1.png I have this code in another site with one language, CI 4.0.4 and PHP 7.4 and all works fine! I tried your code and the uri segment is correct i can see the answer from my controller. https://demo.samuelesantoni.com/host/CI4-result.png Thanks for help me! |
Messages In This Thread |
Remove segment from url in multi language site - by eleumas - 02-19-2021, 12:00 PM
RE: Remove segment from url in multi language site - by kenjis - 02-20-2021, 12:56 AM
RE: Remove segment from url in multi language site - by demyr - 02-20-2021, 04:19 AM
RE: Remove segment from url in multi language site - by eleumas - 02-22-2021, 04:24 AM
RE: Remove segment from url in multi language site - by demyr - 02-22-2021, 06:05 AM
RE: Remove segment from url in multi language site - by eleumas - 02-22-2021, 08:04 AM
RE: Remove segment from url in multi language site - by demyr - 02-23-2021, 11:57 AM
|