Pre-Script: Thanks to David and Mike for previous help offers
---------------------------------
I just don't understand the routing enough at the moment to figure this out.
So en/English will be the default for this site, but if the locale is
missing from the URL, $ro->gen is still putting in a extra "/" which is
breaking the links.
Can I set "en" as a default somehow?
ROUTING.XML
<?xml version="1.0" encoding="UTF-8"?>
<configurations xmlns="http://agavi.org/agavi/1.0/config">
<configuration context="web">
<routes>
<route
pattern="^/({locale:[a-z]{2}(_[A-Z]{2})?})" stop="false" imply="true"
cut="true" locale="${locale}">
<ignores>
<ignore>locale</ignore>
</ignores>
</route>
<route name="company" pattern="^/Company"
module="%actions.default_module%" action="Company">
<route name=".executives"
pattern="^/Executives" action=".Executives" />
<route name=".contact" pattern="^/Contact"
action=".Contact" />
<!-- truncated -->
LINK GENERATION
<a href="<?php echo $ro->gen('company'); ?>"><?php echo
$tm->_('COMPANY','default.layout'); ?>
_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users