Commit 687b4661 by Junaid Rahman pv

modified site page

parent fc5ea308
......@@ -37,7 +37,6 @@ class SiteController extends Controller
{
$domain = $_SERVER['HTTP_HOST'];
$website = Website::find()->where(['domain_name' =>$domain])->one();
echo 'jhsda';
$businessId = $website->business_id;
$client = new Client();
$response = $client->createRequest()
......@@ -45,12 +44,7 @@ class SiteController extends Controller
->setUrl('http://libromi.com/api/v1/business/view')
->setData(['id' => $businessId])
->send();
// echo '<pre>';
// echo $businessId;
// echo '</pre>';
// exit;
$data = $response->isOk ? $response->data : [];
return $this->render('index', ['data' => $data]);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment