Nested Dynamic PHP Class

Posted by user338844 on Stack Overflow See other posts from Stack Overflow or by user338844
Published on 2010-06-12T19:17:23Z Indexed on 2010/06/12 19:22 UTC
Read the original article Hit count: 159

Filed under:
|
|
|

Alright, I may just need a terminology update, but I have been playing in Magento and Joomla, and they do references like

$mage = new Mage;
$mage->block('blockname');

where class Mage through some process I am failing to figure out is calling:

class blockname extends something{

}

Don't quote me on that code, however I am looking to do something like that where I have a file that I can do $myscript->block('blockname'); and it will load and call the file with class blockname.

I hope that is not too confusing, but any help is appreciated.

Thanks in advance!

© Stack Overflow or respective owner

Related posts about php

Related posts about classes