开发者

Symfony: blank page after executing include_component()

开发者 https://www.devze.com 2022-12-27 01:10 出处:网络
i have just this line in a template: <?php include_component(\'sfGuardRegister\', \'register\') ?>

i have just this line in a template:

<?php include_component('sfGuardRegister', 'register') ?>

when it's executed i get a blank page. I have debugged include_component() and the flow processing is not entering inside of it, i mean:

function include_component($moduleName, $componentName, $vars = array())
{

  die("enter");
  e开发者_开发技巧cho get_component($moduleName, $componentName, $vars);
}

Any idea?


Have you loaded PartialHelper?

sfContext::getInstance()->getConfiguration()->loadHelper('Partial');


If you are in production environment (index.php) blank pages will show on error. Change to development environment (frontend_dev.php) and it will tell you why there is a problem.

My bet is you haven't enabled sfGuardRegister in setting.yml:

all:
  enabled_modules:      [.... , sfGuardRegister]
0

精彩评论

暂无评论...
验证码 换一张
取 消