All Projects → igogo5yo → yii2-render-many

igogo5yo / yii2-render-many

Licence: MIT license
Trait for Yii Framework 2

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to yii2-render-many

behavior-trait
Allows handling events via inline declared methods, which can be added by traits
Stars: ✭ 18 (+28.57%)
Mutual labels:  yii2, trait
DuBLF DuBlast
Quick Playblast tool for Blender
Stars: ✭ 18 (+28.57%)
Mutual labels:  rendering, render
safemd
Safety first markdown rendering
Stars: ✭ 77 (+450%)
Mutual labels:  rendering, render
Opencue
A render management system you can deploy for visual effects and animation productions.
Stars: ✭ 578 (+4028.57%)
Mutual labels:  rendering, render
Cgru
CGRU - AFANASY
Stars: ✭ 197 (+1307.14%)
Mutual labels:  rendering, render
Bitwrk
Bitcoin-fueled Peer-to-Peer Blender Rendering (and more)
Stars: ✭ 114 (+714.29%)
Mutual labels:  rendering, render
Lighthouse2
Lighthouse 2 framework for real-time ray tracing
Stars: ✭ 542 (+3771.43%)
Mutual labels:  rendering, render
Picasso
Picasso is a high quality 2D vector graphic rendering library. It support path , matrix , gradient , pattern , image and truetype font.
Stars: ✭ 205 (+1364.29%)
Mutual labels:  rendering, render
yii2-db
Database extensions for Yii 2.0 Framework 📦
Stars: ✭ 19 (+35.71%)
Mutual labels:  yii2, trait
restaurant-website
Restaurant Landing Page
Stars: ✭ 134 (+857.14%)
Mutual labels:  landing-page
Real-Time-Rendering-4th-Bibliography-Collection
Real-Time Rendering 4th (RTR4) 参考文献合集典藏 | Collection of <Real-Time Rendering 4th (RTR4)> Bibliography / Reference
Stars: ✭ 2,806 (+19942.86%)
Mutual labels:  rendering
glisph
Glyph rendering engine using OpenGL shading language for Common Lisp.
Stars: ✭ 32 (+128.57%)
Mutual labels:  rendering
angular-yii2-model
AngularJS 1.x service to consume Yii2 RESTful API framework
Stars: ✭ 13 (-7.14%)
Mutual labels:  yii2
yii2-inertia
The Yii 2 server-side adapter for Inertia.js.
Stars: ✭ 52 (+271.43%)
Mutual labels:  yii2
Voxel Cone Tracing
Converting vertex meshes to voxel data and visualizing using VCT
Stars: ✭ 74 (+428.57%)
Mutual labels:  rendering
blade
🏃 A library for using Laravel Blade templates in WordPlate.
Stars: ✭ 28 (+100%)
Mutual labels:  render
osgw
Real-Time Ocean Animation with Gerstner Waves
Stars: ✭ 51 (+264.29%)
Mutual labels:  rendering
RadeonProRenderUSD
This plug-in allows GPU or CPU accelerated viewport rendering on all OpenCL 1.2 hardware for the open source USD and Hydra system. You can build this plug-in as a USDView plug-in or a Houdini plug-in.
Stars: ✭ 161 (+1050%)
Mutual labels:  rendering
SceneryView
🏜 The scenery is unique here~ 自定义View,圆、三角形、云朵,平移及旋转动画。
Stars: ✭ 30 (+114.29%)
Mutual labels:  views
yii2-notifications
This Yii2 extension provides support for sending notifications across a variety of delivery channels, including mail, SMS, Slack, Telegram etc.
Stars: ✭ 62 (+342.86%)
Mutual labels:  yii2

RenderMany extension for Yii Framework 2

Latest Stable Version Total Downloads License Dependency Status

Yii Framework 2 extension for render many views in one action (best solution for landing pages or pages with many content blocks)

Please submit issue reports and pull requests to the main repository. For license information check the LICENSE-file.

Installation

The preferred way to install this extension is through composer.

Either run

php composer require --prefer-dist igogo5yo/yii2-render-many

or add

"igogo5yo/yii2-render-many": ">=1.0"

to your composer.json file

Example

use trait

...
class MyController extends Controller {
    use igogo5yo\rendermany\RenderMany;
    
    public function actionIndex()
    {
        
        return $this->renderMany([
            'sliderSection' => [
                'slides' => ['img1.jpg', 'img3.jpg', 'img3.jpg']
            ],
            'contentSection' => [
                'title' => 'My post',
                'description' => 'Lorem Ipsum is simply dummy text of the printing and typesetting industry...',
            ],
            'partnersSection' => [
                'partners' => [
                    ['link' => '#', 'name' => 'partner 1'],
                    ['link' => '#', 'name' => 'partner 2'],
                    ['link' => '#', 'name' => 'partner 3'],
                ]
            ],
            'footer' //without passing variables
        ]);
    }
}

or extend your controller

class MyController extends igogo5yo\rendermany\Controller {
    public function actionIndex()
    {
        
        return $this->renderMany([
            'sliderSection' => [
                'slides' => ['img1.jpg', 'img3.jpg', 'img3.jpg']
            ],
            'contentSection' => [
                'title' => 'My post',
                'description' => 'Lorem Ipsum is simply dummy text of the printing and typesetting industry...',
            ],
            'partnersSection' => [
                'partners' => [
                    ['link' => '#', 'name' => 'partner 1'],
                    ['link' => '#', 'name' => 'partner 2'],
                    ['link' => '#', 'name' => 'partner 3'],
                ]
            ],
            'footer' //without passing variables
        ]);
    }
}

also you can use partial rendering

    public function actionIndex()
    {
        
        return $this->renderMany([
            'sliderSection' => [
                'slides' => ['img1.jpg', 'img3.jpg', 'img3.jpg']
            ],
            'wrapper' => [
                'innerRenders' => $this->renderManyPartial([
                    'innerView1' => [
                        'param1' => 'some data 1'.
                        'param2' => 'some data 2'
                    ],
                    'innerView2' //without passing variables
                ])
            ],
            'footer' //without passing variables
        ]);
    }
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].