Wiki articles

Showing 121-140 of 166 items.

How to make bootstrap tabs remain active/selected after navigating to different web pages.

Created 9 years ago by emrald emrald, updated 9 years ago by emrald emrald.

Bootstrap tabs gets unselected/inactive when user navigates to other page and comes back. How to make bootstrap tabs remain active/selected after navigating to different web pages.

1 0
3 followers
Viewed: 23 766 times
Version: 2.0
Category: Tutorials

Yii2 GridView Sorting and Searching with a Junction Table Column(Many to Many Relationship)

Created 9 years ago by Amjad Khan Amjad Khan, updated 9 years ago by Amjad Khan Amjad Khan.

Following is the table structure

tblgroups

CREATE TABLE IF NOT EXISTS `tblgroups` (
  `id` int(11) NOT NULL,
  `groupname` varchar(150) NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '1=Acitve,2=Inactive',
  `date` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

tblcontacts

4 1
7 followers
Viewed: 95 609 times
Version: 2.0
Category: Tutorials

Upload files in Yii2 with MongoDb and GridFs

Created 11 years ago by edoardo849 edoardo849, updated 5 years ago by pceuropa pceuropa.

Uploading files in a webapp can be extremely tricky and sometimes the quickest way to do it is to store the file directly in the webserver or into a DNS (like Amazon S3) and then to save the link and the metadata inside a table in the DB. The thing is that you'll have to deal with file permissions, server storage, file management and so on (which is perfectly fine, by the way).

6 0
6 followers
Viewed: 41 374 times
Version: 2.0
Category: How-tos

Yii 2 list of path aliases available with default basic and advanced app.

Created 11 years ago by Kartik V Kartik V, updated 11 years ago by Kartik V Kartik V.

If you are coming over from Yii 1.x to Yii 2, and already read this guide, you may note that namespaces are very important in Yii 2 to identify classes. But do you know the list of seeded path aliases that come shipped with a basic or advanced app? Here is my attempt to list them.

15 4
45 followers
Viewed: 188 630 times
Version: 2.0
Category: Tips

Using your own forked version of extensions with composer

Created 11 years ago by Kartik V Kartik V, updated 10 years ago by Kartik V Kartik V.

So you want to use a fork of any existing vendor extension with your Yii 2 install and use the fork, instead of original source. This does not need you to push any update or register your package on packagist.org. You are recommended to follow the approach below:

3 2
40 followers
Viewed: 26 090 times
Version: 2.0
Category: Tutorials

Managing a star rating with the StarRating widget in Yii 2

Created 11 years ago by Kartik V Kartik V, updated 11 years ago by Kartik V Kartik V.

In Yii 1.x, there was a built in widget CStarRating based on the jquery star rating plugin. There exists no prebuilt solution in Yii2, however the same concepts can be extended using any jquery plugin.

1 3
41 followers
Viewed: 27 502 times
Version: 2.0
Category: How-tos

How to implement form events

Created 11 years ago by Antonio Ramirez Antonio Ramirez, updated 10 years ago by deacs deacs.

You have that, when a product is on development they can change its API anytime. This change is quite important though, its related on how to set the events of your form, for example, the useful beforeSubmit.

5 0
6 followers
Viewed: 42 297 times
Version: 2.0
Category: How-tos
Tags: Forms, How to, yii2

Create Form With DynamicModel

Created 11 years ago by Misbahul D Munir Misbahul D Munir, updated 11 years ago by Misbahul D Munir Misbahul D Munir.

In yii2 we can create form without create FormModel. Here we go

4 0
8 followers
Viewed: 51 837 times
Version: 2.0
Category: Tips
Tags: form, model, yii2

Step by step for how to full export Yii2 grid to excel

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

We will leverage Yii2-excelview widget. So, first of all is install Yii2-excelview:

1 0
5 followers
Viewed: 79 522 times
Version: 2.0
Category: Tips

How to send email via Gmail SMTP in Yii2 framework

Created 4 years ago by Bartosz Wójcik Bartosz Wójcik, updated 4 years ago by Bartosz Wójcik Bartosz Wójcik.

One of my sites has been flooded with spam bots and as a result - Gmail gave my mailing domain a bad score and I couldn't send emails to @gmail addresses anymore, not from my email, not from my system, not from any of other domains and websites I host...

3 1
4 followers
Viewed: 107 138 times
Version: 2.0
Category: How-tos

Moving the vendor directory for multiple projects

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

This How-To is useful if you are planning to move the Yii vendor directory outside the default location.

6 0
5 followers
Viewed: 34 138 times
Version: 2.0
Category: How-tos

Drills : Search by a HAS_MANY relation in Yii 2.0

Created 11 years ago by softark softark, updated 7 years ago by softark softark.

This article tries to describe the practical techniques of searching by a HAS_MANY relation using ActiveRecord of Yii 2.0.

13 0
14 followers
Viewed: 111 720 times
Version: 2.0
Category: Tutorials

How to create/update a model with its related items using Listbox or CheckboxList

Created 9 years ago by softark softark, updated 7 years ago by softark softark.

Assume we have many categories and many posts.

5 0
6 followers
Viewed: 91 427 times
Version: 2.0
Category: Tutorials

Boost composer-asset-plugin update speed

Created 9 years ago by schmunk schmunk, updated 9 years ago by samdark samdark.

If you're using a lot of bower and npm assets with Yii 2.0 you might encounter long running composer update tasks.

6 0
6 followers
Viewed: 31 851 times
Version: 2.0
Category: Tips

An alternative way to ElasticSearch

Created 7 years ago by Necip Necip, updated 3 years ago by Necip Necip.

This article is for those who have dealt with the complexity of Elasticsearch or any other indexing machines and are looking for an easier way to index the existing database without additional effort.

1 0
2 followers
Viewed: 46 838 times
Version: all
Category: How-tos

Creating a Dependent Dropdown From Scratch in Yii2

Created 11 years ago by ThePr0f3550r ThePr0f3550r, updated 8 years ago by alrazi alrazi.

I have read http://www.yiiframework.com/wiki/24/creating-a-dependent-dropdown/ (Dependen Dropdown Yii1), but I can't implement it in Yii2 because Yii2 does not have built-in AJAX functionality hem.. I searched about it and came across this post

4 1
12 followers
Viewed: 167 307 times
Version: 2.0
Category: How-tos

Write & use a custom Component in Yii2.0

Created 11 years ago by sirin k sirin k, updated 8 years ago by Maurizio Domba Cerin Maurizio Domba Cerin.

This is a simple example in Yii2.0 to understand how you can write a custom component and use it inside your app.(basic template)

14 0
11 followers
Viewed: 128 794 times
Version: 2.0
Category: How-tos

Yii2 - Upgrading to Bootstrap 4

Created 5 years ago by Richard Pillay Richard Pillay, updated 5 years ago by Richard Pillay Richard Pillay.

Yii2 - Converting from Bootstrap3 to Bootstrap4

12 0
6 followers
Viewed: 116 209 times
Version: 2.0
Category: How-tos

How to learn Yii?!

Created 14 years ago by yJeroen yJeroen, updated 5 years ago by CeBe CeBe.

Here is a step by step To-Do list for Yii beginners. The list is an advice of what tutorials and documentation you can walk through to get a full understanding of the Yii Framework. These can be a help to learn Yii.

17 0
21 followers
Viewed: 126 910 times
Version: all
Category: Tutorials

Simple way to implement Dynamic Tabular Inputs

Created 10 years ago by ezekielnoob ezekielnoob, updated 6 years ago by samdark samdark.

grid

5 0
10 followers
Viewed: 88 081 times
Version: 2.0
Category: Tutorials