{CZ} - 3.4.3.1.1 write

write(string $key, mixed $value)

Použijte write() k uložení dat do konfigurace aplikace.

Configure::write('Company.name','Pizza, Inc.');
Configure::write('Company.slogan','Pizza for your body and soul');
  1. Configure::write('Company.name','Pizza, Inc.');
  2. Configure::write('Company.slogan','Pizza for your body and soul');

Využívejte tečkové notace v $key parametru k organizování dat do logických skupin.

Příklad výše může být napsán i jedním příkazem:

Configure::write(
    'Company',array('name'=>'Pizza, Inc.','slogan'=>'Pizza for your body and soul')
);
  1. Configure::write(
  2. 'Company',array('name'=>'Pizza, Inc.','slogan'=>'Pizza for your body and soul')
  3. );

Můžeš také použít Configure::write('debug', 0) k přepínání z debug do produkčního módu za běhu. Toto je speciálně šikovné pro spolupráci AMF a SOAP, kde debugovací informace mohou být důvodem parsovacích problémů.

{EN} - 3.4.3.1.1 write

write(string $key, mixed $value)

Use write() to store data in the application’s configuration.

Configure::write('Company.name','Pizza, Inc.');
Configure::write('Company.slogan','Pizza for your body and soul');
  1. Configure::write('Company.name','Pizza, Inc.');
  2. Configure::write('Company.slogan','Pizza for your body and soul');

the usage of dot notation in the $key parameter. You can use this notation to organize your configuration into logical groups.

The above example could also be written in a single call:

Configure::write(
    'Company',array('name'=>'Pizza, Inc.','slogan'=>'Pizza for your body and soul')
);
  1. Configure::write(
  2. 'Company',array('name'=>'Pizza, Inc.','slogan'=>'Pizza for your body and soul')
  3. );

You can use Configure::write('debug', $int) to switch between debug and production modes on the fly. This is especially handy for AMF or SOAP interactions where debugging information can cause parsing problems.

Differences

Lines: 1-15Lines: 1-15
 <title>write</title> <title>write</title>
 <p class="method"><code>write(string $key, mixed $value)</code></p> <p class="method"><code>write(string $key, mixed $value)</code></p>
-<p>Use <code>write()</code> to store data in the application’s configuration.</p> +<p>Použijte <code>write()</code> k ulože dat do konfigurace aplikace.</p>
 <pre> <pre>
 Configure::write('Company.name','Pizza, Inc.'); Configure::write('Company.name','Pizza, Inc.');
 Configure::write('Company.slogan','Pizza for your body and soul'); Configure::write('Company.slogan','Pizza for your body and soul');
 </pre> </pre>
-<p class="note">the usage of dot notation in the <code>$key</code> parameter. You can use this notation to organize your configuration into logical groups.</p>
<p>The above example could also be written in a single call:</p>
+<p class="note">Využívejte tečko notace v <code>$key</code> parametru k organizování dat do logických skupin.</p>
<p>Příklad výše může být napsán i jedním příkazem:</p>
 <pre> <pre>
 Configure::write( Configure::write(
  'Company',array('name'=&gt;'Pizza, Inc.','slogan'=&gt;'Pizza for your body and soul')  'Company',array('name'=&gt;'Pizza, Inc.','slogan'=&gt;'Pizza for your body and soul')
 ); );
 </pre> </pre>
-<p>You can use <code>Configure::write('debug', $int)</code> to switch between debug and production modes on the fly. This is especially handy for AMF or SOAP interactions where debugging information can cause parsing problems.</p> +<p>Můžeš ta použít <code>Configure::write('debug', )</code> k enání z debug do produkčního módu za hu. Toto je speciál šikovné pro spolupráci AMF a SOAP, kde debugovací informace mohou být důvodem parsovacích problémů.</p>