Is it posible to have a
<base href='myPageBase/' />
generated in the index.volt by using the default config? I would like to only set the base-tag once.
UPDATE solved it
I created a BaseController
<?php
use Phalcon\Mvc\Controller,
Phalcon\Tag;
class ControllerBase extends Controller
{
public function onConstruct(){
$this->view->baseTag = Tag::tagHtml("base",array("href" => $this->url->getBaseUri()));
}
}
and used it in volt like this:
...
<head>
{{ baseTag }}
</head>
...
UPDATE 2 - even easier
<base href="{{ url.getBaseUri() }}"/>