| 
									
										
										
										
											2004-10-07 18:50:52 +00:00
										 |  |  |  | <?xml version="1.0" encoding="iso-8859-1"?> | 
					
						
							|  |  |  |  | <!-- $Revision$ --> | 
					
						
							|  |  |  |  |   <chapter id="smarty.constants"> | 
					
						
							|  |  |  |  |    <title>Constantes</title> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |    <sect1 id="constant.smarty.dir"> | 
					
						
							|  |  |  |  |     <title>SMARTY_DIR</title> | 
					
						
							|  |  |  |  |     <para> | 
					
						
							|  |  |  |  |      Esta debe ser la ruta completa del path para la localizaci<63>n  | 
					
						
							|  |  |  |  |      de los archivos de clases de Smarty. Si esta no fuera definida,  | 
					
						
							|  |  |  |  |      Entonces Smarty intentara determinar el valor apropiado  | 
					
						
							| 
									
										
										
										
											2005-11-08 23:37:29 +00:00
										 |  |  |  |      autom<6F>ticamente. Si es definido, el path <emphasis role="bold"> | 
					
						
							|  |  |  |  |       debe finalizar con una diagonal</emphasis>. | 
					
						
							| 
									
										
										
										
											2004-10-07 18:50:52 +00:00
										 |  |  |  |     </para> | 
					
						
							|  |  |  |  |     <example> | 
					
						
							|  |  |  |  |      <title>SMARTY_DIR</title> | 
					
						
							|  |  |  |  |      <programlisting role="php"> | 
					
						
							|  |  |  |  | <![CDATA[ | 
					
						
							|  |  |  |  | <?php | 
					
						
							| 
									
										
										
										
											2005-11-08 23:37:29 +00:00
										 |  |  |  | // set path to Smarty directory *nix style | 
					
						
							|  |  |  |  | define('SMARTY_DIR','/usr/local/lib/php/Smarty/libs/'); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | // path to Smarty windows style | 
					
						
							|  |  |  |  | define('SMARTY_DIR','c:/webroot/libs/Smarty/libs/'); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | // hack (not recommended) that works on both *nix and wind | 
					
						
							|  |  |  |  | // Smarty is assumend to be in 'includes' dir under script | 
					
						
							|  |  |  |  | define('SMARTY_DIR',str_replace("\\","/",getcwd()).'/includes/Smarty/libs/'); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | // include the smarty class Note 'S' is upper case | 
					
						
							|  |  |  |  | require_once(SMARTY_DIR.'Smarty.class.php'); | 
					
						
							|  |  |  |  | ?> | 
					
						
							|  |  |  |  | ]]> | 
					
						
							|  |  |  |  |      </programlisting> | 
					
						
							|  |  |  |  |     </example> | 
					
						
							|  |  |  |  |   <para> | 
					
						
							|  |  |  |  |   Ver tambi<62>n  | 
					
						
							|  |  |  |  |   <link linkend="language.variables.smarty.const">$smarty.const</link> | 
					
						
							|  |  |  |  |   y | 
					
						
							|  |  |  |  |   <link | 
					
						
							|  |  |  |  |   linkend="variable.php.handling">$php_handling constants</link> | 
					
						
							|  |  |  |  |   </para> | 
					
						
							|  |  |  |  |    </sect1> | 
					
						
							|  |  |  |  | <sect1 id="constant.smarty.core.dir"> | 
					
						
							|  |  |  |  |     <title>SMARTY_CORE_DIR</title> | 
					
						
							|  |  |  |  |     <para> | 
					
						
							|  |  |  |  |      Esta debe ser la ruta completa de localizaci<63>n del sistema de archivos  | 
					
						
							|  |  |  |  |      de Smarty core. Si no es definido, Smarty tomara por default esta constante de  | 
					
						
							|  |  |  |  |      <emphasis>libs/</emphasis> | 
					
						
							|  |  |  |  |      bajo el sub-directory <link linkend="constant.smarty.dir">SMARTY_DIR</link>. | 
					
						
							|  |  |  |  |      Si es definida, la ruta debe terminar con una diagonal. | 
					
						
							|  |  |  |  |      Use esta constante cuando necesite incluir manualmente algun archivo de core.* | 
					
						
							|  |  |  |  |     </para> | 
					
						
							|  |  |  |  |     <example> | 
					
						
							|  |  |  |  |      <title>SMARTY_CORE_DIR</title> | 
					
						
							|  |  |  |  |      <programlisting role="php"> | 
					
						
							|  |  |  |  | <![CDATA[ | 
					
						
							|  |  |  |  | <?php | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | // load core.get_microtime.php | 
					
						
							|  |  |  |  | require_once(SMARTY_CORE_DIR.'core.get_microtime.php'); | 
					
						
							| 
									
										
										
										
											2004-10-07 18:50:52 +00:00
										 |  |  |  | 
 | 
					
						
							|  |  |  |  | ?> | 
					
						
							|  |  |  |  | ]]> | 
					
						
							|  |  |  |  |      </programlisting> | 
					
						
							|  |  |  |  |     </example> | 
					
						
							| 
									
										
										
										
											2005-11-08 23:37:29 +00:00
										 |  |  |  | 
 | 
					
						
							|  |  |  |  |     <para> | 
					
						
							|  |  |  |  |     Ver tambi<62>n  | 
					
						
							|  |  |  |  |     <link linkend="language.variables.smarty.const">$smarty.const</link> | 
					
						
							|  |  |  |  |     </para> | 
					
						
							| 
									
										
										
										
											2004-10-07 18:50:52 +00:00
										 |  |  |  |    </sect1> | 
					
						
							|  |  |  |  | </chapter> | 
					
						
							|  |  |  |  | <!-- 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 | 
					
						
							|  |  |  |  | --> |