Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
<?php
2
 
3
require_once(__DIR__ . '/../../config.php');
4
require_once($CFG->libdir.'/adminlib.php');
5
 
6
admin_externalpage_setup('cocoon_form_builder_settings');
7
 
8
$PAGE->set_title(get_string('pluginname', 'local_cocoon_form_builder'));
9
$PAGE->set_heading(get_string('pluginname', 'local_cocoon_form_builder'));
10
// $PAGE->set_pagelayout('cocoon.core');
11
$PAGE->requires->css(new moodle_url($CFG->wwwroot . '/local/cocoon_form_builder/style.css'));
12
echo $OUTPUT->header();
13
// echo "helloWorld";
14
 
15
$url=__DIR__ . '/dist/index.html'; // tạo biến url cần lấy
16
$lines_array=file($url); // dùng hàm file() lấy dữ liệu theo url
17
$lines_string=implode('',$lines_array); // chuyển dữ liệu lấy được kiểu mảng thành một biến string
18
echo $lines_string; // hiển thị dữ liệu
19
 
20
 
21
echo $OUTPUT->footer();