~george-edison55/jsstudio/addons_site

« back to all changes in this revision

Viewing changes to base_controller.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:
18
18
// along with this program.  If not, see <http://www.gnu.org/licenses/>.
19
19
//=======================================================================
20
20
 
 
21
require_once 'model.php';
 
22
 
21
23
class BaseController
22
24
{
23
 
    private $view_variables = array();
 
25
    private   $view_variables = array();
 
26
    protected $model          = null;
 
27
    
 
28
    function __construct($controller_name)
 
29
    {
 
30
        $this->model = new Model($controller_name);
 
31
    }
24
32
    
25
33
    protected function SetViewVariable($name, $value)
26
34
    {