Wiki

Sorted by viewsX
Displaying 121-130 of 785 result(s).

[Guide] How to actually separate Frontend (User) and Backend (Admin) on Yii2 Advanced

Created 2 years ago by Wade ShulerHow-tos2 comments – viewed 58,238 times – ( +17 / -2 ) – version 2.0
I am writing this guide because I struggled to find a resource that included ALL of the necessary steps to completely separate the frontend from the backend. After reading guides like Configuring different sessions for backend and frontend in yii-advanced-app and yii2 configuring different sessions for backend and frontend in yii advanced application template, there are still steps missing. It is funny how the 2nd one says it is an extension of the first one's article. So I guess, my wiki guide here is yet a 3rd and more complete extension of both of them. I also found a few StackOverflow questions and blog posts regarding this topic. None of them fully worked, and must be missing some magic sauce!

Saving files to a blob field in the database

Created 6 years ago by zaccariaTips8 comments – viewed 58,232 times – ( +9 / -3 ) – version 1.1
As a follow-up from the How to upload a file using a model wiki entry that explains how to save a file to the filesystem, this article will do the same using a blob field in the database.
tags: File upload

Module based login

Created 6 years ago by suriyansureshTutorials6 comments – viewed 58,076 times – ( +14 / -1 ) – version 1.1
If you want to add module based login to a site without using RBAC, please follow these guidelines.

How to write a simple application component

Created 6 years ago by zaccariaHow-tos5 comments – viewed 57,892 times – ( +20 / -8 ) – version 1.1
An application component is a confortable way for share information among all component of the application

Display an AJAX tree from your DB using CTreeView

Created 7 years ago by François GannazTutorials10 comments – viewed 57,852 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

Updating fields on a form with Ajax and Json

Created 6 years ago by Russell EnglandHow-tos4 comments – viewed 57,561 times – ( +12 / -2 ) – version 1.1
I'm developing a website that has an option to look up a car's registration number via SOAP and return additional details such as make, model, colour etc.

Working with radiobutton list

Created 5 years ago by vibhaJadwaniTutorials3 comments – viewed 57,518 times – ( +10 / -1 ) – version 1.1
This is a tutorial to work with radioButtonList which will handle enum datatype. Form design and validation both are detailed here.

How to add ajax-loading indicators

Created 8 years ago by schmunkTutorials5 comments – viewed 57,292 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

Custom Number Formatting or Decimal Separators and i18n

Created 5 years ago by c@cbaTutorials8 comments – viewed 57,272 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...

How to use single form to collect data for two or more models (CActiveForm and Ajax Validation edition)

Created 6 years ago by RusAlexHow-tos9 comments – viewed 56,979 times – ( +22 / -1 ) – version 1.1
With Yii you can use one CActiveForm for collecting data for two or more models with ajax validation and client validation.