Skip to content

Commit 118ea4c

Browse files
authored
Update README.md
1 parent 52fc708 commit 118ea4c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ GenyPHP is a lightweight, easy-to-use PHP framework designed for building web ap
1010
git clone https://github.com/bellash13/GenyPHP.git
1111
```
1212
Alternatively, you can download the directory and start coding your valuable application
13+
1314
2. **Navigate to the Project Directory**
1415
```sh
1516
cd GenyPHP
@@ -42,20 +43,20 @@ Alternatively, you can download the directory and start coding your valuable app
4243
class HomeController extends Controller {
4344
public function index() {
4445
$data = ['title' => 'Welcome to GenyPHP!'];
45-
$this->render('index', $data);
46+
$this->render('Home/index', $data);
4647
}
4748
}
4849
```
4950

50-
3. **Creating Views with Layouts**
51+
3. **Creating Views with custom Layouts**
5152
Store your views in `App/Views`. Example `Home/index.php`:
5253
```html
5354
<h1>Welcome to GenyPHP!</h1>
5455
<p><?=$title?></p>
5556
```
5657
For layouts, use `App/Views/Shared/layout.php` and include views dynamically:
5758
```php
58-
$this->renderLayout('Shared/layout', 'Home/index', $data);
59+
$this->renderLayout('Home/index', $data, 'Shared/layout');
5960
```
6061

6162
4. **Public Directory**

0 commit comments

Comments
 (0)