-
Notifications
You must be signed in to change notification settings - Fork 24
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
Loading the Component on the Fly #4
Comments
You're right in that it's not presently being used anywhere, but removing it breaks E_STRICT compatibility for PHP 5.4. Running tests without it (on PHP 5.4.x) result in an exception with message: Declaration of StripeComponent::startup() should be compatible with Component::startup(Controller $controller) |
so if I were going to load it on the fly I'd do $this->Stripe = $this->Components->load('Stripe.Stripe'); but what would I sent from within the Controller to pass correctly? Thanks in advance. I'm using the component for a multi-account environment so loading it in the $components isn't viable for my application. |
Have you tried |
i passed 'Account' which is the name of my controller and it said it On Fri, Nov 1, 2013 at 8:31 AM, Gregory Gaskill notifications@github.comwrote:
Chris Pierce http://www.facebook.com/cpierce http://www.twitter.com/chrislpierce |
You can also try doing:
If you are in a controller context. Otherwise, a simple
I'd +1 closing this ticket. |
I'm trying to load the Component on the fly but it is requesting that the controller be passed in startup(). Why? It isn't being used anywhere.
The text was updated successfully, but these errors were encountered: