Skip to content

Commit

Permalink
Merge pull request #54 from joanhey/kumbia-1.2
Browse files Browse the repository at this point in the history
Update Kumbia to v1.2.0
  • Loading branch information
myaaghubi authored Mar 16, 2024
2 parents 3358a16 + 82fed56 commit 792d9f3
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion config
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ codeigniter-4.4
fastroute-1.3
fatfree-3.8
fuelphp-1.9
kumbia-1.1
kumbia-1.2
laravel-10.2
leaf-3.5
lumen-10.0
Expand Down
2 changes: 0 additions & 2 deletions kumbia-1.1/_benchmark/hello_world.sh

This file was deleted.

File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions kumbia-1.2/_benchmark/hello_world.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
url="$base/$fw/default/public/index.php/hello/index"
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

class HelloworldController extends AppController
class HelloController extends AppController
{

public function index()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.
*
* @copyright Copyright (c) 2005 - 2020 KumbiaPHP Team (http://www.kumbiaphp.com)
* @copyright Copyright (c) 2005 - 2024 KumbiaPHP Team (http://www.kumbiaphp.com)
* @license https://github.com/KumbiaPHP/KumbiaPHP/blob/master/LICENSE New BSD License
*/

Expand Down Expand Up @@ -64,7 +64,7 @@
* - Ruta al directorio que contiene el núcleo de Kumbia (por defecto la ruta al directorio core)
* - En producción, es recomendable ponerla manual usando const
*/
define('CORE_PATH', dirname(dirname(APP_PATH)).'/core/');
define('CORE_PATH', dirname(APP_PATH, 2).'/core/');
//const CORE_PATH = '/path/to/core/';

/*
Expand All @@ -90,13 +90,13 @@
/**
* Obtiene la url usando PATH_INFO.
*/
$url = isset($_SERVER['PATH_INFO']) ? $_SERVER['PATH_INFO'] : '/';
$url = $_SERVER['PATH_INFO'] ?? '/';

/**
* Obtiene la url usando $_GET['_url']
* Cambiar también en el .htaccess.
*/
//$url = isset($_GET['_url']) ? $_GET['_url'] : '/';
//$url = $_GET['_url'] ?? '/';

/**
* Carga el gestor de arranque
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh
# create project
rm -rf _benchmark/temp
composer create-project --prefer-dist kumbia/framework:1.1.* ./_benchmark/temp --ansi
composer create-project --prefer-dist kumbia/framework:1.2.* ./_benchmark/temp --ansi
mv ./_benchmark/temp/{.,}* ./

# have the route & controller
Expand Down
File renamed without changes.

0 comments on commit 792d9f3

Please sign in to comment.