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 7f31cbf9
......@@ -486,7 +486,7 @@ class CampaniaController extends Controller {
public function cargarHtmlFrontAction(){
$data = array('id'=>24);
$data_json = json_encode($data);
$htmlContent = array();
$htmlContent = array("contenidos"=>"");
$username = "userApi";
$password = "34lq4od8usda";
try {
......@@ -500,7 +500,7 @@ class CampaniaController extends Controller {
curl_setopt($ch, CURLOPT_USERPWD, $username . ":" . $password);
$output = curl_exec($ch);
curl_close($ch);
$htmlContent = json_decode($output, true);
$htmlContent["contenidos"] = json_decode($output, true);
} 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