rendered paste body<?php// Affichage d'une entrée$app->route['byentry'] = new Uri(array( 'inputUri' => $app->base->path.'%year%/%month%/%slug%(/%action%)', 'vars' => array( 'year' => array('([0-9]{4})', date('Y')), 'month' => array('([0-9]{2})', date('m')), 'slug' => array('([a-z0-9\-_]+)', ''), 'action' => array('(view|add|edit|delete)', 'view') )));// Liste des entrées par date$app->route['bydate'] = new Uri(array( 'inputUri' => $app->base->path.'%year%/%month%', 'vars' => array( 'year' => array('([0-9]{4})', date('Y')), 'month' => array('([0-9]{2})', date('m')), )));// Liste des entrées par catégories$app->route['bycategory'] = new Uri(array( 'inputUri' => $app->base->path.'categories/%category%', 'vars' => array( 'category' => array('([a-z\-]+)', 'general') )));// Liste des entrées par auteurs$app->route['byauthor'] = new Uri(array( 'inputUri' => $app->base->path.'authors/%author%', 'vars' => array( 'author' => array('([a-zA-Z0-9\ \.]+)', '') )));// Autres pages$app->route['default'] = new Uri(array( 'inputUri' => $app->base->path.'(%page%(/%action%))', 'vars' => array( 'page' => array('(about|archive|contact|index|login)', 'index'), 'action' => array('(view|add|edit|delete|logout)', 'view') )));?>