Wiki articles

Showing 41-60 of 651 items.

Handling Bootstrap active tabs in Yii via URL

Created 11 years ago by JamesBarnsley, updated 8 years ago by JamesBarnsley.

I (www.jamesbarnsley.com) found that when using the Yii Bootstrap tabs component you will sometimes want to direct the user to a specific tab and not necessarily the first tab. Yii Bootstrap already provides the "active" variable so you can define whether the tab is the active tab or not in PHP. I generally find though that a PHP solution to...

3 0
7 followers
Viewed: 39 616 times
Version: 1.1
Category: How-tos

Url: hide index.php

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

Maybe it looks simple, but some time ago I need some time to find a solution of this case. I finally got it, and I want to share that I also experienced such cases. So that it can make reference.

19 0
31 followers
Viewed: 316 085 times
Version: 1.1
Category: How-tos

Real-time display of server push data using Server-Sent Events (SSE)

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

Let's say you have an internal messaging system in your webapp, and you want to display messages dynamically and real-time to the relevant recipients.

9 0
17 followers
Viewed: 63 492 times
Version: 1.1
Category: How-tos

How to filter CGridView with From Date and To Date datepicker

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

This artical is related to allow user to filter CGridView with date range using datepicker on submit button. Here I use Yii Cookie to preserve date in datepicker textbox after submitting the form.

9 0
26 followers
Viewed: 63 264 times
Version: 1.1
Category: Tips

Theming your Zii Widgets

Created 13 years ago by Luis Lobo Borobia, updated 13 years ago by Ivan Wilhelm.

One aspect of User Interface Design has to do with the coherence of the design and the use of the colors between the different User Interface Components used.

17 0
31 followers
Viewed: 61 402 times
Version: 1.1
Category: Tutorials

Use crypt() for password storage

Created 11 years ago by fsb, updated 9 years ago by fsb.

Update: This wiki has been rewritten to be in line with Yii 1.1.14. Since many of the detailed complexities are now handled by Yii, the article focuses on how the crypt() built-in function works and why it's important to use it correctly.

15 0
20 followers
Viewed: 177 056 times
Version: 1.1
Category: Tutorials

Understanding the view rendering flow

Created 12 years ago by dckurushin, updated 11 years ago by Jorgee.

If we take a look at the blog demo we have 3 major parts of our view rendering. They are:

56 1
55 followers
Viewed: 239 919 times
Version: 1.1
Category: FAQs

Serve jQuery and jQuery-UI from Google's CDN

Created 12 years ago by Yeti, updated 11 years ago by fad.

There are good reasons to use Google's Content Delivery Network (CDN) to serve jQuery and jQuery UI on your site:

14 0
17 followers
Viewed: 42 624 times
Version: 1.1
Category: Tutorials

By Example: CHtml

Created 14 years ago by jonah, updated 8 years ago by glicious.

"By Example" cookbook pages will provide coding examples for many of the commonly used classes within Yii. We will try to provide as many usage examples as possible for keep these pages as helpful as possible.

79 0
74 followers
Viewed: 989 968 times
Version: 1.1
Category: Tutorials

How to use ldap in UserIdentity for authentication

Created 14 years ago by BeerSerc, updated 10 years ago by Navarr.

Yii does not have an LDAP class itself, but its very easy to implement LDAP in the stock UserIdentity class.

11 0
18 followers
Viewed: 90 208 times
Version: 1.1
Category: Tutorials

How to use PHPExcel external library with Yii

Created 13 years ago by Antonio Ramirez, updated 10 years ago by cgsmith.

Trying to learn and help some other programmers to find their solutions on the Yii Forum (I think is a superb way to learn the framework), I was facing one challenge with an external library that a fellow programmer wanted to use -quite good indeed: PHPExcel. And what is PHPExcel?

27 1
25 followers
Viewed: 138 713 times
Version: 1.1
Category: How-tos

Getting to Understand Hierarchical RBAC Scheme

Created 13 years ago by daemons, updated 9 years ago by rAWTAZ.

Authentication and Authorization is a good tutorial. Among other topics, it describes basic aspects of Yii's RBAC implementation. But however hard I read the tutorial, I couldn't understand how exactly the hierarchy works. I found how to define authorization hierarchy, how business rules are evaluated, how to configure a...

47 0
56 followers
Viewed: 125 646 times
Version: 1.1
Category: Tutorials

How to use a Widget as an Action Provider

Created 13 years ago by Antonio Ramirez, updated 8 years ago by stinkytofu.

All done, now we can call all the actionProvider actions as controllerID/actionPrefix.actionID. Here is the example:

24 0
41 followers
Viewed: 59 869 times
Version: 1.1
Category: How-tos

How to use YiiBooster TbFileUpload widget

Created 11 years ago by Antonio Ramirez, updated 11 years ago by Antonio Ramirez.

I normally create a files folder and I allocate it within my www one, that is where I keep my css, js, images files. So, even though you can place it where ever you wish and for the sake of the example, I will use the files folder name.

7 0
19 followers
Viewed: 53 836 times
Version: 1.1
Category: How-tos

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

AngularJS Frontend:Connecting it with a Yii Backend REST API.Gallery Manager Demo Application.

Created 10 years ago by drumaddict, updated 9 years ago by Castea.

For best experience,use Chrome.Other browsers may complain here and there.Sorry,no patience to make happy every freaking browser out there!

17 0
37 followers
Viewed: 104 599 times
Version: 1.1
Category: How-tos

Yii for beginners

Created 12 years ago by rackycz, updated 4 years ago by rackycz.

Hi. This is first article with my Yii v1 tutorial. I had to split it into 2 articles as there's limited length of texts on Wiki. So once you understand basics, you can read the 2nd article here: Yii for beginners 2.

68 0
75 followers
Viewed: 437 835 times
Version: 1.1
Category: Tutorials

Searching and Sorting by Count of Related Items in CGridView

Created 12 years ago by softark, updated 9 years ago by softark.

class Post extends CActiveRecord {

...

} ` When you list Authors in grid you would like to print the count of posts in column, allow sorting on this column and probably filtering by the count.

21 0
40 followers
Viewed: 58 430 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 939 times
Version: 1.1
Category: How-tos

Create your own Validation Rule

Created 13 years ago by nickcv, updated 11 years ago by Gismo.

Some times the core validation rules provided by Yii won't satisfy all your needs, so you'll need to create your very own validation rule.

59 0
54 followers
Viewed: 272 548 times
Version: 1.1
Category: How-tos