POST [ id ]) gt; 0)
{
$ this- gt; model- gt; _delete_pupil (intval ($ _ POST [ id ]));
} else
{ error raquo ;;
}
}
}
Файл: index.php
lt;? phpIndex extends controller
{__ construct ()
{:: __ construct ();
} index ()
{
$ this- gt; view- gt; render ( main/site_header );
$ this- gt; view- gt; render ( main/site_body );
$ this- gt; view- gt; render ( main/site_footer );
}
}
Файл: login.php
lt;? phplogin extends controller
{__ construct ()
{:: __ construct ();
} index ()
{(session_id () == )
{_ start ();
}
$ this- gt; view- gt; render ( login/index raquo ;, TRUE);
} run ()
{
$ this- gt; model- gt; run ();
} logout ()
{( auth raquo ;, admin raquo ;, time (), / raquo ;, DOMAIN, FALSE, TRUE); (session_id () == )
{_ start ();
}
$ _ SESSION [ loggedInadmin ]=FALSE; _destroy (); ( location: raquo ;. URL); ();
}
}