Hi there,
I’m quite new and unexperienced in using Cakephp (Version 3.4.2), but working myself through it. For an application I want to integrate Google Map, and for the first step all Im asking for is a simple Map, but the problem keeps me busy now for 3 days… I downloaded the marcferna CakePHP-GoogleMapHelper for Cakephp 3.x, and followed the installation guide. But instead of a map all im receiving is Fatal Error Excpetion “Error: Unsupported operand types” "File C:\xampp\htdocs\cakephp\bookmarks\vendor\cakephp\cakephp\src\View\Helper\HtmlHelper.php Line: 530 "
public function script($url, array $options = [])
{
$defaults = ['block' => null, 'once' => true];
$options += $defaults; //Line 530
if (is_array($url)) {
$out = '';
foreach ($url as $i) {
$out .= "\n\t" . $this->script($i, $options);
}
if (empty($options['block'])) {
return $out . "\n";
}
return null;
}
My problem is that I dont even understand the Errormessage and what Im doing wrong or what to do instead.
I would be very happy about a little guidance (I know there are already similar questions but unfortunately it didnt help me), so that I can understand how to integrate a map in my view.
Thank you!