Skip to content

Commit

Permalink
fix file comments and typo
Browse files Browse the repository at this point in the history
  • Loading branch information
steinkel committed Oct 27, 2023
1 parent 02ff27d commit c7ddf3e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 6 additions & 2 deletions en/tutorials-and-examples/cms/database.rst
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,9 @@ with those that apply to your setup. A sample completed configuration array
might look something like the following::

<?php
// config/app_local.php
return [
// Más configuración arriba.
// More configuration above.
'Datasources' => [
'default' => [
'host' => 'localhost',
Expand All @@ -141,7 +142,7 @@ might look something like the following::
'url' => env('DATABASE_URL', null),
],
],
// Más configuración abajo.
// More configuration below.
];

Once you've saved your **config/app_local.php** file, you should see that the 'CakePHP is
Expand All @@ -167,6 +168,7 @@ to **src/Model/Table/ArticlesTable.php**. The completed file should look like
this::

<?php
// src/Model/Table/ArticlesTable.php
declare(strict_types=1);

namespace App\Model\Table;
Expand Down Expand Up @@ -203,6 +205,8 @@ look like this::

<?php
// src/Model/Entity/Article.php
declare(strict_types=1);

namespace App\Model\Entity;

use Cake\ORM\Entity;
Expand Down
3 changes: 3 additions & 0 deletions es/tutorials-and-examples/cms/database.rst
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ los valores en el arreglo ``Datasources.default`` en su archivo **config/app_loc
a su configuración. Una arreglo de configuración completo de muestra podría tener el siguiente aspecto::

<?php
// config/app_local.php
return [
// Más configuración arriba.
'Datasources' => [
Expand Down Expand Up @@ -162,6 +163,7 @@ en **src/Model/Table**. El archivo que crearemos se guardará en **src/Model/Tab
El archivo completo debería verse así::

<?php
// src/Model/Table/ArticlesTable.php
declare(strict_types=1);

namespace App\Model\Table;
Expand Down Expand Up @@ -197,6 +199,7 @@ nuestros datos. Nuestra ``Entity`` se guardará en **src/Model/Entity/Article.ph
archivo completo debería verse así::

<?php
// src/Model/Entity/Article.php
declare(strict_types=1);

namespace App\Model\Entity;
Expand Down

0 comments on commit c7ddf3e

Please sign in to comment.