<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://3.19.219.109/index.php?action=history&amp;feed=atom&amp;title=Version_6.0_and_Namespacing</id>
		<title>Version 6.0 and Namespacing - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://3.19.219.109/index.php?action=history&amp;feed=atom&amp;title=Version_6.0_and_Namespacing"/>
		<link rel="alternate" type="text/html" href="http://3.19.219.109/index.php?title=Version_6.0_and_Namespacing&amp;action=history"/>
		<updated>2026-04-09T14:50:37Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.29.1</generator>

	<entry>
		<id>http://3.19.219.109/index.php?title=Version_6.0_and_Namespacing&amp;diff=15315&amp;oldid=prev</id>
		<title>Matt: Created page with &quot;WHMCS Version 6.0 introduces namespacing to WHMCS classes.  The result of this is that if you are referencing native WHMCS class files from your custom modules, hooks and code...&quot;</title>
		<link rel="alternate" type="text/html" href="http://3.19.219.109/index.php?title=Version_6.0_and_Namespacing&amp;diff=15315&amp;oldid=prev"/>
				<updated>2015-07-07T21:27:50Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;WHMCS Version 6.0 introduces namespacing to WHMCS classes.  The result of this is that if you are referencing native WHMCS class files from your custom modules, hooks and code...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;WHMCS Version 6.0 introduces namespacing to WHMCS classes.&lt;br /&gt;
&lt;br /&gt;
The result of this is that if you are referencing native WHMCS class files from your custom modules, hooks and code, where previously you may have referenced a class as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
$client = new WHMCS_User_Client();&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In 6.0 and later, you would need to first alias the class with a use statement, and then invoke it by name as follows.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
use WHMCS\User\Client;&lt;br /&gt;
&lt;br /&gt;
$client = new Client();&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The only exception to this is the WHMCS_ClientArea class for which backwards compatibility for the previous WHMCS_ClientArea class name has been preserved to ensure pages created using the code at [[Creating Pages]] continue to work without requiring any changes.  The ClientArea class can now be accessed and used using either method.&lt;/div&gt;</summary>
		<author><name>Matt</name></author>	</entry>

	</feed>