~george-edison55/jsstudio/addons_site

« back to all changes in this revision

Viewing changes to index.php

  • Committer: Nathan Osman
  • Date: 2011-08-22 03:47:02 UTC
  • Revision ID: admin@quickmediasolutions.com-20110822034702-88qsa9r5vtz8rnk0
Added model class and database connection code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
118
118
        // Start by parsing the URL
119
119
        $this->ParseURL();
120
120
        
121
 
        // Now run the selected controller
122
 
        $view_vars = $this->RunController();
123
 
        
124
 
        // ...and lastly display the view
125
 
        $this->DisplayView($view_vars);
 
121
        // These two functions are wrapped in a try
 
122
        // block so that we can display any exceptions
 
123
        // that occur to the user
 
124
        try
 
125
        {
 
126
            // Now run the selected controller
 
127
            $view_vars = $this->RunController();
 
128
            
 
129
            // ...and lastly display the view
 
130
            $this->DisplayView($view_vars);
 
131
        }
 
132
        catch(Exception $e)
 
133
        {
 
134
            $this->FatalError($e->getMessage());
 
135
        }
126
136
    }
127
137
}
128
138