Skip to content

Commit

Permalink
Añadido el index/index con link al CMS y dejado el index.php como en …
Browse files Browse the repository at this point in the history
…el FW
  • Loading branch information
demonio committed Dec 29, 2011
1 parent 335fbc1 commit 34f6adf
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/controllers/admin/cms_controller.php
Expand Up @@ -33,7 +33,7 @@ public function pagina()
$this->pagina = basename( $_REQUEST['dir'] );
$this->codigo = file_get_contents( $_REQUEST['dir'] );
$this->codigo = htmlspecialchars( $this->codigo, ENT_QUOTES, APP_CHARSET );
$this->version = Load::model( 'versiones' )->leyendo( $this->dir, $this->pagina, $this->codigo );
$this->version = Load::model( 'versiones' )->leyendo( $this->dir, $this->pagina );
}

public function paginas()
Expand Down
2 changes: 1 addition & 1 deletion app/models/versiones.php
Expand Up @@ -2,7 +2,7 @@

class Versiones
{
public function leyendo( $dir, $pagina, $codigo )
public function leyendo( $dir, $pagina )
{
$raiz = APP_PATH . 'views/pages';
$carpetas = str_replace( $raiz, '', $dir );
Expand Down
4 changes: 4 additions & 0 deletions app/views/admin/index/index.phtml
@@ -0,0 +1,4 @@

<h1>Bienvenido a RaudoCMS</h1>

<a href="/admin/cms">CMS</a>
2 changes: 1 addition & 1 deletion public/index.php
Expand Up @@ -50,7 +50,7 @@
* CORE_PATH:
* - Ruta al directorio que contiene el núcleo de Kumbia (por defecto la ruta al directorio core)
*/
define('CORE_PATH', dirname(dirname(APP_PATH)) . '/kumbiaphp/cores/933/');
define('CORE_PATH', dirname(dirname(APP_PATH)) . '/core/');

/**
* Define el PUBLIC_PATH
Expand Down

0 comments on commit 34f6adf

Please sign in to comment.