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

Profiler dont work when using Phalcon\Mvc\View\Simple #68

Open
mzf opened this issue May 3, 2017 · 0 comments
Open

Profiler dont work when using Phalcon\Mvc\View\Simple #68

mzf opened this issue May 3, 2017 · 0 comments

Comments

@mzf
Copy link

mzf commented May 3, 2017

I try render piece of my code with Phalcon\Mvc\View\Simple.
Like this

$view = new \Phalcon\Mvc\View\Simple();
$view->setDI($di);
$view->setViewsDir($viewsDir);
$view->registerEngines(static::registerEngines($view, $di));
$render = $view->render($path, $params);

and get error


Fatal error: Uncaught TypeError: Argument 2 passed to Fabfuel\Prophiler\Plugin\Phalcon\Mvc\ViewPlugin::beforeRenderView() must implement interface Phalcon\Mvc\ViewInterface, instance of Phalcon\Mvc\View\Simple 
given in Z:\OpenServer\domains\project\server\trunk\vendor\fabfuel\prophiler\src\Fabfuel\Prophiler\Plugin\Phalcon\Mvc\ViewPlugin.php:42 
Stack trace: 
#0 [internal function]: Fabfuel\Prophiler\Plugin\Phalcon\Mvc\ViewPlugin->beforeRenderView(Object(Phalcon\Events\Event), Object(Phalcon\Mvc\View\Simple), 'Z:\\OpenServer\\d...') 
#1 [internal function]: Phalcon\Events\Manager->fireQueue(Object(SplPriorityQueue), Object(Phalcon\Events\Event)) 
#2 [internal function]: Phalcon\Events\Manager->fire('view:beforeRend...', Object(Phalcon\Mvc\View\Simple), 'Z:\\OpenServer\\d...') 
#3 [internal function]: Phalcon\Mvc\View\Simple->_internalRender('user_groups/mod...', Array) 
#4 Z:\OpenServer\domains\project\server\trunk\app\core\Helpers\ViewHelper.php(60): Phalcon\Mvc\View\Simple->render('user_groups/mod...', Array) 
#5 Z:\OpenServer\ in Z:\OpenServer\domains\project\server\trunk\vendor\fabfuel\prophiler\src\Fabfuel\Prophiler\Plugin\Phalcon\Mvc\ViewPlugin.php on line 42
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

1 participant