<?php
require "./application/libraries/PHPWord/vendor/autoload.php";
include_once 'docfile.php';
class test extends MY_Controller
{
}
public function index()
{
}
public function createFile()
{
$text = $_POST['txt'];
print_arr($text);
$htd = new HTML_TO_DOC();
$htd->createDoc($text, 'test');
}
public function createFileView()
{
$this->load->view('dms_create_ckeditor_v', $this->data);
}
}
form method="POST" action="test/createFile">
<input type="text" name="filename">
<textarea id="editor1" name="txt" cols="100" rows="20"></textarea>
<input type="submit" name="btn">
</form>
public function createFile()
{
$text = $_POST['txt'];
print_arr($text);
}