Permalink
Browse files

callbacks written as $this->method

  • Loading branch information...
dg committed Jul 19, 2012
1 parent 8a10fae commit 1fadacf45974aa8f8fd12cc0ace8b9c740f432b1
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/presenters/SignPresenter.php
@@ -28,7 +28,7 @@ protected function createComponentSignInForm()
$form->addSubmit('send', 'Sign in');
- $form->onSuccess[] = callback($this, 'signInFormSubmitted');
+ $form->onSuccess[] = $this->signInFormSubmitted;
return $form;
}

0 comments on commit 1fadacf

Please sign in to comment.