Skip to content

Commit 2b2d1e9

Browse files
committed
rename the _Response yield method, since yield is reserved
1 parent 742d054 commit 2b2d1e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

klein.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ public function layout($layout) {
601601
}
602602

603603
// Renders the current view
604-
public function yield() {
604+
public function _yield() {
605605
require $this->_view;
606606
}
607607

@@ -614,7 +614,7 @@ public function render($view, array $data = array()) {
614614
}
615615
$this->_view = $view;
616616
if (null === $this->_layout) {
617-
$this->yield();
617+
$this->_yield();
618618
} else {
619619
require $this->_layout;
620620
}

0 commit comments

Comments
 (0)