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 11 years ago by Selvakumar Kaliyappan Selvakumar Kaliyappan, updated 11 years ago by CeBe 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: 74 861 times
Version: 1.1
Category: How-tos

How to apply a layout to an AJAX update

Created 11 years ago by trond trond, updated 11 years ago by CeBe 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: 18 221 times
Version: 1.1
Category: How-tos
Tags: AJAX, views

How to implement magento cron on yii

Created 11 years ago by Ankit Modi Ankit Modi, updated 11 years ago by CeBe 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: 22 061 times
Version: 1.1
Category: How-tos

How to create Module based Login

Created 11 years ago by Ibrar Turi Ibrar Turi, updated 11 years ago by CeBe 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: 23 270 times
Version: 1.1
Category: How-tos

Simple Multiple Environment Setup with Default Yii Installation

Created 11 years ago by Ibrar Turi Ibrar Turi, updated 11 years ago by CeBe 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: 18 468 times
Version: 1.1
Category: How-tos

Simple Web APIs for your Yii App

Created 11 years ago by shiv shiv, updated 11 years ago by CeBe 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: 35 027 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 11 years ago by toph toph, updated 8 years ago by toph toph.

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

0 0
5 followers
Viewed: 56 454 times
Version: 1.1
Category: How-tos

HOW TO: Use token based authentication

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

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

2 0
10 followers
Viewed: 46 454 times
Version: 1.1
Category: How-tos

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

Created 11 years ago by ruderbytes ruderbytes, updated 10 years ago by ruderbytes 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: 44 720 times
Version: 1.1
Category: How-tos

How-To: Create Token Authenticated Web Services

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

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

4 0
15 followers
Viewed: 39 461 times
Version: 1.1
Category: How-tos

A Multi-Tenant Strategy using Yii and MySQL

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

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

7 0
23 followers
Viewed: 51 268 times
Version: 1.1
Category: How-tos

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

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

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

2 0
6 followers
Viewed: 44 582 times
Version: 1.1
Category: How-tos

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

Created 11 years ago by MikeT MikeT, updated 5 years ago by Maurizio Domba Cerin Maurizio Domba Cerin.

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 1
2 followers
Viewed: 15 557 times
Version: 1.1
Category: How-tos
Tags: email, mail

ClientValidation for files (modern browsers)

Created 11 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz), updated 11 years ago by CeBe 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: 19 731 times
Version: 1.1
Category: How-tos

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

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

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

1 0
9 followers
Viewed: 37 585 times
Version: 1.1
Category: How-tos

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

Created 11 years ago by kalpit kalpit, updated 11 years ago by CeBe 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: 23 182 times
Version: 1.1
Category: How-tos

Yii CGridView add custom button

Created 11 years ago by Arockia Johnson SR Arockia Johnson SR, updated 11 years ago by CeBe 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: 51 110 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 11 years ago by Gerhard Liebenberg Gerhard Liebenberg, updated 9 years ago by Gerhard Liebenberg 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
6 followers
Viewed: 66 217 times
Version: 1.1
Category: How-tos

Caching strategy

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

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

3 1
12 followers
Viewed: 13 228 times
Version: 1.1
Category: How-tos

two or more different collected data in one CGridView

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

Assume that you have teachers and students model.

2 1
6 followers
Viewed: 19 763 times
Version: 1.1
Category: How-tos