Wiki

Articles in category "how-tos", sorted by commentsX
Displaying 161-170 of 353 result(s).

Extending an ActiveRecord model

Created 3 years ago by BogseyHow-tos3 comments – viewed 15,871 times – ( +2 / -3 ) – version 1.1
Introduction

How to create a Widget - Recent Comments widget

Created 2 years ago by Nisanth thulasiHow-tos3 comments – viewed 21,398 times – ( +8 ) – version all
Here's a simple way to create a Recent comments showing widget to be used in your templates. The idea is just to highlighting your blog's new comments.

I18n / localised routes in Yii

Created 2 years ago by ElecenHow-tos3 comments – viewed 4,124 times – ( +3 / -1 ) – version 1.1
So, you need localised urls made simple that follow the Yii framework guidelines?
tags: i18n, Routing

How to use an application behavior to maintain runtime configuration

Created 5 years ago by zaccariaHow-tos3 comments – viewed 30,362 times – ( +28 ) – version 1.1
In this tutorial will be explained a method to manage some configuration runtime. This excellent tutorial follows a similar approach, but requires to write a masterclass which all controllers are supposed to extend, following this wiki you can achieve the same by only editing the configuration.

Creating a Dependent Dropdown From Scratch in Yii2

Created 2 years ago by ThePr0f3550rHow-tos3 comments – viewed 51,751 times – ( +6 ) – version 2.0
I have read http://www.yiiframework.com/wiki/24/creating-a-dependent-dropdown/ (Dependen Dropdown Yii1), but I cant implementation in Yii2 because Yii2 not built-in AJAX functionality hem.. I am search about it and get this statement

YiiBooster: How to implement files and images upload on TbRedactor Widget

Created 3 years ago by Antonio RamirezHow-tos3 comments – viewed 24,274 times – ( +13 ) – version 1.1
I have been requested to provide a tutorial on how to use the file upload feature of the TbRedactor widget, and even though I am no longer supporting the library due that the work belongs to Clevertech, I feel that I owe that to the Yii developers. So, here is the  tutorial.

Yet another implementation of CPhpAuthManager.

Created 3 years ago by seenivasanHow-tos3 comments – viewed 11,199 times – ( +8 / -1 ) – version 1.1
In this wiki, I try to implement a simple authorization schema without putting much logic inside a file or into database table. We are constructing authorization hierarchy inside the controller. We are getting roles for the current user from database table and assigning only roles to user that are declared in the particular controller. We have brought down the work of loading of auth data at main application level to controller level. This way we have pulverised auth data for entire site into smaller units. Finally we are going to look at couple of examples.

How to translate and do the translations the easy way

Created 4 years ago by Roman SolomatinHow-tos3 comments – viewed 62,948 times – ( +28 / -2 ) – version 1.1
I wanted to keep all the I18N related translations in separate files, so that I would not need to modify the view files or the model files every time I need to update or fix the translations of application's source language.

File uploads in CForm (Form builder)

Created 4 years ago by Luke JurgsHow-tos2 comments – viewed 41,204 times – ( +12 ) – 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.

Moving the vendor directory for multiple projects

Created about a year ago by mariosimaremareHow-tos2 comments – viewed 9,812 times – ( +5 / -1 ) – version 2.0
This How-To is useful if you are planning to move the Yii vendor directory outside the default location.