Wiki articles

Showing 101-120 of 165 items.

Optimize Scenarios for yii2

Created 8 years ago by AndroideLP, updated 5 years ago by AndroideLP.

Working with scenarios, with models that can receive many modifications in their rules or structures as development evolves, can create disruptions in the rescue process.

4 0
2 followers
Viewed: 45 348 times
Version: 2.0
Category: Tutorials

Yii2 Report Grid

Created 7 years ago by Chris Backhouse, updated 7 years ago by Chris Backhouse.

There are some very advanced grids in the Yii2 community, specifically Kartik's amazing gridview extensions but they all designed for interactive screen use.

6 0
7 followers
Viewed: 35 825 times
Version: 2.0
Category: Tips

Adding Yii Search to Your Browser Search Box

Created 14 years ago by qiang, updated 7 years ago by CeBe.

The official Yii project site now supports OpenSearch. This means you can customize your browser's search box to enable direct search of the content in yiiframework.com. For example, by entering a Yii class name in the browser's search box, the corresponding class API page will be shown in the browser.

25 0
6 followers
Viewed: 66 709 times
Version: all
Category: Tips

Automatically get the SVN Revision Number of your Project

Created 11 years ago by jcagentzero, updated 11 years ago by jcagentzero.

When you are handling so many projects and those projects are saved in different repository locations, you may find it very difficult to keep track all the versions and revisions manually and it will be much harder if you are developing in multiple repository branches.

3 0
4 followers
Viewed: 14 364 times
Version: all
Category: Tutorials

How to read HTML5 Multiple File Input from controller?

Created 11 years ago by Kartik V, updated 6 years ago by samdark.
0 2
40 followers
Viewed: 22 657 times
Version: 2.0
Category: How-tos

Profiling using XDebug

Created 12 years ago by le_top, updated 10 years ago by le_top.

A short explication on how to extract profile information for PHP on your server using XDebug and KCacheGrind or WinCacheGrind.

3 0
3 followers
Viewed: 23 439 times
Version: all
Category: How-tos

MongoDB's RBAC support class extending BaseManager

Created 10 years ago by edoardo849, updated 10 years ago by edoardo849.

Here's a possible implementation for MongoDb of the RBAC standard. Create a class "MongoDbManager" in `common\components and modify your params.php` file like this:

0 0
4 followers
Viewed: 14 342 times
Version: 2.0
Category: How-tos
Tags: mongodb, rbac, yii2

Batch Gridview data ajax send splitted in chunks displaying bootstrap Progress bar

Created 6 years ago by toaster, updated 6 years ago by toaster.

The scenario in which this wiki can be useful is when you have to send an (huge) array of model ids and perform a time consuming computation with it like linking every model to other models. The idea is to split the array into smaller arrays and perform sequential ajax requests, showing the calculation progress using a [Bootstrap Progress bar](https://www.yiiframework.com/extension/yiisoft/yii2-bo...

8 0
2 followers
Viewed: 36 123 times
Version: 2.0
Category: Tutorials

Nested Set with Yii2

Created 6 years ago by sangprabo, updated 6 years ago by sangprabo.

The nested set behaviour is an approach to store hierarchical data in relational databases. For example, if we have many categories for our product or items. One category can be a "parent" for other categories, means that one category consists of more than one category. The model can be drawn using a "tree" model. There are other approaches available but what we will learn in this article is speci...

7 0
3 followers
Viewed: 90 967 times
Version: 2.0
Category: Tutorials
0 0
5 followers
Viewed: 48 103 times
Version: 2.0
Category: How-tos

How to add Schema.org markup to Yii2 pages

Created 4 years ago by Gabriel A. López López, updated 4 years ago by Gabriel A. López López.

https://schema.org is a markup system that allows to embed structured data on their web pages for use by search engines and other applications. Let's see how to add Schema.org to our pages on Yii2 based websites using JSON-LD.

2 0
3 followers
Viewed: 91 886 times
Version: 2.0
Category: How-tos

Analyse the server's USER-AGENT against browsecap file to determine it's capability.

Created 10 years ago by Deepak Pradhan, updated 10 years ago by Deepak Pradhan.

Does your application need to know user's details on browser details, os and device type? We can use PHP's misc. function to achieve that provided you have an update copy of browsercap.ini

0 0
0 follower
Viewed: 10 127 times
Version: 2.0
Category: Tips

Api of Multiple File Uploading in Yii2

Created 4 years ago by fezzymalek, updated 3 years ago by fezzymalek.

After getting lot's of error and don't know how to perform multiple images api in yii2 finally I get it today

5 0
4 followers
Viewed: 68 316 times
Version: 2.0
Category: Tutorials

How to redirect all emails to one inbox on Yii2 applications

Created 4 years ago by Gabriel A. López López.

\yii\mail\BaseMailer::useFileTransport is a great tool. If you activate it, all emails sent trough this mailer will be saved (by default) on @runtime/mail instead of being sent, allowing the devs to inspect thre result.

6 0
4 followers
Viewed: 119 965 times
Version: 2.0
Category: How-tos

Yii v2 snippet guide III

Created 4 years ago by rackycz, updated a year ago by rackycz.

Articles are separated into more files as there is the max lenght for each file on wiki.

8 0
4 followers
Viewed: 213 014 times
Version: 2.0
Category: Tutorials

Interview Questions For YII2

Created 3 years ago by aayushmhu, updated 3 months ago by aayushmhu.

Hey Everyone, In this post I Just shared my Experience what most of interviewer ask in YII2 Interview.

2 0
2 followers
Viewed: 71 847 times
Version: 2.0
Category: Tips
Tags: interview

Convert JSON data to html table for display on page

Created 2 years ago by shiv, updated 6 months ago by samdark.

I have a calls which help me display json directly in html table.

0 0
2 followers
Viewed: 91 597 times
Version: all
Category: Tips
Tags: html, JSON

GridView show sum of columns in footer.

Created 2 years ago by shiv.

GridView show sum of columns in footer `PHP use yii\grid\DataColumn;

2 0
1 follower
Viewed: 98 544 times
Version: 2.0
Category: Tips

How to Create and Use Validator Using Regular expressions

Created 2 years ago by aayushmhu.

There are Multiple Ways to Create a Validator But here we use Regular Expression or JavaScript Regular Expression or RegExp for Creation Validators. In this article, we will see the most Frequently Used Expression

4 0
1 follower
Viewed: 117 123 times
Version: 2.0
Category: How-tos

Create Bootstrap5 based Image carousel with thumbnails

Created a year ago by pravi, updated a year ago by pravi.

Use the following css styles for carousel to work as expected.

2 0
1 follower
Viewed: 112 877 times
Version: 2.0
Category: Tutorials