Wiki articles

Showing 81-100 of 166 items.

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

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

It is quite simple, but I am sure this small tutorial will help more than one of you out there :)

2 0
4 followers
Viewed: 27 719 times
Version: 2.0
Category: How-tos

embedded javascript block in your view with IDE checking or intellisense

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

this is my way for embed js code block in view file:

2 0
3 followers
Viewed: 15 378 times
Version: 2.0
Category: Tips

Using Nginx and Apache2 in separate distributed servers (ie, Amazon EC2 instances)

Created 12 years ago by Luis Lobo Borobia Luis Lobo Borobia, updated 8 years ago by Luis Lobo Borobia Luis Lobo Borobia.

We are running one frontend running NGINX and several app servers running Apache2. There are several issues we have come across but right now I'll be documenting one of them. I'll be completing this article when I get more time.

2 0
2 followers
Viewed: 16 941 times
Version: all
Category: Tips

Events registration examples

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

Register an event handler at Object-Level

2 0
2 followers
Viewed: 65 666 times
Version: 2.0
Category: How-tos
Tags: events, yii2

How to add Open Graph and Twitter Card tags to Yii2 website.

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

OpenGraph and Twitter Cards are two metadata sets that allow to describe web pages and make it more understandable for Facebook and Twitter respectively.

2 0
3 followers
Viewed: 100 997 times
Version: 2.0
Category: How-tos

Filter & Sort by Summary Data in GridView Yii 2.0

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

This wiki explains how to add summary data from related models into your Yii Framework 2.0 gridview with filtering and sorting by the summary columns.

5 2
48 followers
Viewed: 75 879 times
Version: 2.0
Category: Tutorials

Debuging variables in Yii2

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

This tutorial is explained following "basic" application structure.

4 1
8 followers
Viewed: 46 690 times
Version: 2.0
Category: Tips

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 620 times
Version: 2.0
Category: Tutorials

Escape from Default's Yii2 Delete Confirm Box

Created 11 years ago by Antonio Ramirez Antonio Ramirez, updated 9 years ago by Cozumel Cozumel.

If you started playing with Yii2's new GridView, you will soon realize that some things have improved quite a lot, but I am sure its going to be a bit confusing at first glance when you try to modify certain javascript behaviors like for example, its delete confirmation dialog box.

4 1
16 followers
Viewed: 48 889 times
Version: 2.0
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 318 times
Version: 2.0
Category: How-tos

How to add Schema.org markup to Yii2 pages

Created 5 years ago by Gabriel A. López López Gabriel A. López López, updated 5 years ago by Gabriel A. López López 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.

3 0
3 followers
Viewed: 95 143 times
Version: 2.0
Category: How-tos

Create Bootstrap5 based Image carousel with thumbnails

Created 2 years ago by pravi pravi, updated 2 years ago by pravi pravi.

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

3 0
1 follower
Viewed: 131 919 times
Version: 2.0
Category: Tutorials

Use Single Login Session on All Your Yii2 Application/Repository Under Same Domain/Sub Domain

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

There are multiple blog that shows how to use seperate login for yii2 application but in this article i will show you how to use a single login screen for all your YII2 Advanced, YII2 Basic, Application, It will also work when your domain on diffrent server or the same server.

3 0
1 follower
Viewed: 35 362 times
Version: 2.0
Category: Tutorials

How to install Yii 2 advanced on a shared hosting environment

Created 10 years ago by oligalma oligalma, updated 6 years ago by oligalma oligalma.

I've read many comments that it's not possible to install Yii 2 advanced on a shared hosting environment, as it has two webroots. This is partially true.

3 0
2 followers
Viewed: 38 308 times
Version: 2.0
Category: How-tos

How to change GridView delete confirmation message for specific controllers only?

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

Hello,
If you want to give extra attention for some specific delete actions and you don't want to override whole yii.confirm JS method here is what you can do:
(I've only put the ActionColumn part of the GridView here to just give you the idea)

3 0
4 followers
Viewed: 48 665 times
Version: 2.0
Category: Tips

A Single Page with a List and a Detail

Created 9 years ago by softark softark, updated 9 years ago by Patrick Jones Patrick Jones.

The CRUD generator of Gii has done a wonderful job for you, and you already have a list of items in the "index" page and a detailed view of a specified item in the "view" page.

3 0
5 followers
Viewed: 61 204 times
Version: 2.0
Category: How-tos

Yii2 RESTful API with OAuth 2.0

Created 8 years ago by sirin k sirin k, updated 7 years ago by sirin k sirin k.

https://cdn.pbrd.co/images/GMN5ROs.jpg

3 0
3 followers
Viewed: 75 011 times
Version: 2.0
Category: Tutorials

Automatically get the SVN Revision Number of your Project

Created 11 years ago by jcagentzero jcagentzero, updated 11 years ago by jcagentzero 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: 15 653 times
Version: all
Category: Tutorials

How to implement cron in Yii 2

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

In advance template there is already a file yii. And there is no need to run it as php, it is Linux script.

3 0
13 followers
Viewed: 106 577 times
Version: 2.0
Category: How-tos
Tags: console, cron, yii2

Yii2 and Pdf files with Mpdf

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

I am still new to composer and packagist, so I want to share how I am creating the pdf files because for me was not as simple as it should be.

3 0
8 followers
Viewed: 34 627 times
Version: 2.0
Category: How-tos