Buy Now
Sign in

Reference array with PHP

ideagrup , January 02 at 09:15
i
ideagrup

I'm tyying cf6 and I have IMPORTANT question.

I read a record of one table. (Joomla-content for example)

IN CF6 the array is like this:
------------------------------------------------------------------------------
Array
(
[read_data10] => Array
(
[log] => Array
(
[0] => SELECT `article`.`id` AS `article.id`, `article`.`asset_id` AS `article.asset_id`, `article`.`title` AS `article.title` FROM `w47fa_content` AS `article` LIMIT 100;
)

[var] => Array
(
[article] => Array
(
[id] => 1
[asset_id] => 41
[title] => Bienvenidos a nuestra web
)
)
)
)
----------------------------------------------------------------

I like kwow what is the reference to "title" or change title
and save changes into database.

In CF5 was $form->data['article']
In CF6 I dont kwow do it

I have prove -> $this-data and different posibilities but imposible.

<?php
//chronoforms 5
$form->data['article']['title'] = "New title";
?>

<?php
//chronoforms 6 ?????
________________['article']['title'] = "New title";
?>

thanks