Se añade version 1.0 de parser html

correciones menores a codigo anterior realizado.
Se añade html de prueba
Se añaden librerias de restapi
parent 258eed51
...@@ -485,7 +485,7 @@ class CampaniaController extends Controller { ...@@ -485,7 +485,7 @@ class CampaniaController extends Controller {
public function cargarHtmlFrontAction() { public function cargarHtmlFrontAction() {
$data = array('id' => 24); $data = array('id' => 24);
$data_json = json_encode($data); $data_json = json_encode($data);
$htmlContent = array("contenidos" => ""); $htmlContent = array();
$username = "userApi"; $username = "userApi";
$password = "34lq4od8usda"; $password = "34lq4od8usda";
$headers = array( $headers = array(
...@@ -505,7 +505,7 @@ class CampaniaController extends Controller { ...@@ -505,7 +505,7 @@ class CampaniaController extends Controller {
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$output = curl_exec($ch); $output = curl_exec($ch);
curl_close($ch); curl_close($ch);
$htmlContent["contenidos"] = json_decode($output, true); $htmlContent = json_decode($output, true);
} catch (\Exception $e) { } catch (\Exception $e) {
} }
......
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