Added ConfirmNewsletterSignup_member.ss as an example how to customise, added themedCSS requirements to controller

This commit is contained in:
Sean Harvey 2007-12-20 03:39:03 +00:00
parent d1c6825941
commit d971db30d0
2 changed files with 19 additions and 0 deletions

View File

@ -2,6 +2,17 @@
class ConfirmNewsletterSignup extends Controller {
/**
* Add theme CSS requirements to make this look controller look a bit prettier.
* If these aren't here, the page looks like a mess to users.
*/
function init() {
parent::init();
Requirements::themedCSS('layout');
Requirements::themedCSS('typography');
Requirements::themedCSS('form');
}
/**
* Action for signing up a member to a given group in NewsletterSignupForm.
* Used as mysite.com/confirm-subscription/member/123 (where 123 is a md5 hash to find the member)

View File

@ -0,0 +1,8 @@
<div id="Content">
<div class="typography">
<h2>Confirm newsletter signup</h2>
$Content
</div>
</div>