Wiki

Articles in category "how-tos", sorted by ratingX
Displaying 81-90 of 354 result(s).

Tutorial about How to Integrate Yii2 with fantastic theme AdminLTE

Created 3 years ago by ThePr0f3550rHow-tos9 comments – viewed 88,356 times – ( +16 / -2 ) – version 2.0
Yii2 comes with a charming twitter bootstrap version 3. But if it is less, then you can integrate with web templates that you like. One example is wonderfull template "adminLTE"
tags: yii2, theme, adminLTE

File uploads in CForm (Form builder)

Created 5 years ago by Luke JurgsHow-tos2 comments – viewed 42,934 times – ( +12 / -1 ) – version 1.1
While there is a reasonable amount of documentation regarding CForm (form builder) and file uploads seperately, there really is not any coverage of both in combination.

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

Created 5 years ago by bennounaHow-tos16 comments – viewed 47,214 times – ( +12 / -1 ) – version 1.1
There are several methods and techniques that come handy in the case you need to call an external resource periodically or if you are waiting for a server push, but I present here an easy and straightforward one using HTML5's Server-Sent Events (SSE).

Setting and getting systemwide static parameters

Created 6 years ago by Steve FriedlHow-tos3 comments – viewed 103,628 times – ( +12 / -1 ) – version 1.1
Occasionally one wishes to set systemwide parameters for an application, such as a contact address for email, an application name, or setting an option that guides major behavior. Yii provides for setting of static parameters in the configuration file, and this article talks about how to do it conveniently.
tags: config

Run an Yii Application inside an Wordpress page

Created 6 years ago by Paul ApostolHow-tos3 comments – viewed 27,339 times – ( +12 / -1 ) – version 1.1
Install a Wordpress site (mine is in "http://localhost/test/wordpress")

Configuring controller access rules to default-deny

Created 6 years ago by Steve FriedlHow-tos3 comments – viewed 84,157 times – ( +12 / -1 ) – version 1.1
Starting with the blog tutorial, Yii developers are familiar with the notion of access rules defined in the controller, where the actions are allowed or denied depending on the user's name or role.

Reliable Alternative For Yii::app()->request->isAjaxRequest AND Adding Data To Ajax Form With JS

Created 5 years ago by ibo_sHow-tos2 comments – viewed 49,302 times – ( +15 / -2 ) – version 1.1
In this How-To I'll show you:

How to setup RBAC with a php file

Created 7 years ago by bettorHow-tos17 comments – viewed 65,046 times – ( +26 / -6 ) – version 1.1
In this cookbook I will attempt to explain how to use the lightweight version of Role-Based Access Control using a php file. This version does not use database but a php file and is controlled by CPhpAuthManager class.

How to re enable logging during unit testing

Created 5 years ago by AsgarothHow-tos3 comments – viewed 16,047 times – ( +11 / -1 ) – version 1.1
Some of you have experienced the need to log some information while doing unit testing, due to the fact that the information given in the summary is just not enough, to know why the test is actually failing. this article focuses on 2 ways to get you logs up and running again.

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

Created 2 years ago by robregonmHow-tos2 comments – viewed 13,696 times – ( +11 / -1 ) – version 2.0
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.