Pengaturan

Gambar

Lainnya

Tentang KASKUS

Pusat Bantuan

Hubungi Kami

KASKUS Plus

© 2024 KASKUS, PT Darta Media Indonesia. All rights reserved

adyoiAvatar border
TS
adyoi
Freedoms PHP Class ( Software Developer )
Freedoms is Simply and Powerful PHP Class

Join Me:

Gitlab: https://gitlab.com/adyoi/freedoms
Github: https://github.com/adyoi/freedoms

Spoiler for Frontend:

Spoiler for Backend:


LIVE DEMO

Frontend : http://freedoms.pe.hu

Code:
user : demo
pass : demo


Backend : http://freedoms.pe.hu/admin

Code:
user : admin
pass : admin


Directory Tree Structure

PHP Code:
Freedoms
        
|
        |-- 
app
        
|   |
        |   |-- 
assets
        
|   |   |
        |   |   |-- 
dist (Backend)
        |   |   |   |
        |   |   |   |-- 
css
        
|   |   |   |-- img
        
|   |   |   |-- js
        
|   |   |   
        |   |   |-- 
main (Frontend)
        |   |   |   |-- 
css
        
|   |   |   |-- fonts
        
|   |   |   |-- images
        
|   |   |   |-- js
        
|   |   |
        |   |   |-- 
plugins
        
|   |       |
        |   |       |-- (
JQuery etc.)
        |   |
        |   |-- 
libs
        
|   |   |
        |   |   |-- (
PHP Library etc.)
        |   |
        |   |-- public (
Controller)
        |   |   |
        |   |   |-- 
admin (Backend View and Menu)
        |   |   |   |
        |   |   |   |-- 
account
        
|   |   |   |-- dashboard
        
|   |   |   |-- user
        
|   |   |
        |   |   |-- 
index (Frontend View)
        |   |   
        |   |-- 
template
        
|
        |-- 
config
        
|-- engine 



System Schema

Code:
Frontend :
Start --> Error Handler --> Autoload --> Route --> Controller --> Template --> View
Backend :
Start --> Error Handler --> Autoload --> Route --> Controller --> Template --> Authorize --> View


Spoiler for Error Handler:


Controller Installation

PHP Code:
<?php

/* 
 *  Freedoms version 0.0.1
 */

namespace Freedoms
{
    class 
Index
    
{
        var 
$function = array("greets");

        public function 
__construct()
        {   
            
AutoLoad :: load('engines[backslash]Render');
        }

        public static function 
index()
        {
            
Render :: page('index',null);
        }

        public static function 
param ($arg)
        {   
            
print_r ($arg);
        }

        public static function 
greets ($msg)
        {
            echo 
$msg;
        }

    }
    if(!
defined('names')) exit('forbidden access');
}



Persembahanku untuk Indonesiaku emoticon-I Love Indonesia (S)
Polling
Poll ini sudah ditutup. - 1 suara
Menurut Agan ?
Menarik
0%
Biasa
100%
Diubah oleh adyoi 26-02-2017 08:06
nona212Avatar border
nona212 memberi reputasi
1
1.5K
8
GuestAvatar border
Tulis komentar menarik atau mention replykgpt untuk ngobrol seru
Urutan
Terbaru
Terlama
GuestAvatar border
Tulis komentar menarik atau mention replykgpt untuk ngobrol seru
Komunitas Pilihan