Skip to content

Commit

Permalink
Remove <?php from the es/ docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Nov 23, 2012
1 parent 1f7bdda commit d8388e1
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 20 deletions.
2 changes: 1 addition & 1 deletion es/cakephp-overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ explicarlas, sino sólo la forma en que se utilizados en su contexto.

cakephp-overview/what-is-cakephp-why-use-it
cakephp-overview/understanding-model-view-controller
cakephp-overview/where-to-get-help
cakephp-overview/where-to-get-help
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,4 @@ manera.
Para iniciarte con tu primera aplicación en CakePHP
:doc:`haz este tutorial ahora </tutorials-and-examples/blog/blog>`

.. |Figure 1| image:: /_static/img/basic_mvc.png
.. |Figure 1| image:: /_static/img/basic_mvc.png
2 changes: 1 addition & 1 deletion es/cakephp-overview/what-is-cakephp-why-use-it.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ He aquí una lista rápida de las características que disfrutarás al utilizar
- Sanitización de Datos.
- Poderoso `Caché <http://en.wikipedia.org/wiki/Web_cache>`_.
- Localización e Internacionalización.
- Funciona desde cualquier directorio de sitios web, con poca o ninguna configuración adicional.
- Funciona desde cualquier directorio de sitios web, con poca o ninguna configuración adicional.
2 changes: 1 addition & 1 deletion es/cakephp-overview/where-to-get-help.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ En Inglés:

CakePHP tiene también un Grupo de Google muy activo. Puede ser un gran
recurso para encontrar las respuestas archivadas, preguntas frecuentes,
y obtener respuestas a los problemas inmediatos.
y obtener respuestas a los problemas inmediatos.
1 change: 0 additions & 1 deletion es/getting-started/cakephp-conventions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ será accesible internamente. Por ejemplo:

::

<?php
class NewsController extends AppController {
function latest() {
Expand Down
1 change: 0 additions & 1 deletion es/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ tu fichero app/Config/core.php:

::

<?php
/**
* If you are on PHP 5.3 uncomment this line and correct your server timezone
* to fix the date & time related errors.
Expand Down
3 changes: 0 additions & 3 deletions es/tutorials-and-examples/blog/blog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ vete a la línea 203 del fichero ``/app/Config/core.php`` y verás algo así:

::

<?php
/**
* A random string used in security hashing methods.
*/
Expand All @@ -183,7 +182,6 @@ qué numero pongas, que sea difícil de adivinar.

::

<?php
/**
* A random numeric string (digits only) used to encrypt/decrypt strings.
*/
Expand Down Expand Up @@ -250,7 +248,6 @@ Si no puedes (o no quieres) configurar mod\_rewrite o algún otro módulo
compatible, necesitarás activar las url amigables en CakePHP. En el fichero
``/app/Config/core.php``, quita el comentario a la línea::

<?php
Configure::write('App.baseUrl', env('SCRIPT_NAME'));

Borra también los ficheros .htaccess que ya no serán necesarios::
Expand Down
11 changes: 0 additions & 11 deletions es/tutorials-and-examples/blog/part-two.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ Los ficheros en los que se definen los modelos se ubican en la carpeta
``/app/Model``, y el fichero que vamos a crear debe guardarse en la ruta
``/app/Model/Post.php``. El contenido de este ficheró será::

<?php

class Post extends AppModel {
public $name = 'Post';
Expand Down Expand Up @@ -60,7 +59,6 @@ defecto de cada controlador es index por convención) esperan ver un listado de

::

<?php
class PostsController extends AppController {
public $helpers = array ('Html','Form');
Expand Down Expand Up @@ -215,7 +213,6 @@ ya que esa acción no está definida y debería mostrar la página de error
correspondiente. Cosa muy rara.
Creemos esta acción para evitar el error::

<?php
class PostsController extends AppController {
public $helpers = array('Html', 'Form');
public $name = 'Posts';
Expand Down Expand Up @@ -267,7 +264,6 @@ Lo primero, añadir una nueva acción ``add()`` en nuestro controlador PostsCont

::

<?php
class PostsController extends AppController {
public $name = 'Posts';
public $components = array('Session');
Expand Down Expand Up @@ -343,7 +339,6 @@ Nuestra vista sería así
<!-- File: /app/View/Posts/add.ctp -->
<h1>Add Post</h1>
<?php
echo $this->Form->create('Post');
echo $this->Form->input('title');
echo $this->Form->input('body', array('rows' => '3'));
Expand Down Expand Up @@ -390,7 +385,6 @@ Abre el modelo Post y vamos a escribir allí algunas reglas sencillas :

::

<?php
class Post extends AppModel {
public $name = 'Post';
Expand Down Expand Up @@ -426,7 +420,6 @@ Aquí está el método edit():

::

<?php
function edit($id = null) {
$this->Post->id = $id;
if ($this->request->is('get')) {
Expand All @@ -453,7 +446,6 @@ La vista quedará así:
<!-- File: /app/View/Posts/edit.ctp -->
<h1>Edit Post</h1>
<?php
echo $this->Form->create('Post', array('action' => 'edit'));
echo $this->Form->input('title');
echo $this->Form->input('body', array('rows' => '3'));
Expand Down Expand Up @@ -514,7 +506,6 @@ nuestro controlador:

::

<?php
function delete($id) {
if (!$this->request->is('post')) {
throw new MethodNotAllowedException();
Expand Down Expand Up @@ -599,7 +590,6 @@ primero la regla de la que hemos hablado:

::

<?php
Router::connect('/', array('controller' => 'pages', 'action' => 'display', 'home'));

Como habíamos dicho, esta regla conecta la URL '/' con el controlador 'pages' la
Expand All @@ -608,7 +598,6 @@ regla por esta otra:

::

<?php
Router::connect('/', array('controller' => 'posts', 'action' => 'index'));

Ahora la URL '/' nos llevará al controlador 'posts' y la acción 'index'.
Expand Down

0 comments on commit d8388e1

Please sign in to comment.