<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>joomla &#8211; VeriTeknik</title>
	<atom:link href="https://www.veriteknik.net.tr/en/tag/joomla-2/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.veriteknik.net.tr/en/</link>
	<description>VeriTeknik Bilişim &#124; VeriTeknik Bilişim</description>
	<lastBuildDate>Fri, 22 Apr 2011 14:09:42 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>Joomla &#8211; Handling Errors</title>
		<link>https://www.veriteknik.net.tr/en/joomla-handling-errors/</link>
					<comments>https://www.veriteknik.net.tr/en/joomla-handling-errors/#respond</comments>
		
		<dc:creator><![CDATA[ckaraca]]></dc:creator>
		<pubDate>Fri, 22 Apr 2011 14:09:42 +0000</pubDate>
				<category><![CDATA[Joomla Developer]]></category>
		<category><![CDATA[joomla]]></category>
		<guid isPermaLink="false">http://plugged.in/?p=20</guid>

					<description><![CDATA[<p>I find Joomla non-developer friendly for the most of the time; documentation is poor and not having any continuity. I searched the net for displaying errors to the screen in Joomla 1.5 and up and here is the code: JError::raiseWarning(&#8216;101&#8217;, &#8220;message to be displayed&#8221;); This bunch of code is especially useful if you are developing [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/joomla-handling-errors/">Joomla &#8211; Handling Errors</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I find Joomla non-developer friendly for the most of the time; documentation is poor and not having any continuity.</p>
<p>I searched the net for displaying errors to the screen in Joomla 1.5 and up and here is the code:</p>
<p>JError::raiseWarning(&#8216;101&#8217;, &#8220;message to be displayed&#8221;);</p>
<p>This bunch of code is especially useful if you are developing extended classes for Joomla, such that if you are developing a authentication plugin for Joomla:</p>
<blockquote><p>&lt;?php</p>
<p>defined(&#8216;_JEXEC&#8217;) or die();</p>
<p>jimport(&#8216;joomla.event.plugin&#8217;);</p>
<p>// class plg&lt;type&gt;&lt;name&gt; extends JPlugin<br />
class plgAuthenticationMSN extends JPlugin<br />
{<br />
function plgAuthenticationMSN(&amp; $subject, $config) {<br />
parent::__construct($subject, $config);<br />
}</p>
<p>function onAuthenticate( $credentials, $options, &amp;$response )<br />
{</p>
<p>$err = &#8220;IP:&#8221;.$remoteCpIP.&#8221; port:&#8221;.$port;<br />
JError::raiseWarning(&#8216;101&#8217;, $err);</p>
<p>if ($success)<br />
{<br />
$response-&gt;status          = JAUTHENTICATE_STATUS_SUCCESS;<br />
$response-&gt;error_message = $err;<br />
$response-&gt;email     = $email;<br />
$response-&gt;fullname = $credentials[&#8216;username&#8217;];<br />
}</p>
<p>else<br />
{<br />
$response-&gt;status         = JAUTHENTICATE_STATUS_FAILURE;<br />
$response-&gt;error_message    = &#8216;Failed to authenticate: &#8216; . $message;<br />
}<br />
}<br />
}<br />
?&gt;</p></blockquote>
<p>This is  the only way to see the errors on the screen,&#8221;echo&#8221; and other stuff doesn&#8217;t show anything as you are inside a class.</p>
<p>The post <a rel="nofollow" href="https://www.veriteknik.net.tr/en/joomla-handling-errors/">Joomla &#8211; Handling Errors</a> appeared first on <a rel="nofollow" href="https://www.veriteknik.net.tr/en/">VeriTeknik</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.veriteknik.net.tr/en/joomla-handling-errors/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">20</post-id>	</item>
	</channel>
</rss>
