Wiki

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

[Updated] How to create & call custom global function in whole application?

Created about a year ago by Rohit SutharTutorials8 comments – viewed 11,820 times – ( +5 / -2 ) – version 1.1
In this wiki I will show how to create own custom global function. It may be save the space and reduce the time.

Tutorial about How to Integrate Yii2 with fantastic theme AdminLTE

Created about a year ago by ThePr0f3550rHow-tos8 comments – viewed 66,740 times – ( +16 / -1 ) – 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

multiple CActiveDataProviders in one CGridView

Created 3 years ago by Kostas Apazidis (KonApaz)How-tos7 comments – viewed 19,158 times – ( +8 / -1 ) – version 1.1
There is a few cases that you want more of one CActiveDataProvider displayed in one CGrideView How to do that?

CGridView: Display the full record (actionView) in a CJuiDialog

Created 4 years ago by JobloTips7 comments – viewed 41,222 times – ( +15 ) – version 1.1
If you show a model (with a lot of attributes) partially in a CGridView, it can be helpful when the user can take a quick look at the full record with all attributes without displaying the view as a page and afterwards returning back to the gridview.

How to log changes of ActiveRecords?

Created 7 years ago by pfthTutorials7 comments – viewed 43,492 times – ( +40 / -2 ) – version 1.1
A simple and effective way to keep track what your users are doing within your application is to log their activities related to database modifications. You can log whenever a record was inserted, changed or deleted, and also when and by which user this was done. For a CActiveRecord Model you could use a behavior for this purpose. This way you will be able to add log functionality to ActiveRecords very easily.
tags: Logging

How to customize Yii core messages?

Created 7 years ago by qiangTutorials7 comments – viewed 50,371 times – ( +18 ) – version 1.1
Yii core messages refer to static text strings in the core Yii framework code which are meant to be displayed to end-users (e.g. core exception messages, default validation error messages). Customization of these core messages is needed in two circumstances:

Using search engine and user friendly URLs

Created 6 years ago by qiangTutorials7 comments – viewed 72,506 times – ( +23 / -1 ) – version 1.1
The Definitive Guide introduces the fundamentals of managing URLs in a Yii application. In this tutorial, we introduce a practical technique that can quickly turn your application into using search-engine-friendly URLs.
tags: SEO, URL

Reference: Model rules validation

Created 6 years ago by krillzipHow-tos7 comments – viewed 674,030 times – ( +125 ) – 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 4 years ago by sirin kHow-tos7 comments – viewed 30,426 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 4 years ago by zitterHow-tos7 comments – viewed 19,474 times – ( +15 / -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).