Back
A Nag Template
Nag Preferences
Registry API
Forward


The Registry takes care of loading user preferences for an app when you push that application onto the app stack. Using a preference is simple:

<?php

/* Get the full, sorted task list. */
$tasks Nag::listTasks(TASK_ANY$prefs->getValue('sortby'),
                        
$prefs->getValue('sortdir'));

?>