Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?xml version="1.0" encoding="UTF-8"?>
<config>
<routes>
<default>
<route>/:locale/:module/:controller/:action/*</route>
<defaults>
<locale />
<module>default</module>
<controller>index</controller>
<action>index</action>
</defaults>
<reqs>
<locale>.*</locale>
<module>.*</module>
<controller>.*</controller>
<action>.*</action>
</reqs>
</default>
<blog_authors_id>
<route>/:locale/blog/authors/:id</route>
<defaults>
<locale />
<module>blog</module>
<controller>authors</controller>
<action>index</action>
<id />
</defaults>
<reqs>
<locale>.*</locale>
<module>.*</module>
<controller>.*</controller>
<action>.*</action>
<id>.*</id>
</reqs>
</blog_authors_id>
<blog_tags_id>
<route>/:locale/blog/tags/:id</route>
<defaults>
<locale />
<module>blog</module>
<controller>tags</controller>
<action>index</action>
<id />
</defaults>
<reqs>
<locale>.*</locale>
<module>.*</module>
<controller>.*</controller>
<action>.*</action>
<id>.*</id>
</reqs>
</blog_tags_id>
<blog_archive_slug>
<route>/:locale/blog/:slug</route>
<defaults>
<locale />
<module>blog</module>
<controller>archive</controller>
<action>index</action>
<slug />
</defaults>
<reqs>
<locale>.*</locale>
<module>.*</module>
<controller>.*</controller>
<action>.*</action>
<slug>.*</slug>
</reqs>
</blog_archive_slug>
<newsletter_archive_id>
<route>/:locale/newsletter/archive/:id</route>
<defaults>
<locale />
<module>newsletter</module>
<controller>archive</controller>
<action>index</action>
<id />
</defaults>
<reqs>
<locale>.*</locale>
<module>.*</module>
<controller>.*</controller>
<action>.*</action>
<id>.*</id>
</reqs>
</newsletter_archive_id>
<blog_archive_not_slug>
<route>/:locale/blog/:controller</route>
<defaults>
<locale />
<module>blog</module>
<controller />
<action>index</action>
</defaults>
<reqs>
<locale>.*</locale>
<module>.*</module>
<controller>(tags|authors|archive|feed)</controller>
<action>.*</action>
</reqs>
</blog_archive_not_slug>
<blog_index>
<route>/:locale/blog</route>
<defaults>
<locale />
<module>blog</module>
<controller>index</controller>
<action>index</action>
</defaults>
</blog_index>
</routes>
</config>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment