Tamam ben, ben bile MVS kendisi ne olduğunu bilmiyorum ben, uzakta burada benim öz İtiyorum benim kendi MVC proje createing düşünüyorum
<?php
class init
{
function __construct()
{
$this->enviroment();
$this->start();
}
function enviroment()
{
/* Required Classes */
require_once( ROOTPATH . BOOTSTRAP . REDENGINE . '/class.debug.php');
require_once( ROOTPATH . BOOTSTRAP . REDENGINE . '/class.theme.php');
require_once( ROOTPATH . BOOTSTRAP . REDENGINE . '/class.url.php');
require_once( ROOTPATH . BOOTSTRAP . REDENGINE . '/language/class.lang.php');
require_once( ROOTPATH . BOOTSTRAP . REDENGINE . '/class.sessions.php');
}
function start()
{
/* Start Classes */
$uSys = new Urlsystem;
$fragments = $uSys->getFragments();
$tSys = new ThemeSystem;
$lSys = new LanguageSystem;
$sSys = new Sessions;
/* defineing APPVIEWS & APPCONTROLLER */
define( 'APPVIEWS', '/appviews' );
define( 'APPCONTROLLER', '/appcontroller' );
if ( empty($fragments) )
{
require_once( ROOTPATH . APPCONTROLLER . '/app.home.php'); /* default app controller page */
require_once( ROOTPATH . APPVIEWS . '/view.home.php'); /* default app views page */
}
if ( !empty($fragments) )
{
// Start ENGINE
if ( !file_exists(ROOTPATH . APPCONTROLLER . '/app' . $fragments . '.php') &&
!file_exists(ROOTPATH . APPVIEWS . '/view' . $fragments. '.php')
) {
if ( file_exists(ROOTPATH . APPCONTROLLER . '/app.404.php') &&
file_exists(ROOTPATH . APPVIEWS . '/view.404.php')
) {
require ROOTPATH . APPCONTROLLER . '/app.404.php';
require ROOTPATH . APPVIEWS . '/view.404.php';
}
else {
echo "NO 404 APP || VIEW";
}
}
if ( file_exists(ROOTPATH . APPCONTROLLER . '/app' . $fragments . '.php') )
{
require ROOTPATH . APPCONTROLLER . '/app' . $fragments . '.php'; // load application
if ( file_exists(ROOTPATH . APPVIEWS . '/view' . $fragments . '.php') ) {
require ROOTPATH . APPVIEWS . '/view' . $fragments . '.php';// load view
}
}
// End ENGINE
}
}
} ?>
Benim ön denetleyicisi gördüğünüz gibi Tamam, bu yüzden ben sadece ben neredeyse benim projeyi bitirdikten sonra benim ben www.someurl.com/?$getuser veya www.someurl.com/myname yapmanız gereken especialy, başarısız fark ya da bu başarısız biliyorum kullanıcı.
Biz gerçekten PHP MVC gerek yok neyse benim sorum?
Ben, vb facebook bakıyorum
Onlar hala ?this=blabla yüzden MVC değil olsun, bu doğru kullanmak? Neyse ben hala facebook www.facebook.com/myname onsuz nasıl yaptığını aklım karıştı. (Htaccess?)
Onlar MVC kullanmak istemiyorsanız o zaman biz gerçekten ihtiyacım var?
Note :
Ben MVC kullandığınızda ilgili birçok konuyu okudum, ama ben okuyabilen bir yorum bırakın lütfen varsa, benim sorun birini bulamadım :)
Çok teşekkürler.