{"id":21473217,"url":"https://github.com/igogo5yo/yii2-render-many","last_synced_at":"2025-10-09T13:38:13.386Z","repository":{"id":56989405,"uuid":"47541461","full_name":"igogo5yo/yii2-render-many","owner":"igogo5yo","description":"Trait for Yii Framework 2","archived":false,"fork":false,"pushed_at":"2016-07-24T15:43:04.000Z","size":15,"stargazers_count":13,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-15T15:41:50.999Z","etag":null,"topics":["landing-page","many","render","rendering","trait","views","yii2"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/igogo5yo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-07T09:11:55.000Z","updated_at":"2023-05-31T16:46:13.000Z","dependencies_parsed_at":"2022-08-21T10:10:17.608Z","dependency_job_id":null,"html_url":"https://github.com/igogo5yo/yii2-render-many","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/igogo5yo/yii2-render-many","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igogo5yo%2Fyii2-render-many","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igogo5yo%2Fyii2-render-many/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igogo5yo%2Fyii2-render-many/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igogo5yo%2Fyii2-render-many/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/igogo5yo","download_url":"https://codeload.github.com/igogo5yo/yii2-render-many/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igogo5yo%2Fyii2-render-many/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001489,"owners_count":26083102,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["landing-page","many","render","rendering","trait","views","yii2"],"created_at":"2024-11-23T10:15:42.475Z","updated_at":"2025-10-09T13:38:13.347Z","avatar_url":"https://github.com/igogo5yo.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RenderMany extension for Yii Framework 2\n\n[![Latest Stable Version](https://poser.pugx.org/igogo5yo/yii2-render-many/v/stable)](https://packagist.org/packages/igogo5yo/yii2-render-many) [![Total Downloads](https://poser.pugx.org/igogo5yo/yii2-render-many/downloads)](https://packagist.org/packages/igogo5yo/yii2-render-many) [![License](https://poser.pugx.org/igogo5yo/yii2-render-many/license)](https://packagist.org/packages/igogo5yo/yii2-render-many) [![Dependency Status](https://www.versioneye.com/user/projects/56655361f376cc003d000a91/badge.svg?style=flat)](https://www.versioneye.com/user/projects/56655361f376cc003d000a91)\n\nYii Framework 2 extension for render many views in one action (best solution for landing pages or pages with many content blocks)\n\nPlease submit issue reports and pull requests to the main repository.\nFor license information check the [LICENSE](LICENSE.md)-file.\n\nInstallation\n------------\n\nThe preferred way to install this extension is through [composer](http://getcomposer.org/download/).\n\nEither run\n\n```\nphp composer require --prefer-dist igogo5yo/yii2-render-many\n```\n\nor add\n\n```\n\"igogo5yo/yii2-render-many\": \"\u003e=1.0\"\n```\n\nto your `composer.json` file\n\n\nExample\n----\n\nuse trait\n```php\n...\nclass MyController extends Controller {\n    use igogo5yo\\rendermany\\RenderMany;\n    \n    public function actionIndex()\n    {\n        \n        return $this-\u003erenderMany([\n            'sliderSection' =\u003e [\n                'slides' =\u003e ['img1.jpg', 'img3.jpg', 'img3.jpg']\n            ],\n            'contentSection' =\u003e [\n                'title' =\u003e 'My post',\n                'description' =\u003e 'Lorem Ipsum is simply dummy text of the printing and typesetting industry...',\n            ],\n            'partnersSection' =\u003e [\n                'partners' =\u003e [\n                    ['link' =\u003e '#', 'name' =\u003e 'partner 1'],\n                    ['link' =\u003e '#', 'name' =\u003e 'partner 2'],\n                    ['link' =\u003e '#', 'name' =\u003e 'partner 3'],\n                ]\n            ],\n            'footer' //without passing variables\n        ]);\n    }\n}\n```\n\nor extend your controller\n```php\n\nclass MyController extends igogo5yo\\rendermany\\Controller {\n    public function actionIndex()\n    {\n        \n        return $this-\u003erenderMany([\n            'sliderSection' =\u003e [\n                'slides' =\u003e ['img1.jpg', 'img3.jpg', 'img3.jpg']\n            ],\n            'contentSection' =\u003e [\n                'title' =\u003e 'My post',\n                'description' =\u003e 'Lorem Ipsum is simply dummy text of the printing and typesetting industry...',\n            ],\n            'partnersSection' =\u003e [\n                'partners' =\u003e [\n                    ['link' =\u003e '#', 'name' =\u003e 'partner 1'],\n                    ['link' =\u003e '#', 'name' =\u003e 'partner 2'],\n                    ['link' =\u003e '#', 'name' =\u003e 'partner 3'],\n                ]\n            ],\n            'footer' //without passing variables\n        ]);\n    }\n}\n```\n\nalso you can use partial rendering \n```php\n    public function actionIndex()\n    {\n        \n        return $this-\u003erenderMany([\n            'sliderSection' =\u003e [\n                'slides' =\u003e ['img1.jpg', 'img3.jpg', 'img3.jpg']\n            ],\n            'wrapper' =\u003e [\n                'innerRenders' =\u003e $this-\u003erenderManyPartial([\n                    'innerView1' =\u003e [\n                        'param1' =\u003e 'some data 1'.\n                        'param2' =\u003e 'some data 2'\n                    ],\n                    'innerView2' //without passing variables\n                ])\n            ],\n            'footer' //without passing variables\n        ]);\n    }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figogo5yo%2Fyii2-render-many","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Figogo5yo%2Fyii2-render-many","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figogo5yo%2Fyii2-render-many/lists"}