Hi evryone,
I woudlike to minify all js scripts (https://docs.phalcon.io/pl/latest/reference/assets.html) but I'dlike to add js file in views not in controllers. In my layout I use:
{{ assets
.collection("out")
.addJs('//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js', false, false)
.addJs('//ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js', false, false)
}}
but Phalcon\Assets\Collection doesn't have __toString() method so in console I have:
[Wed, 10 Dec 14 13:24:58 +0100][ERROR] Object of class Phalcon\Assets\Collection could not be converted to string | on line: 29 | in file: /home/****/_apps_common_frontend.volt.php | [4096]
When I use native php, evrythink work fine