Skip to content

Instantly share code, notes, and snippets.

@biakaveron
Created July 11, 2009 16:02
Show Gist options
  • 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