Skip to content
/ uoke-core Public
forked from knowsee/uoke

Uoke PHP 7 Framework (Make with love)

Notifications You must be signed in to change notification settings

uoke/uoke-core

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

uoke 4

Hey! Uoke. This is php framework with php 7


Documents

Anywhere uoke create website is so fastest!

Install:

  • {website}/core/data need be create with 777(linux), everybody(windows).
  • Edit /core/Config/*.php config file to setting your site.
  • Make you new module in /core/Action/.

Create a module

First you need create module file like this e.g. Module Name: "Test" File name: Test.php File Dir: /core/Action/ File code:

<?php
namespace Action;
use Factory\Db, Uoke\Controller;
class Index extends Controller{
    public function __construct() {
    }
    public function Index() {
        var_dump(array('duing'));
    }
}

You maybe want to know, Why i need create function name is Index? Because in Config/app.php you can set default Action

$_config['defaultAction'] = array(
    'siteIndex' => array(
        'module' => '',
        'action' => '',
    ),
    'moduleIndex' => 'Index',
);

siteIndex is Default page in site

moduleIndex is Default page in Module page

Let's running! use http://yoursite/index.php/Test/Index

Releases

No releases published

Packages

No packages published

Languages

  • PHP 96.7%
  • Hack 2.6%
  • TSQL 0.7%