Wiki articles in category Tutorials

Showing 161-180 of 264 items.
2 0
9 followers
Viewed: 14 982 times
Version: 1.1
Category: Tutorials

Creating a Simple CRUD App With Yii2 (Revised 12/20/2013)

Created 10 years ago by Charles R. Portwood II, updated 9 years ago by Vivek.

By popular demand, today I will be revisiting my previous Yii Framework 2 Getting Started Guide and updating it with what is currently available in the Yii Framework 2 Repository. Provide here is an super simple example CRUD application that will help you get started using the framework.

7 6
21 followers
Viewed: 303 858 times
Version: 2.0
Category: Tutorials

Ajax Login form with validation errors inside jQuery modal dialog

Created 10 years ago by pravi, updated 9 years ago by Maxxer.

I would like to share my little experience with Yii to the community in the form of the below small wiki:

3 0
9 followers
Viewed: 44 566 times
Version: 1.1
Category: Tutorials

Log Activity in DataBase

Created 10 years ago by mahdi1986, updated 9 years ago by mahdi1986.

In this article i will explain how to customize log activity in database, Imaging you need to save IP user, Url request and user_name in database,But table created by default with Yii only have id,level,category,logtime and message

4 0
17 followers
Viewed: 32 552 times
Version: 1.1
Category: Tutorials

What to do when composer fails to update your vendor packages?

Created 9 years ago by Kartik V, updated 9 years ago by Kartik V.
  • Running a composer update does not fetch any new packages (even though the source is updated)
  • A specific vendor package never gets updated
  • Facing on and off problems when fetching packages while performing composer update.
  • You ran a composer update earlier, but it was partially done, before you lost network connectivity, and you cannot refresh packages anymore.
0 4
36 followers
Viewed: 49 528 times
Version: 2.0
Category: Tutorials

How to store array/widget configuration to the database with config validation rules

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

Note the tag {{homeUrl}} will be dynamically replaced at runtime.

2 3
41 followers
Viewed: 23 557 times
Version: 2.0
Category: Tutorials

Managing your nested dropdown dependency with DepDrop widget

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

If you are coming over to Yii 2 from Yii 1.x, you may have already read this useful wiki for creating dependent dropdowns. You can use a similar approach in Yii 2 to do the same. But if you are looking at a prebuilt solution that helps you manage it easier, read along.

2 3
42 followers
Viewed: 87 422 times
Version: 2.0
Category: Tutorials

Searching and sorting by related model in CGridView

Created 12 years ago by Maciej Liżewski, updated 9 years ago by Kostas Apazidis (KonApaz).

Lets say we have two models and relation between them:

77 0
93 followers
Viewed: 271 901 times
Version: 1.1
Category: Tutorials

Simple Ajax popup

Created 10 years ago by Rajith R, updated 9 years ago by Rajith R.

Simple Ajax popup view with Ajax link

5 0
9 followers
Viewed: 51 210 times
Version: 1.1
Category: Tutorials

Filter & Sort by Summary Data in GridView Yii 2.0

Created 9 years ago by Kartik V, updated 9 years ago by 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: 71 646 times
Version: 2.0
Category: Tutorials

shortcut/usefull access roles methods RBAC

Created 9 years ago by Kostas Apazidis (KonApaz), updated 9 years ago by Kostas Apazidis (KonApaz).

These are functions that I used very often, may helps you!

1 0
5 followers
Viewed: 14 402 times
Version: 1.1
Category: Tutorials

Save or Update Multiple related model values in one Tabular input form

Created 9 years ago by Kostas Apazidis (KonApaz), updated 9 years ago by Kostas Apazidis (KonApaz).

In this wiki I will show you how to save/update a model with many related model For example: How to set a product to multiple categories only in one post form ?

1 0
1 follower
Viewed: 40 036 times
Version: 1.1
Category: Tutorials

Insert data from database to another database table

Created 9 years ago by Kostas Apazidis (KonApaz), updated 9 years ago by Kostas Apazidis (KonApaz).

According to below wiki we could migrate database schema to another database

1 0
2 followers
Viewed: 15 482 times
Version: 1.1
Category: Tutorials

Create / Generate PDF files with TCPDF plugin (Example to generate Table with TCPDF plugin)

Created 10 years ago by codesutra, updated 9 years ago by codesutra.

Few days ago i was playing with TCPF plugin to create a PDF files. Since i have checked few available extension and also checked some forum threads but still i dont get my expected result for PDF file.

4 0
11 followers
Viewed: 81 140 times
Version: 1.1
Category: Tutorials

YII SaaS Multi Tenant application with single database

Created 10 years ago by Rajith R, updated 9 years ago by xJose.

Lots of people are asking how to solve it with YII,We think its difficult with YII. But its easy to solve . There is no database triggers needed . we can simply sove it by extending a class(say "RActiveRecord") from CActiveRecord .Then extend all our model classes from that class.

6 1
14 followers
Viewed: 27 730 times
Version: 1.1
Category: Tutorials

Create image thumbnails with php_img_preview

Created 11 years ago by Anas AbuDayah, updated 9 years ago by Anas AbuDayah.

This is another way to view images in your application and I like this way because it's simple and I think it's better performance than other.

4 0
9 followers
Viewed: 23 726 times
Version: 1.1
Category: Tutorials
Tags: images, views

Automatically get the SVN Revision Number of your Project

Created 9 years ago by jcagentzero, updated 9 years ago by 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: 12 789 times
Version: all
Category: Tutorials

Editing, Deleting, and Viewing model data with the yii2-detail-view extension

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

The yii2-detail-view extension offers you an easy way to EDIT and VIEW your model data, toggle these modes, and adds other features. You can read the extension documentation and/or view a demo of this extension, to understand usage.

1 0
43 followers
Viewed: 82 866 times
Version: 2.0
Category: Tutorials

DB Driven CMenu (Widget)

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

Awhile ago I was trying to find a database driven CMenu system to add to my web applications. This always seemed to me that it would be a lot easier to manage if it where in a database. So the following is the results of that effort:

1 0
1 follower
Viewed: 6 458 times
Version: 1.1
Category: Tutorials

Sort and save order of model-elements drag & drop

Created 9 years ago by Kostas Apazidis (KonApaz), updated 9 years ago by Kostas Apazidis (KonApaz).

Suppose you have Products,Categories and each product belongs in many categories

1 0
4 followers
Viewed: 18 953 times
Version: 1.1
Category: Tutorials