Forums / Setup & design / include uri register.tpl problem
christian bencivenni
Saturday 17 November 2007 9:12:46 am
Hello to you all. I have this problem. I must include the register form of registr.tpl template in a personal template.I use the {include uri='design:user/register.tpl'} code inside my template but I receive this return error: "Unable to register new user"
Reading the register.tpl file I desume that the problem is born becouse the template engine cannot find the $content_attributes variable. Is correct? How I can rsolve?
In a previous problem with the basket.tpl template I resolved with: {def $basket=fetch( 'shop', 'basket' )} before the include formula. But what I must fetch now?Thanks.
Saturday 17 November 2007 9:20:29 am
Oh.the debug says:
Error: eZSys::serverVariable Nov 17 2007 18:19:13
Server variable 'REQUEST_URI' does not exist
Server variable 'SCRIPT_FILENAME' does not exist
Server variable 'DOCUMENT_ROOT' does not exist
Wednesday 21 November 2007 12:18:13 am
I think that the $content_attributes variable is a fetch of the User class attributes .Is it correct?
Wednesday 21 November 2007 1:59:22 am
Ok. i understand that it's a problem of $content_attributes variable. Simply (?) when I include the register.tpl I miss to create a new user object and fetch it's attributes.The question is: how can I create it?