F3 (Fat-Free PHP framework) ve buna MVC / OOP yapısını ekleyerek

0 Cevap php

Bu soru F3 ben küçük web siteleri ve / veya bloglar için uygun bir basit, hızlı ve güvenli bir çerçeve arayan tökezledi, bunun üzerine (Php Yağsız framework) açısından olduğunu. Benim için önemli olan çerçeve bazı ACL çeşit ve basitlik var idi. Eğer herhangi bir iyi alternatifler biliyorsanız, ben bütün kulaklar değilim. Bu arada, onunla deneyime sahip olanlar için F3 ile ilgili bir soru:

Is it possible to have a decent OOP MVC structure with F3? Since routes like F3::route('GET /',':indexController|home'); do not work, how would one implement a proper MVC structure? I know I can set the home method to static and then do F3::route('GET /','indexController::home');, but this seems like unnecessary complication and overkill, and ignores the construct method, which I need to set layout for each controller separately. What I would like to have in my index.php file are only the routes to the various controllers and actions, the rest of the logic will be handled in these controllers. What is the best way to approach this?

Çok teşekkürler

Düzenleme: Ben de Yii bazı görüş duymak istiyorum, ben PHPFrameworks.com oldukça yüksek sıralamaya bakın

0 Cevap