Skip to content

xinxiandong/CloudPHP

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CloudPHP

a very lightweight php framework

Example:

<?php

class post extends Controller {
    public function show() {
        $pid =Get::number(0);
        $result = Z::$db->table('post')->where('pid=' . $pid)->findOne();
        Check::isEmpty($result);
        
        $this->setData(array('result' => $result));        
        $this->loadView('postshow');      
    }
}

About

CloudPHP : a very lightweight php framework

Resources

Stars

Watchers

Forks

Packages

No packages published