"Admin paneli modülü" Uygulanması

0 Cevap php

Let's suppose that we have poor MVC framework without modules support. Our aim is to implement admin panel with some functionality. Url for all admin panel features will start with /admin (/admin/add_user, /admin/remove_user) etc. As we don't have modules, so we have to create Admin controller (yes, this controller probably will be extra large).

<?
class AdminController extends Controller {

    public function addUser() {
        ...
    }

    public function removeUser() {
        ...
    }

}
?>

Nasıl herkes tarafından erişilen bu yöntemleri koruyabilirim? . Htaccessing / admin klasörü iyi bir fikir değildir, sanırım.

Teşekkür ederim.

0 Cevap