Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactored view setup instructions for clarity #58

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion en/first-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,14 @@ Identifies it as a controlling class, and it inherits (extends) the
Superclass AppController, which acquires the properties of a class
Controller, there is also the hello() method.

# The view to see the output that sends the controller, it is necessary create the view associated with the action. First, create a directory with the same name of our driver (in this case must be called greeting), and inside it are all views associated with the actions that need to display some information. In our example we call an action called Hello; Therefore, we create a file called * app/views/saludo/hola.phtml*. Once this file is created, add you a little content: "'html < h1 > Hello KumbiaPHP! < / h1 >
# The view
To see the output that sends the controller, it is necessary create the view associated with the action. First, create
a directory with the same name of our driver (in this case must be called greeting), and inside it are all views
associated with the actions that need to display some information. In our example we call an action called Hello;
Therefore, we create a file called * app/views/saludo/hola.phtml*. Once this file is created, add you a little content:

```html
<h1>Hello KumbiaPHP!</h1>
```

Then try to access the following URL: http://localhost/kumbiaphp/saludo/hola/ and the result must be as shown Figure 2.2.
Expand Down