News:

Please note these forums are mostly a testing ground for my SMF work and I don't really use them otherwise.

Main Menu

Paste-1283901088:v:use_geshi-1:v:type-php

Started by SleePy, Sep 07, 2010, 11:11 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

SleePy

   class SmcController_ManageConverter extends SmcController
   {
      protected $_converterGroupForm;
      protected $_converterForm;

      // Classes have their advantages, such as a constructor.
      public function __construct()
      {
         global $download_prefix, $site_connections;

         if (empty($site_connections['downloads']['read']))
            $download_prefix = siteman_load_db('downloads');
      }

      public function action_index()
      {
         // Default to 'sa=add'.
         return $this->action_add();
      }
      
No siggy! :D