hi
i try to add newsletter form to my site
i've create new code/RegistrationForm.php like here http://doc.silverstripe.org/recipes:forms
also created RegistrationForm.ss in templates/includes only with this code
$Form
in layout puting <% include RegistrationForm %> but nothing, no form rendering
so how to render function from other classes which are not extends
example 1
class A extend B {
}
class B extend Page_Controller {
function Form() {
};
}
in A.ss $Form will be works
example 2
class A extends Page_Controller {
}
class B extends Page_Controller {
function Form() {
};
}
in A.ss $Form will not be works