Wiki articles

Showing 81-100 of 164 items.

Overcoming removal of client helpers (e.g. ajaxLink) and ClientScript in Yii 2.0

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

Alternatively, inline assets (JS/CSS) can be registered at runtime from within the View. For example you can clearly simulate the ajaxLink feature using a inline javascript. Its however recommended if you can merge where possible, client code (JS/CSS) into separate JS/CSS files and loaded through the AssetBundle. Note there is no more need of a CClientScript anymore:

1 2
41 followers
Viewed: 43 325 times
Version: 2.0
Category: FAQs

Install specific Yii2 vendor extension & dependency without updating other packages.

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

The tips here are for advanced usages of composer and its assumed you have read about using composer and have a knowledge of your vendor packages to be updated. Let's consider, you want to update only one specific yii2 vendor library, without updating all the other extension packages?

2 3
39 followers
Viewed: 43 200 times
Version: 2.0
Category: Tips

Optimize Scenarios for yii2

Created 7 years ago by AndroideLP, updated 4 years ago by AndroideLP.

Working with scenarios, with models that can receive many modifications in their rules or structures as development evolves, can create disruptions in the rescue process.

4 0
2 followers
Viewed: 41 781 times
Version: 2.0
Category: Tutorials

Debuging variables in Yii2

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

This tutorial is explained following "basic" application structure.

4 1
8 followers
Viewed: 41 780 times
Version: 2.0
Category: Tips
10 0
15 followers
Viewed: 41 093 times
Version: all
Category: Others

An alternative way to ElasticSearch

Created 5 years ago by Necip, updated a year 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: 40 993 times
Version: all
Category: How-tos

Yii2: Query build for complexity SQL

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

As for complexity SQL query we have two solutions as below, I will discuss #2 in this article.

0 0
3 followers
Viewed: 39 047 times
Version: 2.0
Category: Tips

Simple Way to Upload and Save File

Created 9 years ago by Misbahul D Munir, updated 9 years ago by Misbahul D Munir.

This tutorial need extension mdmsoft/yii2-upload-file. Follow the intruction to install. After installation done, create controller and action

0 0
4 followers
Viewed: 38 722 times
Version: 2.0
Category: Tutorials

How to implement form events

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

You have that, when a product is on development they can change its API anytime. This change is quite important though, its related on how to set the events of your form, for example, the useful beforeSubmit.

5 0
6 followers
Viewed: 37 832 times
Version: 2.0
Category: How-tos
Tags: Forms, How to, yii2

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

Upload files in Yii2 with MongoDb and GridFs

Created 10 years ago by edoardo849, updated 4 years ago by pceuropa.

Uploading files in a webapp can be extremely tricky and sometimes the quickest way to do it is to store the file directly in the webserver or into a DNS (like Amazon S3) and then to save the link and the metadata inside a table in the DB. The thing is that you'll have to deal with file permissions, server storage, file management and so on (which is perfectly fine, by the way).

6 0
6 followers
Viewed: 36 058 times
Version: 2.0
Category: How-tos

Yii2: How to create/develop a new extension using Composer locally without version control or Git

Created 7 years ago by Wade Shuler, updated 5 years ago by jwerner.

Using a version control system, like Git, is nice. However, when building an extension from scratch and loading it via Composer, it adds a lot of pain in the butt steps. You have to commit your changes, update composer to pull them over, then notice there is an error, fix, commit, update. repeat.. I don't want all my baby steps under Git. Sure, I could edit my commit history, but c'mon. Just let m...

7 0
6 followers
Viewed: 35 895 times
Version: 2.0
Category: How-tos

Start using Yii2 in Raspberry Pi3 (RPI3) via Pantahub

Created 3 years ago by sirin k, updated 3 years ago by sirin k.

4 0
4 followers
Viewed: 35 719 times
Version: 2.0
Category: How-tos

Using multiple models in an identity

Created 5 years ago by samdark, updated 2 years ago by Néstor Acevedo.

Let's assume we have two models: Customer and Supplier and we want both to log in. Yii is quite flexible when it comes to authentication and authorization so it's possible.

8 2
4 followers
Viewed: 35 383 times
Version: 2.0
Category: How-tos

Working with relational removals by yii2

Created 7 years ago by AndroideLP, updated 6 years ago by Jairus Martin.

This tutorial shows you how to safely remove records between relationships.

0 0
2 followers
Viewed: 35 286 times
Version: 2.0
Category: Tutorials
2 0
3 followers
Viewed: 34 978 times
Version: 2.0
Category: How-tos

How to install Yii 2 advanced on a shared hosting environment

Created 8 years ago by oligalma, updated 4 years ago by oligalma.

I've read many comments that it's not possible to install Yii 2 advanced on a shared hosting environment, as it has two webroots. This is partially true.

3 0
2 followers
Viewed: 34 881 times
Version: 2.0
Category: How-tos

Change default date format in Oracle

Created 4 years ago by lenovo, updated 4 years ago by samdark.

Default date format in Oracle is DD-MON-RR (25-JAN-18). With that output, we can't using date formatting.

0 0
2 followers
Viewed: 34 487 times
Version: 2.0
Category: How-tos
Tags: database

Load data from internal/external source to fill form fields

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

This wiki is to show you how to use jQuery get and JSON to get data from a dropdown/any form field and fill form fields with the values instantaneously. First, I'll give example use cases of what I'm going to teach you so you can quickly see if this is for you.

1 0
5 followers
Viewed: 34 378 times
Version: 2.0
Category: How-tos

Use minified version of JqueryAsset, BootstrapAsset (and all default assets)

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

By default, Yii 2.0 chooses to use the non-minified version of Jquery and Bootstrap files (CSS and JS). However, there's a simple way to indicate Yii to use the minified version.

8 0
6 followers
Viewed: 33 967 times
Version: 2.0
Category: How-tos