Select Git revision
unitSelector.js
Forked from
SOFT Core / SOFT 260 / React Redux Starter Code
Source project has a limited visibility.
TestController.php 1.07 KiB
<?php
class TestController extends Nmc_Controller_Action
{
public function init()
{
//$this->_registerPlugin(new Nmc_Controller_Action_Plugin_Authorize());
//$this->_registerPlugin(new Nmc_Controller_Action_Plugin_Test());
}
public function indexAction()
{
}
public function domAction()
{
$dom = new DOMDocument();
$dom->appendChild(
$dom->createProcessingInstruction('xml-stylesheet',
'type="text/xsl" href="/xsl/test.xsl"')
);
$view = $dom->createElement('view');
$dom->appendChild($view);
$title = $dom->createElement('title');
$title->appendChild($dom->createTextNode('Test Page'));
$view->appendChild($title);
$cssFile = $dom->createElement('cssFile');
$cssFile->appendChild($dom->createTextNode('/css/index.css'));
$view->appendChild($cssFile);
$out = $this->getResponse();
$out->setHeader('Content-type', 'text/xml');
$out->setBody($dom->saveXML());
}
}
?>