| 
									
										
										
										
											2004-04-13 11:47:32 +00:00
										 |  |  | <?xml version="1.0" encoding="iso-8859-1"?> | 
					
						
							|  |  |  | <!-- $Revision$ --> | 
					
						
							| 
									
										
										
										
											2004-04-18 19:22:55 +00:00
										 |  |  | <refentry id="api.trigger.error"> | 
					
						
							|  |  |  |  <refnamediv> | 
					
						
							| 
									
										
										
										
											2005-05-27 16:25:02 +00:00
										 |  |  |   <refname>trigger_error()</refname> | 
					
						
							|  |  |  |   <refpurpose>output an error message</refpurpose> | 
					
						
							| 
									
										
										
										
											2004-04-18 19:22:55 +00:00
										 |  |  |  </refnamediv> | 
					
						
							|  |  |  |  <refsect1> | 
					
						
							| 
									
										
										
										
											2005-05-27 16:25:02 +00:00
										 |  |  |   <title>Description</title> | 
					
						
							| 
									
										
										
										
											2004-04-18 19:22:55 +00:00
										 |  |  |   <methodsynopsis> | 
					
						
							|  |  |  |    <type>void</type><methodname>trigger_error</methodname> | 
					
						
							|  |  |  |    <methodparam><type>string</type><parameter>error_msg</parameter></methodparam> | 
					
						
							|  |  |  |    <methodparam choice="opt"><type>int</type><parameter>level</parameter></methodparam> | 
					
						
							|  |  |  |   </methodsynopsis> | 
					
						
							|  |  |  |   <para> | 
					
						
							|  |  |  |    This function can be used to output an error message using Smarty. | 
					
						
							|  |  |  |    <parameter>level</parameter> parameter can be one of the values | 
					
						
							| 
									
										
										
										
											2005-05-27 16:25:02 +00:00
										 |  |  |    used for the PHP | 
					
						
							| 
									
										
										
										
											2005-05-24 14:01:49 +00:00
										 |  |  |    <ulink url="&url.php-manual;trigger_error">trigger_error()</ulink> | 
					
						
							| 
									
										
										
										
											2005-05-27 16:25:02 +00:00
										 |  |  |    function, i.e. E_USER_NOTICE, | 
					
						
							| 
									
										
										
										
											2004-04-18 19:22:55 +00:00
										 |  |  |    E_USER_WARNING, etc. By default it's E_USER_WARNING. | 
					
						
							|  |  |  |   </para> | 
					
						
							| 
									
										
										
										
											2005-05-24 14:01:49 +00:00
										 |  |  |    <para> | 
					
						
							|  |  |  |     See also | 
					
						
							|  |  |  |     <link linkend="variable.error.reporting">$error_reporting</link>, | 
					
						
							|  |  |  |     <link linkend="chapter.debugging.console">debugging</link> | 
					
						
							|  |  |  |     and | 
					
						
							|  |  |  |     <link linkend="smarty.php.errors">Troubleshooting</link>. | 
					
						
							|  |  |  |  </para> | 
					
						
							| 
									
										
										
										
											2004-04-18 19:22:55 +00:00
										 |  |  |  </refsect1> | 
					
						
							|  |  |  | </refentry> | 
					
						
							| 
									
										
										
										
											2004-04-13 11:47:32 +00:00
										 |  |  | <!-- 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 | 
					
						
							| 
									
										
										
										
											2004-04-18 19:22:55 +00:00
										 |  |  | --> |