Skip to content

Instantly share code, notes, and snippets.

@Menencia
Created September 8, 2012 19:25
Show Gist options
  • Save Menencia/3678920 to your computer and use it in GitHub Desktop.
Save Menencia/3678920 to your computer and use it in GitHub Desktop.
<?php
Route::set('project_add', 'project/add/<section>',
array(
'section' => '(link)',
))
->defaults(array(
'controller' => 'project',
'action' => 'add_{$section}',
));
// How to pass a variable in ->defaults() method ?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment