Subject: Serialize function with parameter
Hi guys,
I'm trying to serialize a function with a parameter and I get a error. I saw the docs and says that I can serialize methods with no parameters.
What I want:
function Suscribed($userID) { //look up on another table if the user is suscribed to the action. }
then in my json I can get something like this:
{ id: 1, title: 'Something', Susbribed: false }
Regards,
June 27 2010
April 16, 2013
Subject: Serialize function with parameter
Hi guys,
I'm trying to serialize a function with a parameter and I get a error. I saw the docs and says that I can serialize methods with no parameters.
What I want:
function Suscribed($userID) {
//look up on another table if the user is suscribed to the action.
}
then in my json I can get something like this:
{ id: 1, title: 'Something', Susbribed: false }
Regards,