Asset Manager set target path

I have a path in a private directory that I want to recreate in a public path. Here is an example of what I mean:


I want to be able to create/publish, style.css in /public/assets/themes/default/css/style.css for public access. How can I achieve that with Asset Manager?

I have tried the following with no luck:

$di->set('assets', function() {
     $assets = new Phalcon\Assets\Manager([
      return $assets;

  // controller
$css = new \Phalcon\Assets\Resource\Css('/assets/style.css');
$this->assets->addResourceByType('css', $css);

// view


I have tried adding the \Phalcon\Assets\Filters\None to the collection but it still does not create the files in the target path and keeps telling me "Target path in invalid", the permissions and everything is correct, so I really don't know what I can do to fix this issue.