brunnofoggia/chillrender 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

brunnofoggia/chillrender

Composer 安装命令:

composer require brunnofoggia/chillrender

包简介

Utility to render views quick and easy

README 文档

README

Minimum PHP Version License

Utility to render views quick and easy

usage

  1. Implement it into your class

     class Test {
         use \ChillRender;
     }
    
  2. Set your paths

     protected $attrDefaults = [
         'layout' => 'views/layout', // file extension is .php by default, but you can send yours
         'viewPath' => 'views/'
     ];
    
  3. Rendering

     // Just rendering
     $this->render('index');
     // Sending data to view
     $this->render('views/index', ['mydata' => $data]);
     // Rendering with other layout
     $this->render('views/index', [], 'views/other_layout');
     // Rendering without layout
     $this->render('views/index', [], false);
     // Rendering layout with custom content
     $this->renderLayout(['content' => $custom]);
     // Rendering a partial view
     $this->renderPartial('views/sidebar', ['mydata' => $data]);
    
  • Layout will not be rendered for ajax requests

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-01-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固