Wiki articles in category Tips

Showing 1-20 of 162 items.

How to upload image(photo), and path entry in database with update functionality

Created 11 years ago by kiran sharma, updated 10 years ago by Shahcheraghean.

I saw many posts that community newbie is confuse in image/photo upload with random name. so I post this topic covering all useful things regarding to image/photo upload(not covering image attribute related functionality)

15 0
39 followers
Viewed: 210 014 times
Version: 1.1
Category: Tips

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

Created 9 years ago by Kartik V, updated 9 years ago by 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.

14 4
46 followers
Viewed: 180 745 times
Version: 2.0
Category: Tips

CGridView: Render customized/complex datacolumns

Created 12 years ago by Joblo, updated 11 years ago by Joblo.

If you have to display a overview of related data in a table, you can use the CListView, create your view with table/tr/td tags and implement db-queries in the view to display detaildata of the current (master-)record.

53 0
74 followers
Viewed: 168 145 times
Version: 1.1
Category: Tips
Tags: CGridView

Configuring PhpStorm IDE for Yii 1.1

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

Guidelines for good schema design

Created 12 years ago by Steve Friedl, updated 5 years ago by 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: 121 552 times
Version: 1.1
Category: Tips

The complete beginner's study guide for the Yii Framework

Created 11 years ago by Rodrigo Coelho, updated 11 years ago by Rodrigo Coelho.

Start studying the MVC pattern. You will understand the roles of the model, the view and the controller and know where goes each part of the code.

12 0
19 followers
Viewed: 114 063 times
Version: 1.1
Category: Tips

An Easy Solution for Dependent dropDownList Using AJAX

Created 11 years ago by mrs, updated 10 years ago by Kostas Apazidis (KonApaz).

Sometimes new Yii guys face problem to manage dependent dropDownList using AJAX. I am going to discuss an easy solution about this issue.

7 1
24 followers
Viewed: 102 043 times
Version: 1.1
Category: Tips

Saving files to a blob field in the database

Created 13 years ago by zaccaria, updated 13 years ago by zaccaria.

As a follow-up from the How to upload a file using a model wiki entry that explains how to save a file to the filesystem, this article will do the same using a blob field in the database.

6 2
17 followers
Viewed: 79 549 times
Version: 1.1
Category: Tips

Special $variables in CGridView and CListView

Created 12 years ago by Steve Friedl, updated 12 years ago by Steve Friedl.

The popular [CListView] and [CGridView] widgets each take a data provider and iterate over each data object produced, calling the user's code to render each row one at a time, and most are familiar with the use of the $data variable to represent the current model object or array.

23 1
33 followers
Viewed: 77 260 times
Version: 1.1
Category: Tips
14 0
20 followers
Viewed: 77 222 times
Version: 1.1
Category: Tips

Use application on production/development environment without making changes

Created 12 years ago by ifdattic, updated 12 years ago by ifdattic.

I like programing on my localhost, however it really bugged me to make changes to index.php & config files on my production server. After combining all available wiki articles on this topic and some trial and error this is what I use for my applications so I could just upload it to production server and it will work without any changes.

8 1
11 followers
Viewed: 76 756 times
Version: 1.1
Category: Tips

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

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

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

1 0
5 followers
Viewed: 74 583 times
Version: 2.0
Category: Tips

using multiple radio button

Created 12 years ago by francis ja, updated 9 years ago by Rohit Suthar.

When we use multiple radio buttons with same name in Yii many people have the problem on getting the value of the selected radiobutton. The radioButtonList can be used for that, but if we need to use radioButton itself to place the button any where in a view, we need to include one more parameter in htmloption array().

6 0
13 followers
Viewed: 73 649 times
Version: 1.1
Category: Tips

Integrating Yii with Wordpress

Created 12 years ago by isekream, updated 12 years ago by isekream.

Well I finally had some time and tinkered a bit with the notion of integrating wordpress and Yii. Now for me I wanted to use Yii as a framework to develop wordpress plugins. Using some tips from imasia Article I was able to do a simple integration of yii as a wordpress plugin. The integratio...

9 1
13 followers
Viewed: 73 472 times
Version: 1.1
Category: Tips

Easy way to redirect http:\\localhost\yii2-basic to http:\\localhost\yii2-basic\web\index.php

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

First of all, install yii2 basic template according below link:

1 0
5 followers
Viewed: 70 830 times
Version: 2.0
Category: Tips

Importing CSV file to mysql table using "LOAD DATA" command.

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

hi, Here i am giving you some simple step to import huge data from a csv file to your mysql table.this is useful when you have a very huge data to import from csv format.

5 0
20 followers
Viewed: 69 649 times
Version: 1.1
Category: Tips
Tags: csv, import, mysql

Convert JSON data to html table for display on page

Created a year ago by shiv.

I have a calls which help me display json directly in html table.

0 0
1 follower
Viewed: 69 440 times
Version: all
Category: Tips
Tags: html, JSON

GridView show sum of columns in footer.

Created a year ago by shiv.

GridView show sum of columns in footer `PHP use yii\grid\DataColumn;

1 0
1 follower
Viewed: 69 321 times
Version: 2.0
Category: Tips

Using Yii with Oracle through PDO

Created 13 years ago by Trejder, updated 12 years ago by waterloomatt.

When you are developing an webapp with Yii that will be using Oracle RDBMS you should take a look at these issues in which you may run into it.

1 0
7 followers
Viewed: 69 085 times
Version: 1.1
Category: Tips

Styling Radio Buttons

Created 13 years ago by Steve Friedl, updated 13 years ago by Steve Friedl.

The default behavior with radio button lists is ugly, and I figured out mostly how to style them a coupla different ways. I'll used the blog tutorial example (but with my own posting modes):

10 0
9 followers
Viewed: 69 016 times
Version: 1.1
Category: Tips