Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MINOR: update core controller template with more help information.
Updated controller and director documentation to reflect the new YAML configuration for route path definition.
- Loading branch information
Showing
3 changed files
with
120 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,43 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<% base_tag %> | ||
|
||
$MetaTags | ||
|
||
<% require css('framework/css/debug.css') %> | ||
</head> | ||
<body> | ||
<h1><% if $Title %>$Title<% else %>Welcome to SilverStripe<% end_if %></h1> | ||
<% if $Content %>$Content<% else %> | ||
<p>To get started with the SilverStripe framework:</p> | ||
<ol> | ||
<li>Create a <code>Controller</code> subclass (<a href="http://doc.silverstripe.org/sapphire/en/topics/controller">doc.silverstripe.org/sapphire/en/topics/controller</a>)</li> | ||
<li>Setup the routes to your <code>Controller</code>.</li> | ||
<li>Create a template for your <code>Controller</code> (<a href="http://doc.silverstripe.org/sapphire/en/trunk/reference/templates">doc.silverstripe.org/sapphire/en/trunk/reference/templates</a>)</li> | ||
</ol> | ||
<% end_if %> | ||
<p><em>Generated with the default Controller.ss template.</em></p> | ||
<div class="info"> | ||
<h1><% if $Title %>$Title<% else %>Welcome to SilverStripe<% end_if %></h1> | ||
<h3>Generated with the default Controller.ss template</h3> | ||
</div> | ||
|
||
<div class="options"> | ||
<% if $Content %>$Content<% else %> | ||
<h3>Getting Started</h3> | ||
|
||
<p>To get started with the SilverStripe framework:</p> | ||
<ol> | ||
<li>Create a <code>Controller</code> subclass (<a href="http://doc.silverstripe.org/sapphire/en/topics/controller">doc.silverstripe.org/sapphire/en/topics/controller</a>)</li> | ||
<li>Setup the routes.yml f to your <code>Controller</code> (<a href="http://doc.silverstripe.org/framework/en/reference/director#routing">doc.silverstripe.org/framework/en/reference/director#routing</a>).</li> | ||
<li>Create a template for your <code>Controller</code> (<a href="http://doc.silverstripe.org/sapphire/en/reference/templates">doc.silverstripe.org/sapphire/en/reference/templates</a>)</li> | ||
</ol> | ||
<% end_if %> | ||
|
||
<h3>Community resources</h3> | ||
|
||
<ul> | ||
<li> | ||
<p><a href="http://silverstripe.org/forum">silverstripe.org/forum</a> Discussion forums for the development community.</p> | ||
</li> | ||
<li><p><a href="http://silverstripe.org/irc">silverstripe.org/irc</a> IRC channel for realtime support and discussions.</p></li> | ||
|
||
<li><p><a href="http://doc.silverstripe.org">doc.silverstripe.org</a> Searchable developer documentation, how-tos, tutorials, and reference.</p></li> | ||
|
||
<li><p><a href="http://api.silverstripe.org">api.silverstripe.org</a> API documentation for PHP classes, methods and properties.</p></li> | ||
<ul> | ||
</div> | ||
</body> | ||
</html> |