Skip to content

Instantly share code, notes, and snippets.

@lorenzo
Last active October 29, 2015 08:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save lorenzo/4f9fc0f8235a3f0ad188 to your computer and use it in GitHub Desktop.
Save lorenzo/4f9fc0f8235a3f0ad188 to your computer and use it in GitHub Desktop.
<?php
$this->Html->link($artist->name, ['action' => 'view', $artis->id, 'name' => $artist->name]);
<?php
...
Router::scope('/artist', ['controller' => 'Artists'], function ($routes) {
$routes->connect('/:id/:name', ['action' => 'view'], ['pass' => ['id']]);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment