Wiki articles

Showing 41-60 of 166 items.

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

Created 9 years ago by Wade Shuler Wade Shuler, updated 9 years ago by Wade Shuler 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: 28 602 times
Version: 2.0
Category: How-tos

Automatic Parameter Binding to POST vars in Yii2

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

I wrote about this on my blog, but wanted to post it here too.

0 0
4 followers
Viewed: 28 688 times
Version: 2.0
Category: How-tos

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

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

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

2 3
41 followers
Viewed: 28 966 times
Version: 2.0
Category: Tutorials

Export query content to excel through any of your controllers, also can set cssClass for header/odd/even rows, auto download

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

To generate excel by query content, and download through any controller. You also can bind cssClass to header/odd/even rows. As for header, you even can set cssClass for each column.

$this->export2excel($excel_content,$excel_file);

in your controller.

2 0
2 followers
Viewed: 28 998 times
Version: 2.0
Category: Tutorials

using 'whenClient' for complex client side validation

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

You have a 'Category' model with Id, Name and Visibility (boolean, where 0 = Public, and 1 = Private).

1 0
3 followers
Viewed: 29 394 times
Version: 2.0
Category: How-tos

Role Management

Created 11 years ago by Dency G B Dency G B, updated 11 years ago by Dency G B Dency G B.

Implementing a role based access control is a very easy process and you can even load your roles from the database if you want.

0 0
5 followers
Viewed: 29 937 times
Version: 2.0
Category: How-tos
Tags: rbac, yii2

How to get SEO friendly URL using Model and new getUrl() function

Created 8 years ago by shiv shiv, updated 8 years ago by shiv shiv.

We all need SEO friendly URLs for our projects. its not always good to call route with params so we can generalise it for all models using a common function.

2 0
1 follower
Viewed: 30 141 times
Version: 2.0
Category: How-tos

Installare Yii 2.0.* usando XAMPP su Windows in versione portabile

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

Personalmente trovo che la versione "portable" sia molto più semplice da aggiornare, ed io tengo sempre costantemente aggiornato TUTTO il parco software relativo al mio webserver.

0 0
2 followers
Viewed: 32 078 times
Version: 2.0
Category: Tutorials

Model validation for field ranges using yii2-field-range extension

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

The yii2-field-range extension enables you to easily setup ActiveField range fields with Bootstrap styling. You basically can setup two attributes joined together like a single field with combined validation error block.

0 0
37 followers
Viewed: 32 434 times
Version: 2.0
Category: Tips

MongoDb's embedded documents mapping for ActiveRecord in Yii2

Created 12 years ago by edoardo849 edoardo849, updated 12 years ago by CeBe CeBe.

suppose to have in Mongo a collection "user" like:

4 0
7 followers
Viewed: 32 613 times
Version: 2.0
Category: How-tos

Building Modern SPAs with Yii2 and Inertia.js

Created 5 months ago by Akshay Joshi Akshay Joshi.

Inertia.js is a modern approach to building single-page applications (SPAs) without the complexity of building an API. It allows you to use modern JavaScript frameworks like React, Vue, or Svelte while keeping your Yii2 controllers and routing intact.

4 0
2 followers
Viewed: 32 853 times
Version: 2.0
Category: Tutorials
Tags:

Boost composer-asset-plugin update speed

Created 9 years ago by schmunk schmunk, updated 9 years ago by samdark samdark.

If you're using a lot of bower and npm assets with Yii 2.0 you might encounter long running composer update tasks.

6 0
6 followers
Viewed: 32 874 times
Version: 2.0
Category: Tips

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

Created 7 years ago by s.oli s.oli, updated 7 years ago by samdark 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: 33 397 times
Version: 2.0
Category: Tips

Simple revealing and hiding the password in the password field

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

There are numerous usability problems:

5 0
4 followers
Viewed: 34 257 times
Version: 2.0
Category: How-tos

YII2 : simple language Switcher Widget

Created 11 years ago by phunsanit phunsanit, updated 11 years ago by phunsanit phunsanit.
  1. create file common\components\languageSwitcher.php
1 0
5 followers
Viewed: 34 276 times
Version: 2.0
Category: Tutorials

Yii2 default values for Index data Provider

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

Guys,

2 0
5 followers
Viewed: 34 488 times
Version: 2.0
Category: Tips

Key web server settings after installing a fresh Yii 2 basic or advanced app

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

So, you have installed a brand new Yii 2 app (basic) or (advanced). Here are a few tips for Apache web server users to get things running more secure and better with your yii2 app.

3 0
46 followers
Viewed: 34 839 times
Version: 2.0
Category: Tips

Moving the vendor directory for multiple projects

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

This How-To is useful if you are planning to move the Yii vendor directory outside the default location.

6 0
5 followers
Viewed: 34 908 times
Version: 2.0
Category: How-tos

Yii2 and Pdf files with Mpdf

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

I am still new to composer and packagist, so I want to share how I am creating the pdf files because for me was not as simple as it should be.

3 0
8 followers
Viewed: 35 246 times
Version: 2.0
Category: How-tos

Managing different Bootstrap form layouts with yii2-field-range extension.

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

This wiki will explain how you can use the Field range extension with multiple Bootstrap form layouts (vertical or horizontal). You maybe aware, that the yii2-field-range extension enables you to easily setup ActiveField range fields with Bootstrap styling. You basically can setup two attributes joined together like a single field with combined validation error block.

0 0
37 followers
Viewed: 36 290 times
Version: 2.0
Category: How-tos