Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assets collection throws ('BadMethodCallException' with message 'Wrong number of parameters') #2485

Closed
afturner opened this issue May 29, 2014 · 2 comments

Comments

@afturner
Copy link

When following the exact code from the documentation, on the new Phalcon beta, when trying to add assets to a new collection it gives a, incorrect number of arguments exception.

Here is the exact error:

Fatal error: Uncaught exception 'BadMethodCallException' with message 'Wrong number of parameters' in /home/*******:*** Stack trace: #0 /home/*******(**): Phalcon\Assets\Collection->addJs('*****', true) #1 /home/*****.php(***): addAssets(Object(Phalcon\Assets\Manager), Array, Array, Array, '******') #2 [internal function]: ********Controller->****Action('******') #3 [internal function]: Phalcon\Dispatcher->dispatch() #4 /home/*************(**): Phalcon\Mvc\Application->handle() #5 {main} thrown in /home/**************** on line 48

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

@afturner afturner changed the title Assets collection gives invalid arguments error. Assets collection throws ('BadMethodCallException' with message 'Wrong number of parameters') May 29, 2014
@afturner
Copy link
Author

Adding a new resource as a Phalcon resource and using the add function works as expected.

@phalcon
Copy link
Collaborator

phalcon commented Nov 17, 2014

Could you please try again using latest 2.0.0?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants