This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

julivee
julivee

I am wondering how to push values in an associative array without having to brute force it. October is using $this for the variable to be used in the markup page but I don't know how to add values into an associative array with $this. Does anyone know how to do it?

raw99
raw99

$this->some_array['something'] = ['some_key' => 'some data'];

Last updated

julivee
julivee

I tried this:
$this->div_content['title'] = $row->value;
but I'm getting this error:
Indirect modification of overloaded property Cms555e933ac8fd3_2455129006Class::$div_content has no effect

Last updated

1-3 of 3

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.