njson Extends the capabilities the CJSON to traverse ActiveRecord objects relations

  1. Requirements
  2. Usage
  3. Resources

While working on a project we faced the need to sync data between the browser and the server in JSON format, most of these data are ActiveRecord(s), after some search we found "ejsonbehavior" ... it is really a cool extension but unfortunately the output was not as we expected, so we decided to extend the capabilities of the CJSON to allow traversing ARs relations

Requirements

Developed and tested under Yii 1.1.13

Usage

Simply

NJSON::encode(SomeModel::model()->with('relation', 'relation.deep_relation')->findAll());

Resources

3 0
9 followers
426 downloads
Yii Version: Unknown
License: BSD-2-Clause
Category: Others
Developed by: Amr Bedair
Created on: Jun 19, 2013
Last updated: 5 years ago

Downloads

show all

Related Extensions