Welcome Guest, Not a member yet? Register   Sign In
*SOLVED* Multilingual codeigniter site
#11

[eluser]Mr. Pickle[/eluser]
I'm getting a 404 on them.

I now found out, by echoing in the controller constructor that the controller is in fact called. I exit() right after the echo because I get a white screen if not (due to errors later on, I think)

But when I remove the echo and the exit in the constructor, add a _remap function and but the echo and exit() there I get a white screen again. So apparently CI doesn't come there or a fatal error is created there.
#12

[eluser]Mr. Pickle[/eluser]
Update:
I now get into the _remap() function with the possible language codes in front, see code:

URI: http://siteurl.com/en/category/test/

Code:
function __construct() {
        parent::__construct();    
        echo '... in construct<br />';
    }
    
    function _remap($method) {
        echo '... in remap<br />';
    }

this correctly echoes:

Code:
... in construct
... in remap

But it stops there, whereas without the modifications this would have shown a page with content. I think I should do something in the _remap() but have no clue what.
#13

[eluser]Mr. Pickle[/eluser]
Ok, got it working now!

After finding the i18n library I found that solution better in my case (more options) but as I can judge the basic idea is pretty much the same.

Thanks!




Theme © iAndrew 2016 - Forum software by © MyBB