Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Dynamic Route Problem
  • Hello,
    I'm using CODEIGNITER framework. And i decided to move FuelPHP. But i have some problems about rooting. CODEIGNITER routes different then FuelPHP.

    For example, In CODEIGNITER routes,

    $route['tr/anasayfa'] = 'site/site/index';
    $route['(\w{2})/(.*)']   = 'site/$2';

    And when i opened turkish homepage (/tr/anasayfa) and the system opens this function(application/modules/site/controllers/site.php/index) 

    I Changed that function to FuelPHP and, I use
    Route::add('tr/anasayfa', 'site/site/index'); this line to route
    But it doesnt open.

    Routes,
        [tr/anasayfa] => FuelCoreRoute Object
            (
                [segments] => Array
                    (
                    )

                [named_params] => Array
                    (
                    )

                [method_params] => Array
                    (
                    )

                [path] => tr/anasayfa
                [case_sensitive] => 1
                [strip_extension] => 1
                [module] => 
                [directory] => 
                [controller] => 
                [action] => index
                [translation] => site/site/index
                [callable] => 
                [search:protected] => tr/anasayfa
            )

    How can i do that ?
  • Problem resolved.
    URI language dedecting function problem :)

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion