Welcome Guest, Not a member yet? Register   Sign In
Question about best practices for write anchors
#3

[eluser]JulianM[/eluser]
Hi TheFuzzyOne. Well, in the past I simple used links to the main controller when I needed along the application, independently about the routes I have used.

I understand your route rule, but inside the application I would use links accordingly to the selected language, because I think that improves the site readability and navigability as well as SEO.

For example, if I am an English user, I would read the links as /product/id but if I am a Spanish guy I would like to read the links as /producto/id

So, given this, I would need to write different URL among the application, for example using anchor().

I would like to know if other developers do not mind about this issue or if there is any good practice to write these links.

Thanks




[quote author="TheFuzzy0ne" date="1236989885"]It depends how complex your application is. Would a route not suffice?
Code:
$route['producto/(.+)'] = 'products/$1';
[/quote]


Messages In This Thread
Question about best practices for write anchors - by El Forum - 03-13-2009, 11:47 AM
Question about best practices for write anchors - by El Forum - 03-13-2009, 01:18 PM
Question about best practices for write anchors - by El Forum - 03-13-2009, 01:23 PM
Question about best practices for write anchors - by El Forum - 03-13-2009, 01:26 PM



Theme © iAndrew 2016 - Forum software by © MyBB