Wiki articles in category How-tos

Showing 61-80 of 292 items.

Upload image and content using AJAX and Store it in different table

Created 5 years ago by Selvakumar Kaliyappan, updated 5 years ago by CeBe.

var formData = new FormData($("#post-form")[0]);
$.ajax({
    url: '<?php echo Yii::app()->createUrl("forumPost/uploadPost"); ?>',
    type: 'POST',
    data: formData,
    datatype:'json',
    // as...
1 0
5 followers
Viewed: 60 626 times
Version: 1.1
Category: How-tos

How to apply a layout to an AJAX update

Created 5 years ago by trond, updated 5 years ago by CeBe.
  1. The Main template holds the header, main navigation and footer
  2. One or more layout files holds the column setup, sub navigation etc.
  3. The view files hold the actual page content.
1 0
4 followers
Viewed: 11 367 times
Version: 1.1
Category: How-tos
Tags: AJAX, views

How to implement magento cron on yii

Created 5 years ago by Ankit Modi, updated 5 years ago by CeBe.

Hi Friends, First I would to say sorry but I am not very familiar to magento so after a 1 week spend I will implement the magneto cron functionality on yii I hope it's may be some helpful.

0 0
3 followers
Viewed: 7 150 times
Version: 1.1
Category: How-tos

How to create Module based Login

Created 5 years ago by Ibrar Turi, updated 5 years ago by CeBe.

Lets say we have 3 modules (customer, user, admin) in an application and we need, separate logins for each module.

1 0
7 followers
Viewed: 16 443 times
Version: 1.1
Category: How-tos

Simple Multiple Environment Setup with Default Yii Installation

Created 5 years ago by Ibrar Turi, updated 5 years ago by CeBe.

After installing Yii basic application on our systems, most of the time we want to have multiple environment such as local, dev and live setup. Most of the times when we want to make changes to configuration file, we have to over-write configurations file for each environment.

2 0
8 followers
Viewed: 10 588 times
Version: 1.1
Category: How-tos

Simple Web APIs for your Yii App

Created 5 years ago by shiv, updated 5 years ago by CeBe.

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...

1 2
10 followers
Viewed: 24 406 times
Version: 1.1
Category: How-tos
Tags: API, JSON

How to create a criteria condition for a multiple value text search i.e a "LIKE IN"

Created 5 years ago by toph, updated 2 years ago by toph.

This is a shortcut for adding a text search for multiple values i.e.

0 0
6 followers
Viewed: 45 465 times
Version: 1.1
Category: How-tos

HOW TO: Use token based authentication

Created 5 years ago by le_top, updated 5 years ago by CeBe.

After reading the other wiki article regarding token based access, I thought that it might be interesting to share my method.

2 0
9 followers
Viewed: 30 209 times
Version: 1.1
Category: How-tos

How to Create Pdf Report / Excel Report By Using Parameters (From - Until)

Created 5 years ago by ruderbytes, updated 4 years ago by ruderbytes.

Asslamualaikum Wr.Wb Hello I'm Fahmi Azain i will share wiki tutorial about Creating Pdf Report / Excel Report by using Parms / Parameters.

0 2
7 followers
Viewed: 32 239 times
Version: 1.1
Category: How-tos

How-To: Create Token Authenticated Web Services

Created 5 years ago by hemc, updated 5 years ago by CeBe.

This article is about implementing authentication to Yii based web services.

4 0
15 followers
Viewed: 30 841 times
Version: 1.1
Category: How-tos

A Multi-Tenant Strategy using Yii and MySQL

Created 5 years ago by JFReyes, updated 5 years ago by CeBe.

This article describes an implementation of multi-tenancy using Yii and MySQL.

6 0
23 followers
Viewed: 32 067 times
Version: 1.1
Category: How-tos

Take more control of CGridview and model searching (related model or another controller)

Created 5 years ago by Kostas Apazidis (KonApaz), updated 5 years ago by CeBe.

Suppose you have an Application in Yii that manages hotels each one has many customers.

2 0
6 followers
Viewed: 35 424 times
Version: 1.1
Category: How-tos

Using Apostle.io to send formatted, trackable emails from Yii applications

Created 5 years ago by MikeT, updated 5 years ago by CeBe.

Apostle provides a nifty facility for sending app-generated, transactional emails from your application including Wordpress-like mail formatting and full tracking (delivery, opening, clicking etc.) of all emails sent. No need to set up email facilities on your app server!

2 0
1 follower
Viewed: 6 504 times
Version: 1.1
Category: How-tos
Tags: email, mail

ClientValidation for files (modern browsers)

Created 5 years ago by Kostas Apazidis (KonApaz), updated 5 years ago by CeBe.

There are cases that you want to validate the file format, size, extension etc but how to do that without submit the form ?

2 0
6 followers
Viewed: 13 020 times
Version: 1.1
Category: How-tos

Update a part of content using AJAX when select a GridView row

Created 5 years ago by Kostas Apazidis (KonApaz), updated 5 years ago by CeBe.

Suppose you want to refresh a form or any content when a single row of CGridView is selected

1 0
9 followers
Viewed: 26 069 times
Version: 1.1
Category: How-tos

Create/Develop View files with plain HTML (Without using ActiveForm Class)

Created 5 years ago by kalpit, updated 5 years ago by CeBe.

Today i want to share with you is "How can we write HTML Code in view files? I am writing this article because many times we can not use CActiveForm to design our form...

2 2
6 followers
Viewed: 16 068 times
Version: 1.1
Category: How-tos

Yii CGridView add custom button

Created 5 years ago by Arockia Johnson SR, updated 5 years ago by CeBe.

Hi buddies !, This tutorial shows about how to add a custom button with your own icon for your CGridView of Yii framework

3 0
7 followers
Viewed: 40 302 times
Version: 1.1
Category: How-tos

Sort and filter a custom or composite CGridView column - that may even contain data from different tables.

Created 5 years ago by Gerhard Liebenberg, updated 3 years ago by Gerhard Liebenberg.

I have a table (account) which contains "General Ledger" accounts. Each account has its own account_description - such as 'inventory', 'sales', etc.

6 0
7 followers
Viewed: 59 854 times
Version: 1.1
Category: How-tos

Caching strategy

Created 5 years ago by darkheir, updated 5 years ago by CeBe.

Note: Before reading this wiki you should have read the caching part in the Yii guide

3 1
12 followers
Viewed: 9 028 times
Version: 1.1
Category: How-tos

two or more different collected data in one CGridView

Created 5 years ago by Kostas Apazidis (KonApaz), updated 5 years ago by CeBe.

Assume that you have teachers and students model.

2 1
6 followers
Viewed: 13 700 times
Version: 1.1
Category: How-tos