Jump to content


Member Since 31 Mar 2005
Offline Last Active Today, 07:36 AM

Posts I've Made

In Topic: oop magic methods confliction

23 July 2014 - 01:19 AM

What the hell are these classes? I mean, why does an Action extend a View in the first place? The two seem unrelated.

In Topic: How often do you use Interfaces?

23 July 2014 - 01:16 AM

It's pretty hard to write SOLID code without interfaces.

In Topic: Wampserver (64 bits & PHP 5.5)

22 July 2014 - 10:40 AM

People still use things like Wampserver?

I thought we'd all moved to reproducible development environments via Vagrant?

In Topic: new object syntax and array instance

20 July 2014 - 11:16 PM

using the little info you gave maybe something like
$newObj = Google_Service_Calendar_Acl_Resource();

That assumes Google_Service_Calendar_Acl_Resource is a function which it is not.

In Topic: Register namespaced class in joomla 2.5

20 July 2014 - 06:20 PM

This obviously wont work because it overrides the joomla autoloading function

It shouldn't. spl_autoload_register adds autoloaders onto a stack of autoloaders. So, unless Joomla is doing something funky with its autoloading, your implementation looks fine.

Another option to consider would be to simply use Composer. All you need to do then is include composer's autoloader into your project somewhere.

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime