Wiki

Sorted by viewsX
Displaying 391-400 of 785 result(s).

Avoiding duplicate script download when using CActiveForm on Ajax calls

Created 6 years ago by Antonio RamirezTutorials2 comments – viewed 20,291 times – ( +12 / -2 ) – version 1.1
Sometimes the active form we wish to use to edit/add a new element on our database is too small and we believe that is much better to use an AJAX'ed dialog/slide form rather than reloading the page to just display one or two fields.

How to use Highslide for image popups

Created 8 years ago by mocapapaTutorials0 comments – viewed 20,213 times – ( +1 / -1 ) – version 1.1
You can download the highslide javascript from http://highslide.com/. And here is an explanation on that URL;
tags: image, popups

Cheat Sheet: Displaying Name instead of Numbers and Displaying Alphanumeric instead of numeric values

Created 4 years ago by skwordenHow-tos4 comments – viewed 20,165 times – ( +4 / -2 ) – version 1.1
I keep a reference to some simple but painful task if you forget a common or something. I am new to Yii and this took awhile for me to figure out. Everything I read said do this or do that and not a single one worked for me. However, the following did.

How to use Smarty renderer in Yii

Created 6 years ago by dongbetaHow-tos2 comments – viewed 19,898 times – ( +4 / -1 ) – version 1.1
At first, create a class named SmartyRenderer under application/components or any directory you want.
tags: smarty, renderer

How to setup FCKeditor

Created 8 years ago by krillzipTutorials2 comments – viewed 19,857 times – ( +3 / -2 ) – version 1.1
To start with you need to download the latest stable release of FCKeditor. Extract the downloaded file and place the fckeditor/ folder in your applications webroot directory.

What to do when composer fails to update your vendor packages?

Created 3 years ago by Kartik VTutorials0 comments – viewed 19,845 times – ( +39 / -6 ) – version 2.0
Have you faced some of these problems when using composer with your Yii 2 installation?

Performance - A Guide For Best Practice

Created 7 years ago by Y!!Tutorials3 comments – viewed 19,776 times – ( +8 / -6 ) – version 1.1
In this guide I will explain best practise regarding performance in MySQL, PHP and of course our loved Yii Framework. Since this is a complex topic, I will start with some basics and then expand this guide from time to time. Since this wiki can become big, you may click on View history - there you can see what changes have been made, so you don't miss anything.
tags: performance

Log Activity in DataBase

Created 4 years ago by mahdi1986Tutorials7 comments – viewed 19,638 times – ( +8 / -1 ) – version 1.1
In this article i will explain how to customize log activity in database, Imaging you need to save IP user, Url request and user_name in database,But table created by default with Yii only have id,level,category,logtime and message

Simple Web APIs for your Yii App

Created 3 years ago by shivHow-tos4 comments – viewed 19,638 times – ( +2 / -3 ) – version 1.1
Its very common now-a-days to have Mobile app for web apps. For Mobile apps we need web APIs to fetch data or even post/update on web. We found a very simple method to make such interface. Mobile App can call plain get or post request and receive data back in JSON format. JSON is relatively easy for mobile app to handle while plain standard GET/POST request for easy for Web server to handle. This mixed approach saves lot of time on server side. We not really need to handle actual REST requests and still be able to exchange data between web and mobiles or ajax java-scripts or even node.js.
tags: API, JSON

Simple Way to Upload and Save File

Created 2 years ago by Misbahul D MunirTutorials0 comments – viewed 19,502 times – ( -3 ) – version 2.0
This tutorial need extension mdmsoft/yii2-upload-file. Follow the intruction to install. After installation done, create controller and action