{NL} - 3.4.3.2 CakePHP kern configuratie variabelen

De Configure klasse wordt gebruikt om een set van kern CakePHP configuratie variabelen te beheren. Deze variabelen kunnen worden gevonden in app/config.core.php. Hieronder staat een beschrijving van elke variabele en hoe deze je CakePHP applicatie beïnvloedt.

Configure variabele Beschrijving
debug Verandert de CakePHP debug output.

0 = Productie mode. Geen output.
1 = Toon fouten en waarschuwingen.
2 = Toon fouten, waarschuwingen en SQL.
3 = Toon fouten, waarschuwingen, SQL en een overzicht van alle controller variabelen.
App.baseUrl Verwijder het commentaar voor deze definitie als je niet van plan bent om Apache's mod_rewrite te gebruiken met CakePHP. Vergeet niet om ook je .htaccess bestanden te verwijderen.
Routing.admin Verwijder het commentaar voor deze definitie als je gebruik wilt maken van de voordelen van CakePHP's admin routes. Geef deze variabele de naam van de admin route die je wilt gebruiken. Meer over dit onderwerp komt later.
Cache.disable Wanneer deze variabele true is, dan is caching op de hele website uitgeschakeld.
Cache.check Wanneer deze variabele true is, dan is caching van views ingeschakeld. Het is dan nog steeds nodig om de caching aan te zetten in de controllers, maar deze variabele schakelt de detectie van die instellingen in.
Session.save Vertelt CakePHP welk mechanisme te gebruiken voor het opslaan van sessies.

php = Gebruik de standaard PHP sessie opslag.
cake = Sla de sessie gegevens op in /app/tmp
database = Sla de sessie gegevens op in een database tabel. Wees er zeker van dat je de tabellen aanmaakt met het SQL bestand dat zich bevindt in /app/config/sql/sessions.sql.
Session.table De naam van de tabel (zonder prefix) die de sessie informatie bevat.
Session.database De naam van de database die de sessie informatie bevat.
Session.cookie De naam van de cookie die gebruikt wordt om sessies te volgen.
Session.timeout Basis sessie timeout in seconden. De werkelijke waarde hangt af van Security.level.
Session.start Start de sessie automatisch wanneer de waarde true is.
Session.checkAgent Wanneer de waarde false is, zullen de CakePHP sessies niet controlleren of de user agent verandert tussen requests.
Security.level Het niveau van beveiliging in CakePHP. De sessie timeout tijd, die is gedefinieerd in 'Session.timeout', wordt vermenigvuldigt volgens de instellingen hier.

Geldige waarden:
'high' = x 10
'medium' = x 100
'low' = x 300

'high' en 'medium' maken ook session.referer_check mogelijk
Security.salt Een willekeurige tekenreeks die gebruikt wordt voor security hashing.
Acl.classname, Acl.database Constanten die worden gebruikt voor CakePHP's Access Control List functionaliteit. Meer informatie is te vinden in het hoofdstuk over Access Control Lists.

Cache configuratie is ook te vinden in core.php — Dit zal later worden behandelt, dus houd deze pagina in de gaten.

De Configure klasse kan gebruikt worden om kern configuratie instellingen te wijzigen wanneer je dat wilt. Dit kan bijvoorbeeld vooral handig zijn als je debug instellingen aan wilt zetten voor een bepaald stuk logica in je applicatie.

{EN} - 3.4.3.2 CakePHP Core Configuration Variables

The Configure class is used to manage a set of core CakePHP configuration variables. These variables can be found in app/config/core.php. Below is a description of each variable and how it affects your CakePHP application.

Configure Variable Description
debug Changes CakePHP debugging output.

0 = Production mode. No output.
1 = Show errors and warnings.
2 = Show errors, warnings, and SQL.
3 = Show errors, warnings, SQL, and complete controller dump.
App.baseUrl Un-comment this definition if you don’t plan to use Apache’s mod_rewrite with CakePHP. Don’t forget to remove your .htaccess files too.
Routing.admin Un-comment this definition if you’d like to take advantage of CakePHP admin routes. Set this variable to the name of the admin route you’d like to use. More on this later.
Cache.disable When set to true, caching is disabled site-wide.
Cache.check If set to true, enables view caching. Enabling is still needed in the controllers, but this variable enables the detection of those settings.
Session.save Tells CakePHP which session storage mechanism to use.

php = Use the default PHP session storage.
cake = Store session data in /app/tmp
database = store session data in a database table. Make sure to set up the table using the SQL file located at /app/config/sql/sessions.sql.
Session.table The name of the table (not including any prefix) that stores session information.
Session.database The name of the database that stores session information.
Session.cookie The name of the cookie used to track sessions.
Session.timeout Base session timeout in seconds. Actual value depends on Security.level.
Session.start Automatically starts sessions when set to true.
Session.checkAgent When set to false, CakePHP sessions will not check to ensure the user agent does not change between requests.
Security.level The level of CakePHP security. The session timeout time defined in 'Session.timeout' is multiplied according to the settings here.

Valid values:
'high' = x 10
'medium' = x 100
'low' = x 300

'high' and 'medium' also enable session.referer_check
Security.salt A random string used in security hashing.
Acl.classname, Acl.database Constants used for CakePHP’s Access Control List functionality. See the Access Control Lists chapter for more information.

Cache configuration is also found in core.php — We’ll be covering that later on, so stay tuned.

The Configure class can be used to read and write core configuration settings on the fly. This can be especially handy if you want to turn the debug setting on for a limited section of logic in your application, for instance.

Differences

Lines: 1-150Lines: 1-149
-<title>CakePHP Core Configuration Variables</title>
<p>The Configure class is used to manage a set of core CakePHP configuration variables. These variables can be found in app/config/core.php. Below is a description of each variable and how it affects your CakePHP application.</p>
+<title>CakePHP kern configuratie variabelen</title>
<p>De <em>Configure</em> klasse wordt gebruikt om een set van kern CakePHP configuratie variabelen te beheren. Deze variabelen kunnen worden gevonden in app/config.core.php. Hieronder staat een beschrijving van elke variabele en hoe deze je CakePHP applicatie beïnvloedt.</p>
 <table> <table>
  <tr>  <tr>
  <th>  <th>
- Configure Variable + <em>Configure</em> variabele
  </th>  </th>
  <th>  <th>
- Description + Beschrijving
  </th>  </th>
  </tr>  </tr>
  <tr>  <tr>
  <td>  <td>
  debug  debug
  </td>  </td>
  <td>  <td>
- Changes CakePHP debugging output.<br /> + Verandert de CakePHP debug <em>output</em>.<br />
  <br />  <br />
- 0 = Production mode. No output.<br />
1 = Show errors and warnings.<br />
2 = Show errors, warnings, and SQL.<br />
3 = Show errors, warnings, SQL, and complete controller dump.<br />
+ 0 = Productie mode. Geen <em>output</em>.<br />
1 = Toon fouten en waarschuwingen.<br />
2 = Toon fouten, waarschuwingen en SQL.<br />
3 = Toon fouten, waarschuwingen, SQL en een overzicht van alle <em>controller</em> variabelen.<br />
  </td>  </td>
  </tr>  </tr>
  <tr>  <tr>
  <td>  <td>
  App.baseUrl  App.baseUrl
  </td>  </td>
  <td>  <td>
- Un-comment this definition if you <strong>dont</strong> plan to use Apaches mod_rewrite with CakePHP. Don’t forget to remove your .htaccess files too. + Verwijder het commentaar voor deze definitie als je <strong>niet</strong> van plan bent om Apache's mod_rewrite te gebruiken met CakePHP. Vergeet niet om ook je .htaccess bestanden te verwijderen.
  </td>  </td>
  </tr>  </tr>
  <tr>  <tr>
  <td>  <td>
  Routing.admin  Routing.admin
  </td>  </td>
  <td>  <td>
- Un-comment this definition if you’d like to take advantage of CakePHP admin routes. Set this variable to the name of the admin route you’d like to use. More on this later. + Verwijder het commentaar voor deze definitie als je gebruik wilt maken van de voordelen van CakePHP's admin routes. Geef deze variabele de naam van de admin route die je wilt gebruiken. Meer over dit onderwerp komt later.
  </td>  </td>
  </tr>  </tr>
  <tr>  <tr>
  <td>  <td>
  Cache.disable  Cache.disable
  </td>  </td>
  <td>  <td>
- When set to true, caching is disabled site-wide. + Wanneer deze variabele <em>true</em> is, dan is <em>caching</em> op de hele website uitgeschakeld.
  </td>  </td>
  </tr>  </tr>
  <tr>  <tr>
  <td>  <td>
  Cache.check  Cache.check
  </td>  </td>
  <td>  <td>
- If set to true, enables view caching. Enabling is still needed in the controllers, but this variable enables the detection of those settings. + Wanneer deze variabele <em>true&lt;/em> is, dan is <em>caching</em> van views ingeschakeld. Het is dan nog steeds nodig om de &lt;em>caching&lt;/em> aan te zetten in de controllers, maar deze variabele schakelt de detectie van die instellingen in.
  </td>  </td>
  </tr>  </tr>
  <tr>  <tr>
  <td>  <td>
  Session.save  Session.save
  </td>  </td>
  <td>  <td>
- Tells CakePHP which session storage mechanism to use.<br /> + Vertelt CakePHP welk mechanisme te gebruiken voor het opslaan van sessies.<br />
  <br />  <br />
- php = Use the default PHP session storage.<br />
cake = Store session data in /app/tmp<br />
database = store session data in a database table. Make sure to set up the table using the SQL file located at /app/config/sql/sessions.sql.
+ php = Gebruik de standaard PHP sessie opslag.<br />
cake = Sla de sessie gegevens op in /app/tmp<br />
database = Sla de sessie gegevens op in een database tabel. Wees er zeker van dat je de tabellen aanmaakt met het SQL bestand dat zich bevindt in /app/config/sql/sessions.sql.
  </td>  </td>
  </tr>  </tr>
  <tr>  <tr>
  <td>  <td>
  Session.table  Session.table
  </td>  </td>
  <td>  <td>
- The name of the table (not including any prefix) that stores session information. + De naam van de tabel (zonder prefix) die de sessie informatie bevat.
  </td>  </td>
  </tr>  </tr>
  <tr>  <tr>
  <td>  <td>
  Session.database  Session.database
  </td>  </td>
  <td>  <td>
- The name of the database that stores session information. + De naam van de database die de sessie informatie bevat.
  </td>  </td>
  </tr>  </tr>
  <tr>  <tr>
  <td>  <td>
  Session.cookie  Session.cookie
  </td>  </td>
  <td>  <td>
- The name of the cookie used to track sessions. + De naam van de <em>cookie</em> die gebruikt wordt om sessies te volgen.
  </td>  </td>
  </tr>  </tr>
  <tr>  <tr>
  <td>  <td>
  Session.timeout  Session.timeout
  </td>  </td>
  <td>  <td>
- Base session timeout in seconds. Actual value depends on Security.level. + Basis sessie <em>timeout</em> in seconden. De werkelijke waarde hangt af van Security.level.
  </td>  </td>
  </tr>  </tr>
  <tr>  <tr>
  <td>  <td>
  Session.start  Session.start
  </td>  </td>
  <td>  <td>
- Automatically starts sessions when set to true. + Start de sessie automatisch wanneer de waarde <em>true</em> is.
  </td>  </td>
  </tr>  </tr>
  <tr>  <tr>
  <td>  <td>
  Session.checkAgent  Session.checkAgent
  </td>  </td>
  <td>  <td>
- When set to false, CakePHP sessions will not check to ensure the user agent does not change between requests. + Wanneer de waarde <em>false</em> is, zullen de CakePHP sessies niet controlleren of de <em>user agent</em&gt; verandert tussen <em>requests</em>.
  </td>  </td>
  </tr>  </tr>
  <tr>  <tr>
  <td>  <td>
  Security.level  Security.level
  </td>  </td>
  <td>  <td>
- The level of CakePHP security. The session timeout time defined in 'Session.timeout' is multiplied according to the settings here.<br /> + Het niveau van beveiliging in CakePHP. De sessie <em>timeout</em> tijd, die is gedefinieerd in 'Session.timeout', wordt vermenigvuldigt volgens de instellingen hier.<br />
  <br />  <br />
- Valid values:<br /> + Geldige waarden:<br />
  'high' = x 10<br />  'high' = x 10<br />
  'medium' = x 100<br />  'medium' = x 100<br />
  'low' = x 300<br /><br />  'low' = x 300<br /><br />
- 'high' and 'medium' also enable <a href="http://www.php.net/manual/en/session.configuration.php#ini.session.referer-check">session.referer_check</a> + 'high' en 'medium' maken ook <a href="http://www.php.net/manual/en/session.configuration.php#ini.session.referer-check">session.referer_check</a> mogelijk
  </td>  </td>
  </tr>  </tr>
  <tr>  <tr>
  <td>  <td>
  Security.salt  Security.salt
  </td>  </td>
  <td>  <td>
- A random string used in security hashing. + Een willekeurige tekenreeks die gebruikt wordt voor <em>security hashing</em>.
  </td>  </td>
  </tr>  </tr>
  <tr>  <tr>
  <td>  <td>
  Acl.classname, Acl.database  Acl.classname, Acl.database
  </td>  </td>
  <td>  <td>
- Constants used for CakePHPs Access Control List functionality. See the Access Control Lists chapter for more information. + Constanten die worden gebruikt voor CakePHP's <em>Access Control List</em> functionaliteit. Meer informatie is te vinden in het hoofdstuk over <em>Access Control Lists&lt;/em&gt;.
  </td>  </td>
  </tr>  </tr>
 </table> </table>
-<p class="note">Cache configuration is also found in core.php — We’ll be covering that later on, so stay tuned.</p>
<p>The Configure class can be used to read and write core configuration settings on the fly. This can be especially handy if you want to turn the debug setting on for a limited section of logic in your application, for instance.</p>
+<p class="note"><em>Cache</em> configuratie is ook te vinden in core.php — Dit zal later worden behandelt, dus houd deze pagina in de gaten.</p>
<p>De <em>Configure</em> klasse kan gebruikt worden om kern configuratie instellingen te wijzigen wanneer je dat wilt. Dit kan bijvoorbeeld vooral handig zijn als je &lt;em>debug</em> instellingen aan wilt zetten voor een bepaald stuk logica in je applicatie.</p>