I have a url that loads fonts as such:
/templatename/fonts/helvetica?weights=regular,bold,light
in php it will dynamically generate a CSS file with the appropriate font referencing.
We just recently moved over to to Phalcon and it broke. I'm trying to figure out how to tell the router to use the the font name as a named param but also use the standard param style. with the question marks.
this is what my router looks like right now:
...
"fonts"=>[
"pattern" => "/fonts/{file:[\w\W]}",
"route" => [
"controller" => "asset",
"action" => "fonts"
]
]
...
When I use the dispatcher loop, like this:
$params = $this->dispatcher->getParams()
The array does not show the weights param:
Array
(
[template] => templatename
[file] => helvetica
)
How can I get it to look like this without changing the URL structure?
Array
(
[template] => templatename
[file] => helvetica
[weights] => regular,bold,light
)