I made routing pattern as following:
$router->add('/album/view/{slug}-:int', array(
'controller' => 'album',
'action' => 'view',
'id' => 2,))->setName('album-view');
But it didnt work, so I changed the pattern to:
$router->add('/album/view/{slug}/:int', array(
'controller' => 'album',
'action' => 'view',
'id' => 2,))->setName('album-view');
And it worked perfectly!
So how to make routing pattern '/album/view/{slug}-:int'
in Phalcon router? Thank for your help!