Skip to content

Commit

Permalink
Use shorttags
Browse files Browse the repository at this point in the history
  • Loading branch information
AliasIO committed Jun 17, 2013
1 parent de8654a commit 87b7fb4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ Important: class names are written in
**View `views/foo.php`**

```php
<h1><?php echo $this->pageTitle ?></h1>
<h1><?= $this->pageTitle ?></h1>

<p>
<?php echo $this->helloWorld ?>
<?= $this->helloWorld ?>
</p>
```

Expand Down
2 changes: 1 addition & 1 deletion views/error404.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php require('header.php') ?>

<h1><?php echo $this->pageTitle ?></h1>
<h1><?= $this->pageTitle ?></h1>

<p>
Page not found.
Expand Down
4 changes: 2 additions & 2 deletions views/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

<html>
<head>
<title><?php echo $this->htmlEncode($this->app->getConfig('siteName')) . ' - ' . $this->pageTitle ?></title>
<title><?= $this->htmlEncode($this->app->getConfig('siteName')) . ' - ' . $this->pageTitle ?></title>

<link type="text/css" rel="stylesheet" href="<?php echo $this->app->getRootPath() ?>views/css/layout.css">
<link type="text/css" rel="stylesheet" href="<?= $this->app->getRootPath() ?>views/css/layout.css">
</head>
<body>
4 changes: 2 additions & 2 deletions views/index.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php require 'header.php' ?>

<h1><?php echo $this->pageTitle ?></h1>
<h1><?= $this->pageTitle ?></h1>

<p>
<?php echo $this->helloWorld ?>
<?= $this->helloWorld ?>
</p>

<?php require 'footer.php' ?>

0 comments on commit 87b7fb4

Please sign in to comment.