Symfony: blank page after executing include_component()
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]
精彩评论