Statusmessages using atkFeedback
free free ringtones hydrocodone online tramadol online cheap ambien mtv ringtones motorola ringtones funny ringtones free music ringtones free cool ringtones fioricet online free real ringtones lorazepam cheap soma cheap clomid but clonazepam paxil online cheap lisinopril samsung ringtones sonyericsson ringtones phentermine online alltel ringtones free sprint ringtones clonazepam online buy didrex ultram online free verizon ringtones cheap celexa but norco diethylpropion online cheap tenuate verizon ringtones lipitor online buy diazepam free verizon ringtones adipex online meridia online samsung ringtones cingular ringtones online clomid cheap lisinopril cheap carisoprodol cheap paxil free ericsson ringtones mono ringtones cheap albuterol free ericsson ringtones cheap ambien cheap levitra didrex online midi ringtones clomid online lipitor online free sagem ringtones meridia online free sony ringtones cheap valium clomid online hoodia online music ringtones cheap hydrocodone cheap adipex hgh online cheap hgh cheap levitra tracfone ringtones free sony ringtones propecia online vicodin online soma online verizon ringtones meridia online order vicodin free verizon ringtones alprazolam online nokia ringtones free qwest ringtones sharp ringtones polyphonic ringtones viagra online cheap sildenafil didrex online wellbutrin cyclobenzaprine online free funny ringtones cheap rivotril paxil online sharp ringtones free sagem ringtones xenical online cheap hydrocodone lortab online phentermine online order lorazepam free polyphonic ringtones xenical online buy wellbutrin but ultracet paxil online ultracet online free jazz ringtones alprazolam online free mono ringtones online vicodin albuterol online free funny ringtones free ringtones cheap pharmacy online nexium online vigrx online ativan online free polyphonic ringtones flexeril punk ringtones midi ringtones but ultram fioricet online tracfone ringtones cheap hydrocodone sprint ringtones cheap meridia valium online phentermine online vicodin online cingular ringtones wellbutrin online cheap adipex midi ringtones sildenafil online sagem ringtones cheap flexeril free ringtones real ringtones qwest ringtones cialis online ericsson ringtones albuterol online phentermine online real ringtones cheap lipitor funny ringtones ativan online free qwest ringtones free tracfone ringtones cheap levitra mp3 ringtones free real ringtones cheap phentermine punk ringtones free cingular ringtones music ringtones sony ericsson ringtones diazepam online buy lortab wwe ringtones samsung ringtones cyclobenzaprine online free sony ringtones cheap ativan valium online cialis online cheap fioricet adipex online free sony ringtones free funny ringtones xenical online tramadol online free tracfone ringtones alltel ringtones free nokia ringtones tramadol online carisoprodol online cheap wellbutrin hgh online viagra online carisoprodol online vigrx online free sonyericsson ringtones sagem ringtones tramadol online mtv ringtones mono ringtones free wwe ringtones but valium hydrocodone online levitra free music ringtones free sharp ringtones motorola ringtones cheap wellbutrin cheap diethylpropion cheap zoloft free punk ringtones punk ringtones cheap fioricet jazz ringtones norco online midi ringtones buy alprazolam celexa online soma online
|
ATK Howto: Statusmessages using atkFeedback
|
Default feedback
If you have the need to disclose a message after an action (like save or cancel) and easy way to accomplish this is to use the setFeedback.
The following triggers the update_success message to disclose, you can also add additional information which is discloses below the normal message.
//enable feedback from post or pre Update or Add
$this->setFeedback("update", ACTION_SUCCESS);
The actions you can use are update, save, delete, import. The status values are ACTION_SUCCESS, ACTION_FAILED, ACTION_CANCELLED.
Custom feedback
If you need to add custom feedbacklogic, such as a constructed message, use the following:
function feedbackUrl ($action, $status, $record="", $message="")
{
// create a hyper link to goto the account edit page
$xxx = href(dispatch_url("accounts.account", "edit",
array('atkselector'=>'account.id='.$this->v_accountID )),
"Edit Record", SESSION_DEFAULT );
$message = "To directly edit Account press this link ".$xxx;
return atkNode::feedbackUrl ($action, $status, $record, $message);
}
You can change the default message for all nodes by adding it to your language file, here are the list of feedback message tags:
"feedback_delete_cancelled", "feedback_delete_failed", "feedback_delete_success" "feedback_import_failed", "feedback_save_cancelled", "feedback_save_failed" "feedback_save_success", "feedback_update_cancelled", "feedback_update_failed" "feedback_update_success"
Remember you can override an individule nodes value by appending the node name to the front of the tag, i.e. "<nodename>_feedback_update_success".
Examples:
- "feedback_update_success" => "Record has been successfully changed." // all nodes in module
- "preaccount_feedback_update_success" => "An account has been created." // override for preaccount