Skip to content

Instantly share code, notes, and snippets.

@Rovak
Rovak / Controllers_Home.php
Last active June 5, 2017 14:55
Minimal PHP Mvc
<?php
// path: ./Controllers/Home.php
namespace Controllers;
class Home extends \AbstractController {
// Index Page => bootstrap.php/home/index
public function index() {
return $this->render("index", [
@Rovak
Rovak / WIndowManager.js
Created February 16, 2013 21:22
Ext JS Window Manager
/**
* Window Manager
*/
Ext.define('KJExt.window.WindowManager', {
singleton: true,
/**
* @private
* @property {Object} windows Map which references windowInstances by their ID
*/
windows: {},
import React from "react";
import classnames from "classnames";
const styles = {
error: {
icon: "fad fa-exclamation-triangle text-red-500",
bg: "bg-red-50",
mainText: "text-red-800",
subText: "text-red-700",
},