Wiki

Sorted by commentsX
Displaying 141-150 of 751 result(s).

Reference: Model rules validation

Created 5 years ago by krillzipHow-tos7 comments – viewed 592,984 times – ( +124 ) – version 1.1
This is a reference to be used for Model rule validation and is compiled from the Yii documentation and code. The purpose is to have all the information gathered in one place instead of scattered. This reference is not an intro. See The Definitive Guide to Yii, Declaring Validation Rules for a tutorial.

Storing your images in your table's blob field and displaying that stored images.

Created 3 years ago by sirin kHow-tos7 comments – viewed 25,819 times – ( +9 / -1 ) – version 1.1
He im giving you a very simple example ie how you can store an image to your blob field in a table.Hope you already familiar with the normal image upload.
tags: blob, image

Show captcha after <N> unsuccessfull attempts

Created 3 years ago by zitterHow-tos7 comments – viewed 16,690 times – ( +14 / -4 ) – version 1.1
In this mini howto I would like to show how to add a required captcha field in the login form, after a defined number of unsuccessfull attempts. To do this, I will use the blog demo that you have in default Yii download package (path/to/yii/demos/blog).

How To Customize CMenu Output

Created 4 years ago by AngeloTutorials7 comments – viewed 56,100 times – ( +10 ) – version 1.1
CMenu comes with a lot of great customization options built in but sometimes you need it to do more.
tags: menu

Include Yii framework in a Joomla module

Created 4 years ago by zaccariaHow-tos7 comments – viewed 23,588 times – ( +8 / -2 ) – version 1.1
Delploying anything using joomla's framework is quite difficult. The framework don't provide a good MVC structure and the documentation is very poor.

Additional form data with XUpload

Created 2 years ago by AsgarothHow-tos7 comments – viewed 30,781 times – ( +9 ) – version 1.1
In this article you'll learn how to send additional form data when uploading files using XUpload widget

A simple go back button widget

Created 2 years ago by CTalaHow-tos7 comments – viewed 17,944 times – ( +8 / -3 ) – version 1.1
We all know that widgets are really useful. We can use the almost everywhere we want, and we can use the same code a lot of times ( Almost OOP ).

Using jQuery UI 1.8.10 themes with Yii 1.1.6

Created 4 years ago by a110yTips7 comments – viewed 15,920 times – ( +2 ) – version 1.1
When using the latest stable jQuery UI themes (1.8.10) with Yii 1.1.6 (which uses 1.8.6) the widgets don't appear (they're invisible but they're there). In order to make them visible you need to change the following line:

Syncing sessions between Yii and KCFinder

Created 2 years ago by Thanasis FotisHow-tos7 comments – viewed 6,265 times – ( +1 ) – version 1.1
Info: As KCFinder's documentation mentions, if your application (Yii in our case) session handling is using the PHP environment configuration - meaning no change in session handling at all, then no change is needed also on KCFinder side to be able to use this session and thus have this simple interface between your Yii webapp and KCFinder. If that's your case then you probably need not read the rest of this article but rather just make sure that before a user attempts to upload or browse your server a session variable is already set for him (or her) with his specific configuration already waiting for KCFinder there. What can this session interface be useful for? For example, for having per-user upload directory. You could have uploadURL variable established in the session variable to contain the user's id. When an upload or browse use case will occur, the client side will trigger the KCFinder completely decoupled from the Yii application. Yet, since you've already synced your user-specific-configuration with KCFinder via the session, KCFinder will pick it up and use it.
tags: File upload

Tutorial about How to Integrate Yii2 with fantastic theme AdminLTE

Created 11 months ago by ThePr0f3550rHow-tos7 comments – viewed 35,649 times – ( +15 ) – 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