any way to passing data from controller to view file plz update
any way to passing data from controller to view file
Collapse
X
-
You could nicely ask the Controller with Ajax to deliver the data,or you could override actionRead and add the extradata there(The data is than avaible in your model).
orPHP Code:public function actionRead($params, $data, $request) { $r = parent::actionRead($params,$data,$request); $r->extraData ="I Like Espo."; return $r; }
which you can call under 'CRM/api/v1/{Your Entity}/action/extraData'.PHP Code:public function getActionExtradData($params,$data,$request) { $r= new \StdClass(); $r->extraData = 'I do not dislike Espo': return $r; }Last edited by Andorxor; 10-15-2019, 08:17 AM.Comment

Comment