Wiki

Articles in category "how-tos", sorted by commentsX
Displaying 211-220 of 350 result(s).

Using Pear Mail Mail_Mime and Mail_Queue

Created 5 years ago by LorenHow-tos2 comments – viewed 10,669 times – ( +7 ) – version 1.1
Create a component (/protected/components/PearMail.php) Edit this as needed based on where you put the files from PEAR.

Book Has Author - Many to Many relations using Kartik\Select2

Created 2 years ago by thiagoc7How-tos2 comments – viewed 11,753 times – ( +3 ) – version 2.0
I could make this work following same useful tips from this post.

How to use yii2-authclient to communicate with Twitter using Single Access Token

Created 2 years ago by Antonio RamirezHow-tos2 comments – viewed 9,462 times – ( +4 ) – version 2.0
This tutorial is not about allowing users to sign into your application by using any of the OAuth providers available with the official yii2-authclient extension, it is about how to interact with your Twitter account, the one you set for your Yii2 app to promote your site, using the Single Access Token technique.

Using rights extension with different table and column name

Created 2 years ago by Ibrar TuriHow-tos2 comments – viewed 2,757 times – ( +1 ) – version 1.1
Once you have installed and configured the rights extension in your application, you can change the table name from 'User' to any table name you want and similarly for 'username' column to any other column name.

How to create a wrapper for a js library

Created 5 years ago by zaccariaHow-tos2 comments – viewed 13,680 times – ( +16 / -1 ) – version 1.1
This wiki will explain how to include a javascript library in a widget.
tags: wrapper, js, uploadify

Nested inline active fields inside Bootstrap horizontal forms

Created 2 years ago by Kartik VHow-tos2 comments – viewed 28,748 times – ( +42 ) – version 2.0
Are you using the Bootstrap 3 form styles with Yii 2 Active Forms? Have you faced problems in displaying complex layouts which needs you to display multiple inline form fields in a single row, within bootstrap horizontal forms. Then read on.

ISA hierarchy of tables inside a database and how to implement a single form

Created 5 years ago by pligorHow-tos2 comments – viewed 10,423 times – ( +1 ) – version 1.1
Please consider the following Dear software engineers imagine I have a simple ISA hierarchy: parent A with children B and C. So let's say we have the corresponding tables named "a", "b", "c" and (created with the help of the gii model creator) the classes A, B, C The following is a screenshot from MySQL workbench:

Using Google Maps in Yii Applications via Jquery

Created 3 years ago by bluyellHow-tos2 comments – viewed 14,022 times – ( +2 / -1 ) – version 1.1

Using a CDbDataReader (sql query result) in a zii widget (such as CGridView or CListView)

Created 4 years ago by Revelis Luc BonninHow-tos2 comments – viewed 26,237 times – ( +9 / -1 ) – version 1.1
If in your application you have to proceed to a complex SQL query that is not associated to a model, you will use CDbDataReader like it is described in the Yii documentation. An example could be

How to get & store Last Login DateTime in database?

Created about a year ago by Rohit SutharHow-tos2 comments – viewed 9,455 times – ( +7 ) – version 1.1
In this wiki I will show how could be store last login date & time in database. First we need a field LastLoginTime (Type must be datetime). this field store a user login detalis (like - Date & Time).