Wiki

Articles in category "how-tos", sorted by ratingX
Displaying 221-230 of 316 result(s).

How to handle decimal separators (e.g comma instead of dot) for l18n

Created 2 years ago by jpabloHow-tos2 comments – viewed 11,881 times – ( +2 ) – version 1.1
Yii i18n does not cover decimal format. Some languages like Spanish (I live in Argentina) uses comma ',' instead of dot '.' as decimal separator.

thumbsgen and Kohana Image Library together (extends an extension)

Created about a year ago by KonApazHow-tos0 comments – viewed 2,894 times – ( +2 )
In this wiki I will show you how to extends an extension and/or how can two or more extensions work together.

Publish yii webapp using Git push

Created 2 years ago by rootbearHow-tos6 comments – viewed 7,539 times – ( +2 ) – version 1.1
I did not invent this instructions, I read it somewhere and re-organized in my way as I was trying and it works for me;
tags: git

Upload image and content using AJAX and Store it in different table

Created 8 months ago by SelvakumarHow-tos1 comment – viewed 21,601 times – ( +2 ) – version 1.1
We all know how to upload the content and images at the same time with refreshing the page. And uploading the images using Ajax we have faced some issues, here i have fixed the issues and both content and photos are uploaded using Ajax. And both content and images are stored in the different tables

Configuring Yii to run on both Windows and OSX

Created 8 months ago by trondHow-tos2 comments – viewed 2,636 times – ( +2 ) – version 1.1
If you develop your Yii project on both Windows and Mac, there can be a problem setting up the configuration unless the configurations for both system are identical. On my machines I have the following configurations:
tags: config

Entire Messages into javascript object

Created 2 years ago by markuxHow-tos0 comments – viewed 4,598 times – ( +2 ) – version 1.1
I needed all messages with their translation into javascript. This is my solution:

MongoDb's embedded documents mapping for ActiveRecord in Yii2

Created 8 months ago by edoardo849How-tos1 comment – viewed 3,595 times – ( +2 ) – version 2.0
You are working with MongoDb and you have embedded documents in your collection that you want to easily map in your Model for CRUD operations.

Attaching multiple event handlers to onBeginRequest

Created 7 months ago by BoazHow-tos0 comments – viewed 2,828 times – ( +2 ) – version 1.1
There came the need to perform two operations, always, on 'application boot' time. Example? My real world example involved some geo-location logic (that's the first operation) and syncing of some session details so KcFinder can be in sync with the user in context - each user with his own session container (the second).

Using phpseclib with Yii

Created 2 years ago by nkdHow-tos8 comments – viewed 6,388 times – ( +2 ) – version 1.1
I installed phpseclib because I needed to do some AES encryption in my project. After all the hassle of installing php lib, I found out that Yii already has a security module (securityManager). I finally decided to keep using phpseclib because it has one big advantage over Yii securityManager module, it does not requite mcrypt to be installed in the phpserver!
tags: security

How to use BootstrapInterface

Created 6 months ago by Antonio RamirezHow-tos0 comments – viewed 1,918 times – ( +2 ) – version 2.0
Yii2 introduces the BootstrapInterface to ease our application initialization tasks, whether they are composer based or Application bootstrap (do not mistaken with Bootstrap CSS Framework) based tasks. On this article, I am going to explain how to use it on your Application bootstrap process.