Laravel/Change configuration/en

From Aimeos documentation

< Laravel‎ | Change configuration

<languages/>

The core library contains a lot of configuration options documented in the Configuration section that can be changed in the config/shop.php file and they are displayed in the documentation like this:

client/html/catalog/filter/default/button = 1

Laravel uses normal PHP arrays for configuration. As a rule of thumb, replace each part separated by a slash (/) by "'..' => array('...'),":

  1. 'client' => array(
  2.     'html' => array(
  3.         'catalog' => array(
  4.             'filter' => array(
  5.                 'default' => array(
  6.                     'button' => 1,
  7.                 ),
  8.             ),
  9.         ),
  10.     ),
  11. ),

The same works with arrays of values as well. Since PHP 5.4 you can also use the short syntax with the square brackets ([ and ]):

  1. 'client' => array(
  2.     'html' => array(
  3.         'catalog' => array(
  4.             'filter' => array(
  5.                 'default' => array(
  6.                     'subparts' => ['search', 'tree', 'attribute'],
  7.                 ),
  8.             ),
  9.         ),
  10.     ),
  11. ),

All keys and values must be enclosed in single quotes ('):

  1. 'test' => 'my test value'

Some values can contain a dollar sign, which would be interpreted as variable if enclosed in double quotes. Thus, it's better to always use single quotes!

  1. 'test' => '%1$s%2$s'