cphalcon icon indicating copy to clipboard operation
cphalcon copied to clipboard

[Critical BUG] [Phalcon 1.3.4] [PHP 5.4+] error in asset manager's collection output

Open samuraee opened this issue 12 years ago • 3 comments

Problem occurred after: 6809e1b5f7dc24139f4c6cc612c66f8335fd9d7b It workes correctly at: 1203c8a7b7496128cfc91325c8376a4c2c44c8e9

        $assetsManager = new Phalcon\Assets\Manager();

        $assetsManager->collection('css')
            ->addCss( 'css/bootstrap.css')
            ->setTargetPath($config->assets->dir . 'styles.css')
            ->setTargetUri('assets/styles.css')
            ->addFilter(new Phalcon\Assets\Filters\Cssmin())
            ->join(ENV == 'production');

        $di->set('assets', $assetsManager);
<?php echo $this->assets->outputCss('css')?>

The collection's output concatinated output path by added CSS or JS files like: styles.csscss/bootstrap.css

Warning: Phalcon\Assets\Manager::output(/home/aboozar/www/skelet/public/assets/styles.csscss/bootstrap.css): failed to open stream: No such file or directory in /home/aboozar/www//skelet/cache/volt/_home_aboozar_www_skelet_app_modules_site_views_index.phtml.php on line 12

Please fix it. I had to switch back to 1203c8a7b7496128cfc91325c8376a4c2c44c8e9 temporarily.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

samuraee avatar Nov 27 '14 13:11 samuraee

Thanks, I reverted to this commit and it works fine too. Hope to see the fix soon.

longthanhtran avatar Nov 28 '14 04:11 longthanhtran

this affects the 2.0? seems to work fine just to confirm

ghost avatar Nov 28 '14 08:11 ghost

@sergeyklay ?

dzubchik avatar Mar 03 '16 22:03 dzubchik