I am building application using mvc pattern. It is mailclient with bayes spam filltering and I have problem checking if the user properly connect to the mailserver.
Here is part of my controller :
Code: Select all
class MailboxController extends MailboxView {
function MailboxController (&$model,$postvars=null) {
MailboxView::__construct($model);
$this->header();
//print_r($_POST);
switch ($postvars) {
case 'login':
$this->inbox();
break;
default:
if ( empty ($postvars) ) {
$this->login();
} else {
$this->inbox();
}
break;
}
$this->footer();
}
}
?>
I hope u understand my post, I did't use english for couples of months so please forgive me any mistakes....
Any ideas how to handle this issue ?