Wiki articles

Showing 201-220 of 823 items.

DB Driven CMenu (Widget)

Created 11 years ago by Preacher, updated 11 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: 7 206 times
Version: 1.1
Category: Tutorials

Sort and save order of model-elements drag & drop

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

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

1 0
4 followers
Viewed: 20 573 times
Version: 1.1
Category: Tutorials

Where to implement knowledge about the addresses of the controller?

Created 11 years ago by Petr.Grishin, updated 11 years ago by Petr.Grishin.

Knowledge is necessary to determine the address of the controller in a single layer system. This allows you to quickly search and painlessly produce refactoring controllers and their addresses.

1 0
2 followers
Viewed: 53 093 times
Version: 1.1
Category: Tutorials
1 0
5 followers
Viewed: 11 776 times
Version: 1.1
Category: How-tos
Tags: i18n, Routing

An alternative way to ElasticSearch

Created 6 years ago by Necip, updated 2 years ago by Necip.

This article is for those who have dealt with the complexity of Elasticsearch or any other indexing machines and are looking for an easier way to index the existing database without additional effort.

1 0
2 followers
Viewed: 43 854 times
Version: all
Category: How-tos

ISA hierarchy of tables inside a database and how to implement a single form

Created 14 years ago by pligor, updated 13 years ago by pligor.

Please consider the following Dear software engineers imagine I have a simple ISA hierarchy: parent A with children B and C. So let's say we have the corresponding tables named "a", "b", "c" and (created with the help of the gii model creator) the classes A, B, C The following is a screenshot from MySQL workbench: ![MySQL workbench screenshot](http://s4.postimage.org/4tuwkm43d/Screenshot.pn...

1 0
3 followers
Viewed: 17 627 times
Version: 1.1
Category: How-tos

Disallowing login for INACTIVE users in Yii

Created 10 years ago by Rohit Suthar, updated 10 years ago by Rohit Suthar.

In this wiki I will show how to Disallowing login for Inactive users. Only Active users can logging and access their account. You can set privacy for your yii web apps users.

1 0
3 followers
Viewed: 17 490 times
Version: 1.1
Category: Tutorials

CjuiDatepicker

Created 12 years ago by hiral darji, updated 12 years ago by hiral darji.

If you have two datepicker in one form and you want that a date of from date shold be minimum date of todate then put following code in Cjuidatepicker widget options array:

'onSelect'=>'js:function(selected) {
$("#HostelRoomStatusMaster_room_status_master_end_date").datepicker("option","minDate",selected);
				}',
1 0
5 followers
Viewed: 12 215 times
Version: 1.1
Category: Tips

Yii 1.1: How To add id or class to CMenu items ?

Created 10 years ago by Louis Gac, updated 10 years ago by Louis Gac.

CMenu comes with a lot of great customization options built in. One of the most used is the class 'active' being added to menu item. But, what if you want to add your own class or id to a menu item ?

1 0
1 follower
Viewed: 27 075 times
Version: 1.1
Category: How-tos

Search scenario (CGridView, etc.): avoid default values from database as search condition.

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

Yii has a neat "trick" that will assign default values to new CActiveRecords. When performing a search() though, this is pretty annoying as they automatically apply as filter values.

1 0
2 followers
Viewed: 11 722 times
Version: 1.1
Category: Tips

Expert's model generation with Gii

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

Efficient coding with Yii implies efficient use of the code generator. This article shares the personalised Gii templates that were built starting from the standard templates proposed by AweGen.

1 0
2 followers
Viewed: 18 224 times
Version: 1.1
Category: Tips

Implementing menu items with progress (wait) dialog

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

This article shows one of possible ways to implement menu items (as well as links), which displays a progress / wait dialog and are redirecting browser to destination URL in the same time. This is especially useful, for links or routes that are know to be loaded for a prolonged period of time (i.e. getting a lot of data from database).

1 0
1 follower
Viewed: 22 218 times
Version: 1.1
Category: How-tos

Logging to Heroku's logs from Yii

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

In order to get your Yii logs into Heroku's logs, you have to work a little bit of magic. You'll need to modify the boot.sh script and add the following two lines: ~~~ touch /app/apache/logs/app_log tail -F /app/apache/logs/app_log & ~~~ This will set up the log and tail it so that when you request "heroku logs", this log is included.

1 0
1 follower
Viewed: 11 258 times
Version: 1.1
Category: How-tos

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

Created 6 years ago by s.oli, updated 6 years ago by 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: 30 433 times
Version: 2.0
Category: Tips

Update and Delete buttons on Breadcrumb

Created 6 years ago by Daniel.

The definition of breadcrumbs according to its documentation is as follow: Breadcrumbs displays a list of links indicating the position of the current page in the whole site hierarchy.

1 0
1 follower
Viewed: 54 827 times
Version: 2.0
Category: Tips

Yii configuration: Dynamic & User dependent

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

It is difficult to perform user dependent theming through a general configuration in 'main.php'. This article proposes a method to do so through a Factory that dynamically generates classes to allow delayed resolution of actual user values. This means that you can refer to values that are stored in the database through the CActiveRecord before Yii is actually loaded. The values will be fetched...

1 0
1 follower
Viewed: 13 955 times
Version: 1.1
Category: How-tos

More on SSE and Yii

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

This is not actually Yii involved.

1 0
1 follower
Viewed: 10 418 times
Version: Unknown (update)
Category: Tips

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

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

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

1 0
5 followers
Viewed: 77 590 times
Version: 2.0
Category: Tips

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

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

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

1 0
5 followers
Viewed: 80 696 times
Version: 2.0
Category: Tips

Aadhar Number Validator

Created 2 years ago by shiv.

In India have Aadhar number an we may need to valid it a input. So I created a validator for yii2

2 1
1 follower
Viewed: 94 541 times
Version: 2.0
Category: Tips
Tags: validator