Wiki

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

Tutorial about How to Integrate Yii2 with fantastic theme AdminLTE

Created 3 years ago by ThePr0f3550rHow-tos9 comments – viewed 90,173 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 43,234 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,809 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 104,846 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,781 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 85,266 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,702 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,461 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,273 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.

How to implement cron in Yii 2

Created 3 years ago by hemcHow-tos10 comments – viewed 54,916 times – ( +11 / -1 ) – version 2.0
In advance template there is already a file yii. And there is no need to run it as php, it is Linux script.
tags: cron, yii2, console