HapyMan
Full Stack Developer
Kullanıcı
-
Üyelik
14.05.2016
-
Yaş/Cinsiyet
32 / E
-
Meslek
What do you do exactly ?
-
Konum
İstanbul Avrupa
-
Ad Soyad
T** T**
-
Mesajlar
561
-
Beğeniler
171 / 208
-
Ticaret
0, (%0)
# static veriable's [ directory ]
define('_base', realpath('.')); #[ system root ]
define('_condir', _base.'/app/controller'); //@todo:: [ app/controller ]
define('_public', _base.'/public'); //@todo:: [ _base/public ]
define('_inc', _base.'/public/include'); //@todo:: [ _base/public/include ] ( file catch )
# Safe controller include !
function controller($name){
return _condir . '/' . $name . '.php';
};
# safe UI include !
function view($name){
return _public . '/' . $name . '.php';
};
1 kişi bu mesajı beğendi.