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
<?php | |
echo "Hello liz"; | |
?> |
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
<?php | |
require_once('parallelcurl.php'); | |
$url1 = 'http://www.example.com/'); | |
$url2 = 'http://www.example.com/'); | |
$url3 = 'http://www.example.com/'); | |
// This function gets called back for each request that completes | |
function on_request_done($content, $url, $ch, $search) { |
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
<?php | |
require_once('parallelcurl.php'); | |
$url1 = 'http://www.soyprogramador.liz.mx/'); | |
$url2 = 'http://www.yahoo.com/'); | |
$url3 = 'http://www.google.com/'); | |
// This function gets called back for each request that completes | |
function on_request_done($content, $url, $ch, $search) { |
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
public function index() { | |
Load::model("Usuarios"); | |
$Usuarios = new Usuarios(); | |
if(Input::has['usuarios']){ | |
if ($Usuarios->registrar(Input::post['usuarios'])) { | |
View::response('success'); | |
}else{ | |
View::response('error'); | |
} | |
} |
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
// *** Incluimos la clase | |
include("resize-class.php"); | |
// *** 1) inicializamos la clase, e indicamos la imagen a tratar | |
$resizeObj = new resize('sample.jpg'); | |
// *** 2) Establecemos el nuevo tamaño de la imagen (options: exact, portrait, landscape, auto, crop) | |
$resizeObj -> resizeImage(200, 200, 'crop'); | |
// *** 3) Guardamos |
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
// *** Incluimos la clase | |
Load::lib("resize-class"); | |
// *** 1) inicializamos la clase, e indicamos la imagen a tratar | |
$resizeObj = new resize('sample.jpg'); | |
// *** 2) Establecemos el nuevo tamaño de la imagen (options: exact, portrait, landscape, auto, crop) | |
$resizeObj -> resizeImage(200, 200, 'crop'); | |
// *** 3) Guardamos |
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
<form id="example-form"> | |
<select id="exampleSelect"> | |
<option selected>Primera opcion</option> | |
<option>Segunda opcion</option> | |
<option>Ttercera opcion</option> | |
<option>Otra mas</option> | |
<option>La ultima.</option> | |
</select> | |
<div> |
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
Router::get('route');//Ruta pasada en el GET | |
Router::get('module'); //Nombre del modulo actual | |
Router::get('controller');//Nombre del controlador actual | |
Router::get('action' =>); 'index', //Nombre de la acción actual, por defecto index | |
Router::get('parameters'); => array(), //Lista los parametros adicionales de la URL | |
Router::get('routed'); FALSE, //Indica si esta pendiente la ejecución de una ruta por parte del dispatcher | |
Router::get('controller_path');//Contiene el modulo y controlador en el formato: modulo/controlador |
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
<?php | |
/** | |
* Todas las controladores heredan de esta clase en un nivel superior | |
* por lo tanto los metodos aqui definidos estan disponibles para | |
* cualquier controlador. | |
* | |
* @category Kumbia | |
* @package Controller | |
* */ |
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
<?php | |
Load::model("Productos"); | |
class ProductosController extends ServicesController { | |
public function getFormaciones($idPersonal) { | |
$Productos = new Productos(); | |
echo $Productos->getProductos($idPersonal)->to_json(); | |
} | |
} |
OlderNewer