This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Ext = Ext || { }; Ext.manifest = Ext.manifest || "app.json";// @tag core | |
// @define Ext.Boot | |
var Ext = Ext || {}; | |
//<editor-fold desc="Boot"> | |
/** | |
* @class Ext.Boot | |
* @singleton | |
* @private |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express') | |
const app = express() | |
const port = 3001 | |
const moment = require('moment-timezone'); | |
app.post('/time', (request, response) => { | |
response.json( | |
{ | |
text: ` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function __construct() { | |
global $inflect; | |
$this->_controller = str_replace("Widget", "", get_class($this)); | |
$model = ucfirst(str_replace("Controller", "", $this->_controller)); | |
$modname = $model."Widget"; | |
$this->$model = new $modname; |