Skip to content

Instantly share code, notes, and snippets.

View henrystivens's full-sized avatar

Henry Stivens Adarme henrystivens

  • Palmira
View GitHub Profile
<h1>Crear usuario</h1>
<?php View::content() ?>
<?= Form::open() ?>
<div class="row">
<div class="six columns">
<label>Nombre
<?= Form::text('user.name', 'required') ?>
</label>
</div>

Traducir PHPDoc de KumbiaPHP (PR - Pull Request).

Primero que todo debes tener instalado git en tu equipo, una cuenta en https://github.com/ y debes iniciar sesión.

Copia (fork) del repositorio oficial

  1. Ir al repositorio del framework: https://github.com/KumbiaPHP/KumbiaPHP

  2. Hacer clic en el botón "fork", esto creará en tu cuenta una copia completa del

@henrystivens
henrystivens / admin_controller.php
Last active October 23, 2017 22:03
Lib para evitar ataques CSRF en KumbiaPHP
<?php
.
.
.
if (Input::hasPost('login', 'password') && HsCsrf::validate()) {
//Intenta la autenticación
return self::doAuthenticate();
}
@henrystivens
henrystivens / pull-request-kumbiaphp.md
Last active November 4, 2022 23:22
Enviar cambios a KumbiaPHP (Pull request)

Enviar cambios a KumbiaPHP (PR - Pull Request).

Primero que todo debes tener instalado git en tu equipo, una cuenta en https://github.com/ y debes iniciar sesión.

Copia (fork) del repositorio oficial

  1. Ir al repositorio del framework: https://github.com/KumbiaPHP/KumbiaPHP

  2. Hacer clic en el botón "fork", esto creará en tu cuenta una copia completa del

@henrystivens
henrystivens / sync-fork-github.md
Last active August 29, 2020 22:06
Sync your fork with a KumbiaPHP/Documentation repository

Sync your fork with a KumbiaPHP/Documentation repository

Configuring a remote for a fork

  • Open Terminal (for Mac and Linux users) or the command prompt (for Windows users).
  • List the current configured remote repository for your fork.
git remote -v
@henrystivens
henrystivens / gist:6092473
Created July 26, 2013 21:43
Ejecutar URL
public static String consultar(String strUrl) throws Exception {
String xml = "";
String inputLine = "";
try {
// Install the custom authenticator
Authenticator.setDefault(new MyAuthenticator());
//Conexion a la URL
URL url = new URL(strUrl);
URLConnection wsConnection = url.openConnection();
//Lector de de la respuesta
@henrystivens
henrystivens / form2.php
Last active December 12, 2015 09:49
Inicialmente para que funcione en form.php, en línea 93 añadir: if ($value !== null && $filter) { if(is_array($value) === FALSE){ $value = htmlspecialchars($value, ENT_COMPAT, APP_CHARSET); } } //Se debe mejorar
<?php
/**
* KumbiaPHP web & app Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
@henrystivens
henrystivens / table.php
Created January 11, 2012 16:03
Helper Table de Manuel Aguirre para KumbiaPHP
<?php
/**
* Backend - KumbiaPHP Backend
* PHP version 5
* LICENSE
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the