Wiki articles

Showing 41-60 of 165 items.

Getting information from the current locale

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

Yii 2.0 comes with a formatter component to format dates, numbers, and other values for international users according to their locale. This is very useful for displaying data. When working with incoming data or when using enhanced input methods like the [MaskedInput widget](https://www.yiiframework.com/doc/api/2.0/yii-widgets-maskedinp...

5 0
2 followers
Viewed: 22 759 times
Version: 2.0
Category: How-tos

Pjax GridView: refresh page after delete

Created 7 years ago by hehbhehb, updated 6 years ago by CeBe.

Normally, after clicking the delete button in gridview, the record will be deleted and the page will refresh, but the page number in query string is lost. This is not always the case we expect.

6 0
4 followers
Viewed: 50 429 times
Version: 2.0
Category: How-tos

Use non Gmail/Gsuite on Gcloud projects

Created 7 years ago by Luis Armando, updated 6 years ago by Maurizio Domba Cerin.

Small companies and startups use cheap email services or even Cpanel's mail services which are less secure and compete directly with bigger email providers like Microsoft with Outlook and Google with Gmail. This creates a problem when you try to use their services to send/receive emails from this cheap services. <img width="750" src="https://static.techspot.com/fileshost/newspics3/2017/google-clo...

0 0
3 followers
Viewed: 18 132 times
Version: 2.0
Category: How-tos

YII2: Create console commands inside a module or extension

Created 9 years ago by MetaCrawler, updated 7 years ago by Luis Armando.

Here is a small guide how to get console commands running inside modules & extensions. For this guide I used a fresh yii2 basic application template.

8 0
6 followers
Viewed: 68 368 times
Version: 2.0
Category: Tutorials

Configuring PhpStorm IDE for Yii 2

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

There are a few settings and plugins that can enhance the development experience with Yii in PHPStorm or IntelliJ IDEA. This article explains how to get the most out of your IDE.

14 0
6 followers
Viewed: 55 032 times
Version: 2.0
Category: Tips

Override/Eliminate Bootstrap CSS/JS for Yii 2.0 widgets

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

An example of customizing the Yii GridView is mentioned here. You can easily override Bootstrap or other styling defaults by changing the GridView default options.

4 2
39 followers
Viewed: 58 877 times
Version: 2.0
Category: How-tos

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 699 times
Version: all
Category: Tips

Render Form in popup via AJAX (Create and Update) with ajax validation & Also load any page via ajax Yii 2.0 (2.3)

Created 10 years ago by skworden, updated 7 years ago by Yii3.

There are a few issues with the other solutions I originally used that I found from other wikis. I address the issues I had in this much simpler and shorter way. I am also going to explain what is going into way more detail than others to help people understand what's going on.

21 0
28 followers
Viewed: 253 320 times
Version: 2.0
Category: How-tos

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 820 times
Version: 2.0
Category: Tips

How to use GridView with AJAX

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

With the adoption of PJax on Yii2 things  have change quite a bit with GridView when it comes to work with them in AJAX mode. It will probably be confusing at the beginning, but then you will soon realize how powerful the new approach is.

10 0
15 followers
Viewed: 88 362 times
Version: 2.0
Category: How-tos
Tags: pjax, widget, yii2

How to make UrlManager createAbsoluteUrl work with sub-domains

Created 8 years ago by Wade Shuler, updated 7 years ago by CeBe.

Upon creating my Yii2 Members System, I have ran into a few snags along the way that forced me to extend and bend Yii2 to my will.

1 0
3 followers
Viewed: 40 318 times
Version: 2.0
Category: How-tos

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

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

Assume we have many categories and many posts.

5 0
6 followers
Viewed: 89 613 times
Version: 2.0
Category: Tutorials

Activating Bootstrap 3 Tooltips & Popover for your Yii Site.

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

Step 1: Initialize the Bootstrap Tooltip & Popover plugins in your view layout file @web\views\layouts\main.php. Add this to somewhere in the beginning head section (after you have loaded the Jquery using your AppAsset or something similar).

3 3
48 followers
Viewed: 67 897 times
Version: 2.0
Category: Tips

Creating a Dependent Dropdown From Scratch in Yii2

Created 11 years ago by ThePr0f3550r, updated 7 years ago by 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: 164 288 times
Version: 2.0
Category: How-tos

How to get SEO friendly URL using Model and new getUrl() function

Created 7 years ago by shiv, updated 7 years ago by shiv.

We all need SEO friendly URLs for our projects. its not always good to call route with params so we can generalise it for all models using a common function.

2 0
1 follower
Viewed: 28 137 times
Version: 2.0
Category: How-tos

Write & use a custom Component in Yii2.0

Created 10 years ago by sirin k, updated 8 years ago by 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: 126 569 times
Version: 2.0
Category: How-tos

Building a REST API in Yii2.0

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

This is wiki page is useful if you are trying to build a customized REST API in Yii2.0

4 0
16 followers
Viewed: 152 695 times
Version: 2.0
Category: Tutorials

Working with relational removals by yii2

Created 8 years ago by AndroideLP, updated 8 years ago by Jairus Martin.

This tutorial shows you how to safely remove records between relationships.

0 0
2 followers
Viewed: 38 187 times
Version: 2.0
Category: Tutorials

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

Created 12 years ago by Luis Lobo Borobia, updated 8 years ago by 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: 15 743 times
Version: all
Category: Tips

Show raw SQL query

Created 8 years ago by darioo, updated 8 years ago by darioo.

Here's a quick tip to dump the SQL for query.

20 1
5 followers
Viewed: 255 409 times
Version: 2.0
Category: FAQs