yiiparsedb This adds parse.com database to your application where you can operate parse objects from Yii

  1. Requirements
  2. Usage

...overview of the extension...

Requirements ¶

Yii 1.1 or above

Usage ¶

Download and extract ParseYii extension and put in protected/extensions then open parse.php file there you can find code for defining constants as below

       const APP_ID="";
   const REST_API_ID ="";
   const MASTER_ID =""; 

find your parse.com application details and put in front of right constants.

then open your application's /protected/config/main.php file

there add this parse array in components array

       'components'=>array(
          'parse' => array(
		'class' => 'application.extensions.ParseYii.Parse',
	),
     ...........
     ),

I have Users class/table in parse.com which contains

{

    "createdAt": "2014-08-21T09:08:17.460Z",
    "email": "khajaamin@gmail.com",
    "first_name": "khajaamin",
    "last_name": "attar",
    "objectId": "VswIdA5gWo",
    "password": "123456",
    "updatedAt": "2014-08-21T09:08:17.460Z"
},

in your actions or module put this simple code for usage of your class from parse.com

     $p=Yii::app()->parse->setTable('Users');
     $e=$p->insert(array('first_name'=>"khajaamin",'last_name'=>"attar",
  'email'=>"khajaamin@gmail.com",'password'=>"123456"));
  print_r($e);
	

Note : change array key and value whatever your class having in the parse.com's class for storing data.

Now this is working for simple operation i request to build whatever you can or you can request e to build it for you

http://ngnerd.com
coming soon with great Yii & Angular framework

Thanks

0 0
5 followers
340 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: Database
Developed by: khajaamin khajaamin
Created on: Aug 20, 2014
Last updated: 11 years ago

Downloads

show all

Related Extensions