<?php

include_once Puzzlout\Framework\Core\ViewLoader::Init($this->app->controller())->GetPartialView(\Puzzlout\Framework\Generated\FrameworkViewnames::DISPLAYGENERATEDFILES);
<?php

use Puzzlout\Framework\Generated\FrameworkViewnames;
$ViewModel = new Puzzlout\Framework\ViewModels\WebIdeVm($this->app);
if (!$ControllerVm instanceof Puzzlout\Framework\ViewModels\WebIdeVm) {
    throw new Puzzlout\Framework\Exceptions\InvalidViewModelTypeException();
} else {
    $ViewModel = clone $ControllerVm;
}
?>
<fieldset>
    <legend>List of methods</legend>
    <input type="text" placeholder="Type your method name" />
    <input type="text" placeholder="Type your return type" />
    <?php 
include_once Puzzlout\Framework\Core\ViewLoader::Init($this->app->controller())->GetPartialView(FrameworkViewnames::METHODPARAMETERS);
?>
    <div class="add-a-property"></div>
</fieldset>

Esempio n. 3
0
use Puzzlout\Framework\Generated\FrameworkViewnames;
$ViewModel = new Puzzlout\Framework\ViewModels\WebIdeVm($this->app);
if (!$ControllerVm instanceof Puzzlout\Framework\ViewModels\WebIdeVm) {
    throw new Puzzlout\Framework\Exceptions\InvalidViewModelTypeException();
} else {
    $ViewModel = clone $ControllerVm;
}
echo Puzzlout\Framework\UC\StylesheetControl::Init()->ForInternalResource("Web/library/css/webide.css");
echo Puzzlout\Framework\UC\LinkControl::Init()->Simple("../Generator/Index", "Go to Code generator");
?>
<h1>Create a file</h1>
<form class="fileCreationForm" action="../WebIdeAjax/ProcessFileCreation" method="post">
    <?php 
include_once Puzzlout\Framework\Core\ViewLoader::Init($this->app->controller())->GetPartialView(FrameworkViewnames::FILETYPEINPUT);
?>
    <?php 
include_once Puzzlout\Framework\Core\ViewLoader::Init($this->app->controller())->GetPartialView(FrameworkViewnames::FILENAMEINPUT);
?>
    <?php 
include_once Puzzlout\Framework\Core\ViewLoader::Init($this->app->controller())->GetPartialView(FrameworkViewnames::FILEDESCRIPTIONINPUT);
?>
    <?php 
include_once Puzzlout\Framework\Core\ViewLoader::Init($this->app->controller())->GetPartialView(FrameworkViewnames::FILEDESTINATIONPATHINPUT);
?>
    <?php 
include_once Puzzlout\Framework\Core\ViewLoader::Init($this->app->controller())->GetPartialView(FrameworkViewnames::FILECONTENTS);
?>
    <input id="createFile" class="btn btn-info" type="submit" value="Create File" />
</form>
<?php 
echo Puzzlout\Framework\UC\ScriptControl::Init()->ForInternalResource("Web/library/js/webide.createfile.js");