Welcome Guest, Not a member yet? Register   Sign In
JSON Formatting - Model
#1

[eluser]mglinski[/eluser]
Here is my JSON formatting Model I use for my web 2.0 apps.
It functions just like any other model, just upload and use.

It is built off the Zend Framework Code for JSON encoding.
It is self Documented using PHP comments.

Ill continue to develop it, add features etc. if there is a demand.
I hope JSON variable formating becomes default soon.

Download:
http://rapidshare.com/files/80838767/json.php

-Matt
#2

[eluser]xwero[/eluser]
Why have you chosen to make it a model? I can't find any database code in it. I partially can understand it because its function is to manipulate data but it's more a library than a model IMO.

As i glanced over the code i noticed you use zend functionality so which parts of it would you have to use to work with your class? Are you going to remove them in a future release for better CI integration?
#3

[eluser]mglinski[/eluser]
Its a model because it needs to be a class because its not my code, its pulled from the Zend Framework.
You cant do that with a plugin or helper(as far as i know), and I didn't think it was worth its own library.
It CAN be a library all you do is change the definition to a library type and move the file.

I will optimize and rewrite it once I am less busy building my latest project.
-Matt
#4

[eluser]xwero[/eluser]
Ok thanks for the explanation and sharing. I will keep my eye on it.




Theme © iAndrew 2016 - Forum software by © MyBB