Subversion Repositories SmartDukaan

Rev

Rev 13562 | Rev 13672 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13562 Rev 13583
Line 65... Line 65...
65
			$this->response->type('json');
65
			$this->response->type('json');
66
			$this->layout = 'ajax';
66
			$this->layout = 'ajax';
67
			$callback = $this->request->query('callback');
67
			$callback = $this->request->query('callback');
68
			$this->UserAction->recursive = -1;
68
			$this->UserAction->recursive = -1;
69
			$conditions = array('user_id' => $user_id);
69
			$conditions = array('user_id' => $user_id);
70
			$result['actions'] = $this->UserAction->find('all',$conditions);
70
			$result['actions'] = $this->UserAction->find('all',array('conditions'=>$conditions));
71
			$this->set(array(
71
			$this->set(array(
72
			    'result' => $result,
72
			    'result' => $result,
73
			    'callback' => $callback,
73
			    'callback' => $callback,
74
			    '_serialize' => array('result')
74
			    '_serialize' => array('result')
75
			));
75
			));
76
			$this->render('/Elements/jsonp');
76
			$this->render('/Elements/json');
77
		}
77
		}
78
	}
78
	}
79
/**
79
/**
80
 * index method
80
 * index method
81
 *
81
 *