Wiki

Articles in category "tutorials", sorted by viewsX
Displaying 61-70 of 255 result(s).

Custom Number Formatting or Decimal Separators and i18n

Created 5 years ago by c@cbaTutorials8 comments – viewed 58,814 times – ( +7 / -1 ) – version 1.1
By default, the decimal separator in php (also in mysql) is a dot (.). So when we work with floats in Yii (in calculations, validation, sql statements etc.), the decimal separator has to be a dot. If we want to use for example a comma (,) as the decimal separator, that is if we want to display numbers and enable users to enter numbers with a comma before the decimals, we have to...

Display an AJAX tree from your DB using CTreeView

Created 7 years ago by François GannazTutorials10 comments – viewed 58,767 times – ( +21 / -1 ) – version 1.1
This example uses a MySQL DB with a table named tree with the fields id, name, and parent_id. The parent_id will be NULL for root elements. The SQL is kept simple (no autoinc, no FK, etc).
tags: AJAX, CTreeView

How to add ajax-loading indicators

Created 8 years ago by schmunkTutorials5 comments – viewed 58,255 times – ( +27 / -1 ) – version 1.1
With yii you're able to create ajax requests and updates easily. But most times you always want to show a loading indicatior to your user.
tags: AJAX

How to use imagine ( crop, thumb, effects for images ) on Yii2

Created 3 years ago by Anas AbuDayahTutorials3 comments – viewed 57,333 times – ( +8 / -1 ) – version 2.0
Imagine adds most common image functions and also acts as a wrapper to Imagine image manipulation library.

config Use MS SQL SERVER 2005 2008.

Created 6 years ago by vcxz_1982Tutorials2 comments – viewed 56,654 times – ( +4 / -1 ) – version 1.1
Use SQL SERVER 2000, the date format not like: yyyy/mm/dd hh:mm:ss. So I change to use SQL SERVER 2008 EXPRESS.

Yii for beginners 2

Created 4 years ago by rackyczTutorials2 comments – viewed 56,606 times – ( +32 / -1 ) – version 1.1
Hi :-) Is that you again? Welcome !! :-)

Drills : Search by a HAS_MANY relation in Yii 2.0

Created 3 years ago by softarkTutorials4 comments – viewed 56,292 times – ( +19 / -1 ) – version 2.0
This article tries to describe the practical techniques of searching by a HAS_MANY relation using ActiveRecord of Yii 2.0.

Introducción al control de acceso basado en roles (RBAC)

Created 7 years ago by Juan CalvoTutorials4 comments – viewed 55,483 times – ( +17 / -2 ) – version 1.1
Todos los que hemos empezado a utilizar Yii para crear aplicaciones Web, nos hemos dado de bruces cuando hemos intentado poner a funcionar el RBAC (acceso de control basado en roles).

Implementing a User Level Access System

Created 6 years ago by Antonio RamirezTutorials12 comments – viewed 54,527 times – ( +28 / -2 ) – version 1.1
I would like to provide you a quick tip on how to implement user level access to your Yii applications.

How to customize Yii core messages?

Created 8 years ago by qiangTutorials7 comments – viewed 54,401 times – ( +18 / -1 ) – 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: