定制 geeknection/buuhvframework 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

geeknection/buuhvframework

Composer 安装命令:

composer require geeknection/buuhvframework

包简介

Easily create your PHP applications with BuuhV Framework

README 文档

README

Documentation

composer create-project geeknection/buuhvframework

Easily create your PHP applications with the BuuhV Framework

Folders Structure

app/views/pages - it has your views page. Example: home/index.html
app/views/components - it has your components page. Example: sidebar.html
app/views/layout - it has your design dependencies as css, js or image files

app/controllers/ - it has your app controllers. Example: home/index.php
app/models/ - it has your models of controllers. Example: home/index.php

texts/ - it has your language files. Example: texts/en-us.tx

How can I build my app?

In folder App you have controllers, models and views.
Pages are in views folder
Controllers are in controllers folder
Models are in models folder.

How to build a view?

In app folder create some like this: view-name/index.html
Then build page template inside it

How to build a route?

In your app folder open index.php.file and before Routes::notFound() write
"Routes::set('/your-route-name, function() {
//here you will get your view
View::build('view-name');
}"

How can I define css, js or image file?

Inside layout folder

How can I import path layout file?

In your view file use "echo App::layout ('file-path-in-folder');"

How can I define values in html file?

Inside your html file write some likes this: {{variableName}} When you are call View::build... You need to write View::build('view-name', array( 'variableName' => variable-value ));

How can I translate my application?

Lang::translate('text-slug');
create your file language inside texts folder. Example: texts/en-us.txt

How can I use rest service api?

When you do request to your server, use: yourdomain/api.php?c=controller-name-class&m=method-used

How can I create session ?

Session::set('session-name', 'session-value');

How can I load component html?

View::component('component-name');

How can I define values in component html ?

Inside your html file write some likes this: {{variableName}}
When you are call View::component... You need to write View::component('component-name', array(
'variableName' => variable-value
));

统计信息

  • 总下载量: 9
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 4
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-03-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固