Skip to content

Instantly share code, notes, and snippets.

@biakaveron
Created July 11, 2009 16:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save biakaveron/145295 to your computer and use it in GitHub Desktop.
Save biakaveron/145295 to your computer and use it in GitHub Desktop.
// bootstrap.php
Route::set('artist','(sales(/<month>(/<day>)))')
->defaults(array(
'controller' => 'sales',
'action' => 'month',
));
// classes/sales.php
class Controller_Sales extends Controller {
public function action_month() {
echo $this->request->param('month', 'month not set');
echo $this->request->param('day', 'day not set');
}
}
// classes/contacts.php
class Controller_Contacts extends Controller {
public function action_profile() {
echo Request::factory('sales/july')->execute();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment