How to get Volt include working when using a view base path?

After following the View zep code I tried using the view setBasePath but then I found that the Volt include directive doesn't use the base path and so it tries to use a relative directory. Has anyone worked this out or is it incomplete behavior?

[edit] Fixed terrible Engwish

I only use serViewDir() in my module services definitions

$di['view'] = function () {
    $view = new \Phalcon\Mvc\View();
    $view->setViewsDir(__DIR__ . '/../View/scripts/')
        ->registerEngines(array(
            ".volt" => 'voltService'
        ));
    return $view;
};

I don't have any problem



57.4k

I don't have any problem

I don't have problems either except when I tried to set the base path. It appears to be a worthless setting.

edited 15d ago

seems to have a small insenda on_engineRender() to put together the name of the view directory



57.4k

Yeah and then it doesn't feed that down lower into the guts (probably the C parts) of Volt. Volt and PHQL have an incredible number of rough edges. So I was wondering what the point of the base path was but I added it since it is just another thing that might be good and more advanced. Then it turns out its not referenced anywhere else in Phalcon, including the essential parts of View.