Wiki articles

Showing 161-180 of 822 items.

How to make bootstrap tabs remain active/selected after navigating to different web pages.

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

Bootstrap tabs gets unselected/inactive when user navigates to other page and comes back. How to make bootstrap tabs remain active/selected after navigating to different web pages.

1 0
3 followers
Viewed: 16 705 times
Version: 2.0
Category: Tutorials

How to add an analogue clock widget on your skeleton application

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


Followings are the simple steps to put an analogue clock widget on your skeleton application that is just generated by yiic.

1 0
1 follower
Viewed: 11 670 times
Version: 1.1
Category: Tutorials
Tags:

Update a part of content using AJAX when select a GridView row

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

Suppose you want to refresh a form or any content when a single row of CGridView is selected

1 0
9 followers
Viewed: 35 386 times
Version: 1.1
Category: How-tos

How to make UrlManager createAbsoluteUrl work with sub-domains

Created 6 years ago by Wade Shuler, updated 6 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: 36 147 times
Version: 2.0
Category: How-tos

Alternative wildcard characters CDbCriteria

Created 11 years ago by maigret, updated 11 years ago by maigret.

In SQL, wildcard characters can be used in "LIKE" expressions; the percent sign (%) matches zero or more characters, and underscore (_) a single character. Sometimes users are not familiar with these or they are using different ones like (*) and (+) similar to regular expressions. My colleages do so and then i decided to add this feature by extending CbCriteria. Especially adding a new parameter $...

1 0
2 followers
Viewed: 11 555 times
Version: 1.1
Category: How-tos

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: 68 812 times
Version: 1.1
Category: Tips

How to create Module based Login

Created 10 years ago by Ibrar Turi, updated 9 years ago by CeBe.

Lets say we have 3 modules (customer, user, admin) in an application and we need, separate logins for each module.

1 0
7 followers
Viewed: 21 705 times
Version: 1.1
Category: How-tos

Saving CGridView filter

Created 10 years ago by sefburhan, updated 9 years ago by CeBe.

In this tutorial we will try to save cgridview filter(search) with title etc. basically we want to save two forms data i.e one represents filters and other data about filters like title, description etc. You can define your own structure for filter saving table here are some basic steps

1 0
31 followers
Viewed: 13 384 times
Version: 1.1
Category: Tutorials

How to apply a layout to an AJAX update

Created 10 years ago by trond, updated 9 years ago by CeBe.
  1. The Main template holds the header, main navigation and footer
  2. One or more layout files holds the column setup, sub navigation etc.
  3. The view files hold the actual page content.
1 0
4 followers
Viewed: 16 391 times
Version: 1.1
Category: How-tos
Tags: AJAX, views

Upload image and content using AJAX and Store it in different table

Created 10 years ago by Selvakumar Kaliyappan, updated 9 years ago by CeBe.

var formData = new FormData($("#post-form")[0]);
$.ajax({
    url: '<?php echo Yii::app()->createUrl("forumPost/uploadPost"); ?>',
    type: 'POST',
    data: formData,
    datatype:'json',
    // as...
1 0
5 followers
Viewed: 72 697 times
Version: 1.1
Category: How-tos

Configuring Yii to run on both Windows and OSX

Created 10 years ago by trond, updated 9 years ago by CeBe.

If you develop your Yii project on both Windows and Mac, there can be a problem setting up the configuration unless the configurations for both system are identical. On my machines I have the following configurations:

1 0
4 followers
Viewed: 12 502 times
Version: 1.1
Category: How-tos
Tags: config

Custom Archive in Blog system

Created 11 years ago by nirmalroka, updated 11 years ago by nirmalroka.

Hi I had made simple archive system for blog system that can handle tbl_post. I had used simple CDbCriteria not more than that. I know there is more and many better way to this but I think this will give some idea to users to generate new idea or customized or modified this version of code.

1 0
2 followers
Viewed: 10 232 times
Version: 1.1
Category: Tips

Entire Messages into javascript object

Created 11 years ago by markux, updated 11 years ago by markux.

I needed all messages with their translation into javascript. This is my solution:

1 0
3 followers
Viewed: 10 509 times
Version: 1.1
Category: How-tos

Increasing AR performance in connections with Oracle

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

Please, note. This article is entirely based on a work done by me colleague developer, who hasn't got account on this webpage and also hasn't got time for writing this article. I'm writing it for him. I will try to forward him any comments that may appear, but can't assure if/when he'll be able to answer. I'm far, far less experienced in Oracle therefore I won't probably be able to help myself.

1 0
15 followers
Viewed: 49 643 times
Version: 1.1
Category: How-tos

Auto-update denormalized attributes with MongoDb and Yii2

Created 10 years ago by edoardo849, updated 9 years ago by CeBe.

You have different collections in MongoDb with de-normalized attributes. As you may know, due to its not-join nature, MongoDb tends to encourage repetition of the same value in different collections (de-normalization). In this MongoDb is opposed to a more SQL-like approach where you usually reference only the ID of the value with a foreign key.

1 0
3 followers
Viewed: 17 564 times
Version: 2.0
Category: Tips

Attaching multiple event handlers to onBeginRequest

Created 10 years ago by Boaz, updated 9 years ago by CeBe.

There came the need to perform two operations, always, on 'application boot' time. Example? My real world example involved some geo-location logic (that's the first operation) and syncing of some session details so KcFinder can be in sync with the user in context - each user with his own session container (the second).

1 0
2 followers
Viewed: 15 436 times
Version: 1.1
Category: How-tos

Simple example for language translation

Created 10 years ago by RKA, updated 9 years ago by CeBe.

Language translation is a common requirement in multi lingual sites. In Yii, we can translate using message and view translation.

1 0
5 followers
Viewed: 37 377 times
Version: 1.1
Category: How-tos
Tags: i18n, Yii

Safely checking if a model class exists (without exploding)

Created 9 years ago by Boaz, updated 9 years ago by CeBe.

While rewriting the PcReportContent extension I'm maintaining I've bumped to a challenge. This wiki was born out of it.

1 0
2 followers
Viewed: 17 458 times
Version: 1.1
Category: How-tos

Catching bounce messages (NDR) and piping them to a Yii command

Created 11 years ago by bennouna, updated 10 years ago by bennouna.

But in the supposedly small share of webapps that don't ask users to activate their accounts, you can end up with a number of bounce messages and non-accessible active accounts.

1 0
7 followers
Viewed: 19 373 times
Version: 1.1
Category: Tutorials

How to avoid a database update if the ActiveRecord was not modified

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

The classic Yii way for doing an update action is as follows:

1 0
3 followers
Viewed: 26 152 times
Version: 1.1
Category: How-tos