{"id":18353029,"url":"https://github.com/thecodeholic/yii2-basic-bootstrap4","last_synced_at":"2025-04-06T11:33:15.110Z","repository":{"id":42641191,"uuid":"258718343","full_name":"thecodeholic/yii2-basic-bootstrap4","owner":"thecodeholic","description":"Yii2 Basic application with Bootstrap 4 integration","archived":false,"fork":false,"pushed_at":"2023-01-31T02:51:53.000Z","size":122,"stargazers_count":7,"open_issues_count":3,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-21T22:41:28.577Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thecodeholic.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":"2020-04-25T08:00:57.000Z","updated_at":"2024-12-24T04:41:46.000Z","dependencies_parsed_at":"2023-02-16T14:50:17.988Z","dependency_job_id":null,"html_url":"https://github.com/thecodeholic/yii2-basic-bootstrap4","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodeholic%2Fyii2-basic-bootstrap4","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodeholic%2Fyii2-basic-bootstrap4/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodeholic%2Fyii2-basic-bootstrap4/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodeholic%2Fyii2-basic-bootstrap4/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thecodeholic","download_url":"https://codeload.github.com/thecodeholic/yii2-basic-bootstrap4/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247478152,"owners_count":20945258,"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","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":[],"created_at":"2024-11-05T21:38:13.662Z","updated_at":"2025-04-06T11:33:13.507Z","avatar_url":"https://github.com/thecodeholic.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/yiisoft\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://avatars0.githubusercontent.com/u/993323\" height=\"100px\"\u003e\n    \u003c/a\u003e\n    \u003ch1 align=\"center\"\u003eYii 2 Basic Project Template with Bootstrap 4\u003c/h1\u003e\n    \u003cbr\u003e\n\u003c/p\u003e\n\nThis is Yii2 Basic Project template with Bootstrap 4.\nBootstrap 3 is completely removed from project.\n\nINSTALLATION\n------------\n\nCheckout [Yii 2 Basic Project Template](https://github.com/yiisoft/yii2-app-basic) for installation instructions.\n\n### Fixing action buttons in GridView\nAfter removing bootstrap 3 and installing bootstrap 4 you will probably see empty\naction column in grid view.\nSomething similar to this.\n\n![Alt](https://i.imgur.com/xVg5Ec5.jpg)\n\nTo fix this you need to change the action column class of your GridView into `app\\grid\\ActionColumn`.\n\n```php\n\u003c?= \\yii\\grid\\GridView::widget([\n    // ...\n    'columns' =\u003e [\n        // ...\n        ['class' =\u003e 'app\\grid\\ActionColumn'],\n    ],\n]); ?\u003e\n```\n####In order this to work you need to include font-awesome 5 icons as well.\n\n\n![Alt](https://i.imgur.com/PNS6PBA.jpg)\n\n------\n\n### Fixing pager of GridView/ListView\n\nBy default pager on GridView and ListView looks ugly as well.\n\n![Alt](https://i.imgur.com/4dAgsBu.jpg)\n\nTo fix this you need to add pager to GridView or ListView widgets\n\n```php\n\u003c?= \\yii\\grid\\GridView::widget([\n    'pager' =\u003e [\n        'class' =\u003e \\yii\\bootstrap4\\LinkPager::class\n    ],\n]);\n// For list view\n\\yii\\widgets\\ListView::widget([\n    'pager' =\u003e [\n        'class' =\u003e \\yii\\bootstrap4\\LinkPager::class\n    ],\n]);\n```\n\nAnd this is how your pager will look like\n\n![Alt](https://i.imgur.com/WuvzRoj.jpg)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodeholic%2Fyii2-basic-bootstrap4","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthecodeholic%2Fyii2-basic-bootstrap4","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodeholic%2Fyii2-basic-bootstrap4/lists"}