Wiki articles

Showing 61-80 of 826 items.

Drills : Search by a HAS_MANY relation in Yii 1.1

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

Sometimes we get lost trying to search by a HAS_MANY relation using CActiveRecord or CActiveDataProvider in Yii 1.1. This article is a series of drills that try to describe the practical techniques of searching by a HAS_MANY relation.

22 0
27 followers
Viewed: 85 488 times
Version: 1.1
Category: Tutorials

How to organize Design "things" in Yii 2 (themes and layout)

Created 7 years ago by s.oli s.oli, updated 7 years ago by samdark samdark.

Sometimes the App needs a nicer look & feel, so its necessary to organize the assets for this and Yii can help a lot to make it easy. In this article I provide tips for handling multiple "Designs". I use these three features:

1 0
2 followers
Viewed: 34 013 times
Version: 2.0
Category: Tips

Guidelines for good schema design

Created 14 years ago by Steve Friedl Steve Friedl, updated 7 years ago by softark softark.

Virtually all Yii applications are built on top of a database, and though Yii is very flexible in how it addresses your DB, some design choices make things more convenient than others.

124 0
71 followers
Viewed: 133 119 times
Version: 1.1
Category: Tips

Getting information from the current locale

Created 7 years ago by CeBe CeBe, updated 7 years ago by CeBe 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: 27 080 times
Version: 2.0
Category: How-tos

What SQL-Statement creates yii?

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

The usual way to find out what Yii has created for an SQL query is to mutilate the SQL in the sourcecode and call the program again so that the SQL statement with errors is displayed. Or you can use the SQL logger, which must be switched on and off each time and logs all SQL statements, which leads to an enormous slowdown in program execution and decelerates your workflow.

0 0
1 follower
Viewed: 16 561 times
Version: 1.1
Category: Tips

Pjax GridView: refresh page after delete

Created 8 years ago by hehbhehb hehbhehb, updated 7 years ago by CeBe 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: 56 765 times
Version: 2.0
Category: How-tos

Use non Gmail/Gsuite on Gcloud projects

Created 8 years ago by Luis Armando Luis Armando, updated 8 years ago by Maurizio Domba Cerin 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: 21 987 times
Version: 2.0
Category: How-tos

YII2: Create console commands inside a module or extension

Created 10 years ago by MetaCrawler MetaCrawler, updated 8 years ago by Luis Armando 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: 74 495 times
Version: 2.0
Category: Tutorials

Configuring PhpStorm IDE for Yii 2

Created 8 years ago by CeBe CeBe, updated 8 years ago by CeBe 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: 60 682 times
Version: 2.0
Category: Tips

Organize directories for applications with front-end and back-end

Created 17 years ago by qiang qiang, updated 8 years ago by CeBe CeBe.

Large applications are often divided into front-end and back-end (or even more ends) depending on the target user groups. The front-end should be used by common users, while the back-end mainly the administrators or staff members. The two ends usually have dramatically different appearance, even though they may share a lot of code underneath. In this tutorial, we describe a way of organizing direc...

25 0
34 followers
Viewed: 106 457 times
Version: 1.1
Category: Tutorials
Tags:

Override/Eliminate Bootstrap CSS/JS for Yii 2.0 widgets

Created 12 years ago by Kartik V Kartik V, updated 8 years ago by CeBe 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: 62 796 times
Version: 2.0
Category: How-tos

Adding Yii Search to Your Browser Search Box

Created 15 years ago by qiang qiang, updated 8 years ago by CeBe 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: 70 710 times
Version: all
Category: Tips

Configuring PhpStorm IDE for Yii 1.1

Created 15 years ago by samdark samdark, updated 8 years ago by samdark samdark.
  • Complete code: Ctrl+Space.
  • Show method arguments: Ctrl+Q.
59 1
53 followers
Viewed: 161 603 times
Version: 1.1
Category: Tips
Tags: IDE, PhpStorm

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

Created 11 years ago by skworden skworden, updated 8 years ago by Yii3 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: 265 189 times
Version: 2.0
Category: How-tos

Yii2 Report Grid

Created 9 years ago by Chris Backhouse Chris Backhouse, updated 8 years ago by Chris Backhouse 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: 40 050 times
Version: 2.0
Category: Tips

How to use GridView with AJAX

Created 12 years ago by Antonio Ramirez Antonio Ramirez, updated 8 years ago by CeBe 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: 94 669 times
Version: 2.0
Category: How-tos
Tags: pjax, widget, yii2

How to make UrlManager createAbsoluteUrl work with sub-domains

Created 9 years ago by Wade Shuler Wade Shuler, updated 8 years ago by CeBe 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: 45 043 times
Version: 2.0
Category: How-tos

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

Created 10 years ago by softark softark, updated 8 years ago by softark softark.

Assume we have many categories and many posts.

5 0
6 followers
Viewed: 93 165 times
Version: 2.0
Category: Tutorials

Activating Bootstrap 3 Tooltips & Popover for your Yii Site.

Created 12 years ago by Kartik V Kartik V, updated 8 years ago by alrazi 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: 71 854 times
Version: 2.0
Category: Tips

Creating a Dependent Dropdown From Scratch in Yii2

Created 12 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: 170 612 times
Version: 2.0
Category: How-tos