Kohana 3: using maintainable routes?

Yes you want reverse routing using the route name. Try something like this: echo Html::anchor( Route::get('your_route_name')->uri(array('id'=>$user->id)), "See user's profile" ).

1 Thanks a lot, I didn't know about the Route class. – dusan Dec 1 '09 at 0:05.

What do you need is called reverse routing. You have a route "name" (with parameters eventually) and you associate it with a module/action pair or with a whatever/path. Then you use this route name instead of the direct controller/action path so you can change the name of the actions as you like in future.

Here's a page that describes this. Be aware that in kohana 2. X reverse routing is not supported (so when he refers to 2.3 he really means 3.

X).

2 You're correct about reverse routing, but that linked example is outdated. The best resources are the official userguide: v3.kohanaphp. Com/guide and the unofficial wiki: kerkness.Ca/wiki/doku.

Php – rick Nov 30 '09 at 22:35.

Be aware that in kohana 2. X reverse routing is not supported (so when he refers to 2.3 he really means 3.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions