Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
General
Dynamic Route Problem
byazrail
November 2013
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 ?
byazrail
November 2013
Problem resolved.
URI language dedecting function problem
:)
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
5,088
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
260
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52
In this Discussion
byazrail
November 2013