.
This commit is contained in:
parent
aec3c845e0
commit
edb6c00219
22 changed files with 941 additions and 69 deletions
|
|
@ -20,7 +20,7 @@
|
|||
public function home(){
|
||||
|
||||
$objProjectModel = new ProjectModel;
|
||||
$arrProject = $objProjectModel->findAll(4);
|
||||
$arrProject = $objProjectModel->findAll();
|
||||
$arrProjectToDisplay = array();
|
||||
foreach($arrProject as $arrDetProject){
|
||||
$objProject = new Project;
|
||||
|
|
@ -28,10 +28,9 @@
|
|||
$arrProjectToDisplay[] = $objProject;
|
||||
}
|
||||
|
||||
//$this->_arrData['arrArticleToDisplay'] = $arrArticleToDisplay;
|
||||
$this->_arrData['arrProjectToDisplay'] = $arrProjectToDisplay;
|
||||
|
||||
var_dump($this->_arrData);
|
||||
|
||||
|
||||
$this->_display("home");
|
||||
|
||||
}
|
||||
|
|
@ -70,10 +69,15 @@
|
|||
|
||||
$objCategoryModel = new CategoryModel;
|
||||
$arrCategory = $objCategoryModel->findAllCategory();
|
||||
|
||||
$this->_arrData['arrProjectToDisplay'] = $arrProjectToDisplay;
|
||||
$this->_arrData['arrCategory'] = $arrCategory;
|
||||
$this->_arrData['arrUser'] = $arrUser;
|
||||
|
||||
|
||||
|
||||
|
||||
include('../app/views/search.php');
|
||||
include('../app/views/partials/footer.php');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue