Skip to content

Instantly share code, notes, and snippets.

View app_controller.php
<?php
require_once CORE_PATH . 'kumbia/controller.php';
class AppController extends Controller
{
final protected function initialize()
{
$this->limit_params = false;
$this->url = empty($_SERVER['PATH_INFO']) ? '/' : $_SERVER['PATH_INFO'];
View::select('', 'default');
@demonio
demonio / myar.php
Last active Aug 29, 2020
Un mini AR para empezar a hacer cosas entre KumbiaPHP y MsSQL
View myar.php
<?php
/**
*/
class Myar
{
/**
* STEP 1
*/
public function connect()
{
@demonio
demonio / admin.phtml
Last active Sep 8, 2016
JS para editar cajas con prims
View admin.phtml
<!DOCTYPE html>
<html lang="es">
<head>
<title>Materialize</title>
<link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="/css/materialize.min.css" media="print,screen" rel="stylesheet">
<link href="/css/prism.css" media="print,screen" rel="stylesheet">
<link href="/css/admin.css" media="screen" rel="stylesheet">
<link href="/css/hacks.css" media="screen" rel="stylesheet">
<link href="/css/pantallita.css" media="screen" rel="stylesheet">
@demonio
demonio / dock.css
Last active Jul 21, 2016
DOCK FOR ME WEB, DOCK FOR YOU WEB
View dock.css
/* dock - top */
.dock { text-align: left; }
.dock-container { position: absolute; }
a.dock-item
{
position: absolute;
text-align: center;
}
@demonio
demonio / agenda_console.php
Created Jul 19, 2016
FULLCALENDAR en KumbiaPHP... LOL
View agenda_console.php
<?php
/**
*/
class AgendaConsole
{
/**
*/
public function enviar_correo($params)
{
exec('wget https://iiswebusr:eldrazi@teleasistencia-vh.asispa1.es/agenda/enviar_correo/' . $params['id']);
@demonio
demonio / generate_controller.php
Last active Jul 9, 2016
Generador de controladores, acciones y sus vistas by error.
View generate_controller.php
<?php
/**
*/
class GenerateController extends AdminController
{
public function index()
{
}
@demonio
demonio / bent.css
Last active Jul 12, 2016
Recurso CSS efecto fondo cabecera doblado al borde izquierdo
View bent.css
/*
*/
#body h5.a
{
background: linear-gradient(to right, #fff59d, white);
margin-left: -17px !important;
padding: 5px;
position: relative;
}
#body h5.a span.bent
@demonio
demonio / index.phtml
Last active Jun 1, 2016
Modulo de permisos
View index.phtml
<!--
app/views/admin/permisos.index.phtml
-->
<form method="post">
<div class="actions">
<button class="btn-floating darken-1 orange tooltipped waves-effect waves-light" data-delay="500" data-position="left" data-tooltip="guardar permisos" name="accion" type="submit" value="guardar"><i class="material-icons">save</i></button>
</div>
<div class="mt5 ml5 mr50">
<div class="card row">
<h5 class="col s12 teal-text darken-1 pv10">reglas</h5>
@demonio
demonio / index.phtml
Last active Aug 29, 2020
Sube, instala y desinstala módulos para KumbiaPHP
View index.phtml
<fieldset>
<legend><?=ucfirst($controller_name)?></legend>
<div>
<label>Filter:</label>
<input class="js-filter" data-to=".list li" type="text" />
</div>
<ul>
<?php foreach($modules as $module) :
$filename = str_replace('.zip', '', basename($module) ); ?>
<li>
@demonio
demonio / _.php
Last active Mar 30, 2016
Un debug bar partial para KumbiaPHP
View _.php
<?php
/**
* NAVAJA SUIZA
*/
class _
{
/**
* IMPRIME VARIABLES EN PANTALLA
*/
static function r($x='')