PHP code example of zhanshop / kernel
1. Go to this page and download the library: Download zhanshop/kernel library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
zhanshop / kernel example snippets
namespace app\model;
use kernel\Model;
class Abc extends Model
{
// 设置当前模型的对应数据表
protected $table = '对应的表名';
// 设置当前模型的数据库连接
protected $connection = '连接配置名称';
protected $pk = '主键id';