Joomla 3.5.1
FLEXIcontent 3.0.14-rc2a
MySQL 5.6.26-cll-lve (dbtype mysqli )
PHP 7.0.3
i'm change nesesry fileds from this script
FLEXIcontent item by calling the FLEXIcontent item model in custom code
// Type and language
$data['type_id'] = 1; // e.g. 1 for article //ok not error
$data['language']= 'en-GB'; // e.g. 'en-GB' //ok not error
/*-------------------------------------*/
$data['catid'] = 1; // INTEGER ... the main category of the item category !!! NULL ADMIN PANEL!!!
$data['cid'] = array(7,8,9); //e.g. array(55,117,56) an array of the secondary categories of the item !!! NULL ADMIN PANEL!!!
/*-------------------------------------*/
$data['vstate'] = 2; // item version is approved //Set state as : waiting for approval (unpublished)
$data['state'] = 1; // 1 for published ...
/*-------------------------------------*/
$data['created_by'] = 860; // !!! NULL ADMIN PANEL!!!
This is file from add
File Attachment:
File Name:
q.txt
File Size:5 KB
What is problems? What is fix?