Wiki articles

Showing 161-180 of 799 items.

How To: Custom Client Validation On Checkbox Toggle and Optional Input Field

Created 3 years ago by Wade Shuler, updated 3 years ago by Wade Shuler.

I just chased my tail around for a bit today. I got lost with setting the status of all inputs, and banging my head on why the "validate" function just wasn't working.

0 0
1 follower
Viewed: 11 926 times
Version: 2.0
Category: How-tos

Autocomplete in console command

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

Missed of autocomplete in bash console commands yii make me sad.

3 0
4 followers
Viewed: 12 009 times
Version: 1.1
Category: Tutorials

Expert's model generation with Gii

Created 4 years ago by le_top, updated 4 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: 12 097 times
Version: 1.1
Category: Tips

Auto-update denormalized attributes with MongoDb and Yii2

Created 5 years ago by edoardo849, updated 5 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: 12 098 times
Version: 2.0
Category: Tips

Yiistrap TbHtml::navbarSearchForm

Created 5 years ago by Patrice, updated 5 years ago by CeBe.

Hi all,

0 0
3 followers
Viewed: 12 151 times
Version: 1.1
Category: Tips

Multi Data Provider

Created 5 years ago by Sharon Lavie, updated 3 years ago by Sharon Lavie.

Lately, i needed to deal with the following scenario: read from two databases (db1,db2), and write to a third database (db3).

1 0
4 followers
Viewed: 12 303 times
Version: 1.1
Category: Tips

Creating HTML code using Jamboree Panels

Created 6 years ago by bluyell, updated 6 years ago by bluyell.
2 0
2 followers
Viewed: 12 333 times
Version: 1.1
Category: Tutorials

Preventing CJuiTabs from hiding drop-down CMenu items

Created 8 years ago by Steve Friedl, updated 8 years ago by RusAlex.

Almost all Yii applications use CMenu at the top of each page to show options available to the user, and many include drop-down components to allow more fine-grained selection.

4 0
3 followers
Viewed: 12 362 times
Version: 1.1
Category: Tips

Enhance security of cookie-based login

Created 4 years ago by darkheir, updated 4 years ago by darkheir.

When talking about cookie-base login the Yii guide indicates the following:

2 0
2 followers
Viewed: 12 402 times
Version: 1.1
Category: How-tos

YII2 Pagination Options

Created 4 years ago by VivekYii, updated 4 years ago by VivekYii.

solution here If we are using default pagination option like

1 0
1 follower
Viewed: 12 477 times
Version: 2.0
Category: Tips

How to sum (Update) of all input button price value using jquery

Created 5 years ago by Ankit Modi, updated 4 years ago by Ankit Modi.

Hi Friends, In this tutorial, how to update the sum of all the button data-price value using jquery, Just Follow three step and it's work easily.I hope It may be some helpful to others. See Image

0 0
2 followers
Viewed: 12 490 times
Version: all
Category: How-tos

Serial Numbers (item counts) in GridView

Created 6 years ago by PeRoChAk, updated 6 years ago by Maurizio Domba Cerin.

Sometime we need to display numbers of items per page with their counting as a serial number.

0 0
4 followers
Viewed: 12 491 times
Version: 1.1
Category: How-tos

Using recaptchlib in your projects

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

It is good when someone writes extensions for us but trust, sometimes we forget about other approaches that, if we know the library, we shouldn't forget.

5 0
4 followers
Viewed: 12 549 times
Version: 1.1
Category: How-tos

Handling recursive deletion in Yii

Created 6 years ago by JamesBarnsley, updated 3 years ago by JamesBarnsley.

I www.jamesbarnsley.com was tasked to find a way to do recursive deletion in Yii. As I asked other developers and looked around the internet the usual answers all came up, use a plugin or use cascade delete at the DB level, but I did not want to do either of these.

3 0
5 followers
Viewed: 12 567 times
Version: 1.1
Category: How-tos

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

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

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

0 3
40 followers
Viewed: 12 570 times
Version: 2.0
Category: Tutorials

The Comedy of Errors

Created 7 years ago by fsb, updated 6 years ago by Mike.

Please join the party by adding your own favorite Yii programming errors. Be sure to leave at least a hint at the correction.

19 0
16 followers
Viewed: 12 591 times
Version: 1.1
Category: Others

Make theme and layout option in your site

Created 5 years ago by Narender Negi, updated 5 years ago by trond.

Here i am writing code how to add option of theme change and layout change in your website.

0 0
4 followers
Viewed: 12 592 times
Version: Unknown (update)
Category: How-tos
Tags: layouts, theme

Fixing extensions without modifying their code

Created 6 years ago by schmunk, updated 6 years ago by schmunk.

If you're working a lot with extensions you often stumble upon problems, when you want to include them into your custom web application, like hardcoded or absolute path aliases or classes extended from core application components, which implement addiditonal features.

6 0
10 followers
Viewed: 12 595 times
Version: 1.1
Category: Tips

Application-driven database with CDbMigration and an extended CActiveRecord

Created 7 years ago by Tudor Ilisoi, updated 7 years ago by Tudor Ilisoi.

This is an incipient implementation of application-driven database with Yii.

8 0
10 followers
Viewed: 12 674 times
Version: 1.1
Category: Others

REST API and null values in XML

Created 2 years ago by marko60, updated 2 years ago by marko60.

I have been working on a REST API using the excellent tools provided by Yii2. My problem was that I have to differentiate between empty values and null values. In other words, <elem></elem> is different from null as it represents an empty string. Also, although some use <elem/> to represent a null value it should still be interpreted as an empty string. In other cases, the absence of the eleme...

0 0
0 follower
Viewed: 12 755 times
Version: 2.0
Category: Tips
Tags: null, REST, XML