Skip to content

Commit

Permalink
Keep Theme::presenter() in sync with Presenter::forge()
Browse files Browse the repository at this point in the history
  • Loading branch information
WanWizard committed Jan 25, 2015
1 parent 5c67213 commit b3533c6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion classes/presenter.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ <h4 class="method" id="method_forge">forge($presenter, $method = 'view', $auto_f
<tr>
<th><kbd>$view</kbd></th>
<td><pre class="php"><code>null</code></pre></td>
<td class="description"></td>
<td class="description">Custom view name, used if the view to be loaded can not be determined from the presenter name</td>
</tr>
</table>
</td>
Expand Down
11 changes: 8 additions & 3 deletions classes/theme/methods.html
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,9 @@ <h4 class="method" id="method_view">view($view, $data = array(), $auto_filter =
</article>

<article>
<h4 class="method" id="method_presenter">presenter($view, $method = 'view', $auto_filter = null)</h4>
<h4 class="method" id="method_presenter">presenter($presenter, $method = 'view', $auto_filter = null, $view = null)</h4>
<p>
The <strong>presenter</strong> method loads and return a Presenter object based on the $view string passed. It
The <strong>presenter</strong> method loads and return a Presenter object based on the $presenter string passed. It
will use the <strong>view</strong> method documented above to pass the theme view to the Presenter.
</p>

Expand All @@ -269,7 +269,7 @@ <h4 class="method" id="method_presenter">presenter($view, $method = 'view', $aut
<th class="description">Description</th>
</tr>
<tr>
<th><kbd>$view</kbd></th>
<th><kbd>$presenter</kbd></th>
<td><em>string</em></td>
<td><pre class="php"><code>null</code></pre></td>
<td class="description">The presenter name. See the <a href="../../general/presenters.html">Presenter</a> for more information.</td>
Expand All @@ -286,6 +286,11 @@ <h4 class="method" id="method_presenter">presenter($view, $method = 'view', $aut
<td><pre class="php"><code>null</code></pre></td>
<td class="description">set to <em>true</em> or <em>false</em> to set auto encoding, defaults to main config setting (app/config/config.php)</td>
</tr>
<tr>
<th><kbd>$view</kbd></th>
<td><pre class="php"><code>null</code></pre></td>
<td class="description">Custom view name, used if the view to be loaded can not be determined from the presenter name</td>
</tr>
</table>
</td>
</tr>
Expand Down

0 comments on commit b3533c6

Please sign in to comment.