View Single Post
Old 02-16-2007, 04:46 PM
The Geek's Avatar
The Geek The Geek is offline
Senior Member
Join Date: Aug 2005
Posts: 6,717
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 

The tutorial was most likely written before 2.x was introduced.

Before then, each 'stage' of a modules life was seperated by if statements (i.e. if ($stage=="display"){....}elseif ($stage=="edit"){...)

In 2.0, those stages are now seperate files without the if($stage) logic.
In other words, the code that would execute in the if($stage=="display"){} section is now simply in the modulename.php file residing in the mods/display folder.

Not sure if I muddles things up there or not
Reply With Quote