We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Assets Management Error

When i use this https://docs.phalcon.io/en/latest/reference/assets.html#minification-filtering

//Join all the resources in a single file
    ->join(true)

I get error

<b>Fatal error</b>:  Call to undefined method Phalcon\Assets\Manager::join()


2.1k

can you post the code? and which version are you using?

can you post the code? and which version are you using?

My Phalcon version 1.3.4 for Windows + version php 5.6

Code like this

$this->assets
  ->addJs('js/jquery.js')
  ->addJs('js/bootstrap.min.js')
  ->join(true);

If delete this row ->join(true) it works, but if add, i have the above error :(



2.1k
edited Jan '15
$this->assets
->collection("mycollection")
->addJs('js/jquery.js')
->addJs('js/bootstrap.min.js')
->join(true);