mercredi 22 octobre 2014

load userDefinedForm in costum template Silverstripe


Vote count:

0




Hi all I have little problem on Silverstripe 3.1 I am trying to pull out Form from UserDefinedForm module but no success maybe some one had that problem?


My controller function:



public function getContactPageForm(){
$record = DataObject::get_one("UserDefinedForm", "URLSegment = 'contactpageform'");
$results = new UserDefinedForm_Controller($record);
return $results;
}


My template:



<% if getContactPageForm %>
<% loop getContactPageForm %>
$Form
<% end_loop %>
<% end_of %>


PLZ HELP



asked 35 secs ago







load userDefinedForm in costum template Silverstripe

Aucun commentaire:

Enregistrer un commentaire