mirror of
				https://github.com/smarty-php/smarty.git
				synced 2025-11-04 14:21:36 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			56 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			56 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
<?xml version="1.0" encoding="iso-8859-1"?>
 | 
						|
<!-- $Revision$ -->
 | 
						|
<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready -->
 | 
						|
 | 
						|
<sect1 id="variable.debugging.ctrl">
 | 
						|
 <title>$debugging_ctrl</title>
 | 
						|
 <para>
 | 
						|
  Cela permet d'avoir différents moyens pour activer
 | 
						|
  le débogage. <literal>NONE</literal> signifie qu'aucune
 | 
						|
  méthode alternative n'est autorisée. <literal>URL</literal>
 | 
						|
  signifie que si <literal>SMARTY_DEBUG</literal> se
 | 
						|
  trouve dans <literal>QUERY_STRING</literal>, le débogage
 | 
						|
  est activé à l'invocation du script. Si
 | 
						|
  <link linkend="variable.debugging">$debugging</link>
 | 
						|
  est à &true;, cette valeur est sans effet.
 | 
						|
 </para>
 | 
						|
 <example>
 | 
						|
  <title>$debugging_ctrl sur localhost</title>
 | 
						|
  <programlisting role="php">
 | 
						|
<![CDATA[
 | 
						|
<?php
 | 
						|
// affiche la console de débogage uniquement sur localhost ie
 | 
						|
// http://localhost/script.php?foo=bar&SMARTY_DEBUG
 | 
						|
$smarty->debugging = false; // the default
 | 
						|
$smarty->debugging_ctrl = ($_SERVER['SERVER_NAME'] == 'localhost') ? 'URL' : 'NONE';
 | 
						|
?>
 | 
						|
]]>
 | 
						|
  </programlisting>
 | 
						|
 </example>
 | 
						|
 <para>
 | 
						|
  Voir aussi
 | 
						|
  la <link linkend="chapter.debugging.console">console de débogage</link> et
 | 
						|
  <link linkend="variable.debugging"><parameter>$debugging</parameter></link>.
 | 
						|
 </para>
 | 
						|
</sect1>
 | 
						|
 | 
						|
<!-- Keep this comment at the end of the file
 | 
						|
Local variables:
 | 
						|
mode: sgml
 | 
						|
sgml-omittag:t
 | 
						|
sgml-shorttag:t
 | 
						|
sgml-minimize-attributes:nil
 | 
						|
sgml-always-quote-attributes:t
 | 
						|
sgml-indent-step:1
 | 
						|
sgml-indent-data:t
 | 
						|
indent-tabs-mode:nil
 | 
						|
sgml-parent-document:nil
 | 
						|
sgml-default-dtd-file:"../../../../manual.ced"
 | 
						|
sgml-exposed-tags:nil
 | 
						|
sgml-local-catalogs:nil
 | 
						|
sgml-local-ecat-files:nil
 | 
						|
End:
 | 
						|
vim600: syn=xml fen fdm=syntax fdl=2 si
 | 
						|
vim: et tw=78 syn=sgml
 | 
						|
vi: ts=1 sw=1
 | 
						|
--> |