Skip to content

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

Open
mzf wants to merge 1 commit into
fabfuel:developfrom
mzf:develop
Open

fix TypeError when using \Phalcon\Mvc\View\Simple::render#69
mzf wants to merge 1 commit into
fabfuel:developfrom
mzf:develop

Conversation

@mzf

@mzf mzf commented May 3, 2017

Copy link
Copy Markdown

#68

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
Copy Markdown
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
Copy Markdown
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

fabfuel commented May 16, 2017

Copy link
Copy Markdown
Owner

Looks like the branch is outdated. Please update with develop

@sergeyklay

Copy link
Copy Markdown

@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.

3 participants