Choose a file to view:
controller.php
index.php
model.php
view.php
or go back to the demo
<?php class CostController { //Routes data to the model //and tells the view what to show and when to show it private $costModel; private $costView; public function __construct( ) { $this->costModel = new CostModel(); $this->costView = new CostView($this->costModel); } public function setCost($data) { $this->costModel->set($data['baseFee'],$data['projectType'],$data['projectDuration']); } public function GenDisplay() { if($this->costModel->get() > 0) { return $this->costView->showEstimate(); } else { return $this->costView->askForBid(); } } } ?>