Backend Service

This commit is contained in:
2019-04-07 00:35:39 +00:00
parent e6b002c62b
commit 1b46f66dd7
6 changed files with 87 additions and 19 deletions
+14 -16
View File
@@ -4,27 +4,25 @@ defined('BASEPATH') OR exit('No direct script access allowed');
class Home extends Web_Controller {
public function index() {
$data = array();
$this->renderExternalPage('welcome_message', $data);
}
public function custom(){
$data = array();
public function custom() {
$data = array();
if ($this->uri->segment(3) === FALSE)
{
$product_id = 0;
}
else
{
$product_id = $this->uri->segment(3);
}
echo "Here " .$product_id;
$data["facility_image"]='';
if ($this->uri->segment(3) === FALSE) {
$product_id = 0;
} else {
$product_id = $this->uri->segment(3);
}
echo "Here " . $product_id;
$data["facility_image"] = '';
$this->renderExternalPage('welcome_message', $data);
}
$this->renderExternalPage('welcome_message', $data);
}
}