Skip to content

Instantly share code, notes, and snippets.

@rich97
Created April 3, 2011 13:11
Show Gist options
  • Save rich97/900418 to your computer and use it in GitHub Desktop.
Save rich97/900418 to your computer and use it in GitHub Desktop.
<?php
namespace li3_cms\action;
class Controller extends \lithium\action\Controller {
}
<?php
use \lithium\net\http\Router;
Router::connect(
'/admin',
array('library' => 'li3_cms', 'controller' => 'dashboard', 'action' => 'index'),
array('persist' => array('library', 'controller'))
);
Router::connect(
'/admin/{:controller}',
array('library' => 'li3_cms', 'action' => 'index'),
array('persist' => array('library'))
);
Router::connect(
'/admin/{:controller}/{:action}',
array('library' => 'li3_cms'),
array('persist' => array('library'))
);
Router::connect(
'/admin/{:controller}/{:action}/{:args}',
array('library' => 'li3_cms'),
array('persist' => array('library'))
);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment