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

fix TypeError when using \Phalcon\Mvc\View\Simple::render #69

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

mzf
Copy link

@mzf mzf commented May 3, 2017

#68

@@ -42,9 +42,11 @@ class ViewPlugin extends PluginAbstract implements ViewPluginInterface
public function beforeRenderView(Event $event, ViewInterface $view)
{
$name = get_class($event->getSource()) . '::render: ' . basename($view->getActiveRenderPath());
$isViewSimpler = stripos(get_class($view), 'simple') !== false;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why isViewSimpler (with an "r") instead of isViewSimple? Typo?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And why don't you check the class via instanceof?

@fabfuel
Copy link
Owner

fabfuel commented May 16, 2017

Looks like the branch is outdated. Please update with develop

@sergeyklay
Copy link

@mzf Could you please rebase?

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

Successfully merging this pull request may close these issues.

None yet

3 participants