Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Recess Tools - Application Generation
- Loading branch information
1 parent
7b322ee
commit 67f4302
Showing
39 changed files
with
860 additions
and
53 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
Library::import('recess.framework.Application'); | ||
|
||
class BackendApplication extends Application { | ||
public function __construct() { | ||
|
||
$this->name = 'New Media Engine'; | ||
|
||
$this->viewsDir = $_ENV['dir.apps'] . 'backend/views/'; | ||
|
||
$this->modelsPrefix = 'backend.models.'; | ||
|
||
$this->controllersPrefix = 'backend.controllers.'; | ||
|
||
$this->modelsPrefix = 'backend.models.'; | ||
|
||
$this->routingPrefix = 'control/'; | ||
|
||
} | ||
} | ||
?> |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
Library::import('recess.framework.controllers.Controller'); | ||
|
||
/** | ||
* !View Native, Prefix: home/ | ||
*/ | ||
class BackendHomeController extends Controller { | ||
|
||
/** !Route GET */ | ||
function home() { | ||
|
||
$this->flash = 'Welcome to your application!'; | ||
|
||
} | ||
|
||
} | ||
?> |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
</div> | ||
<div class="span-5 last infobar"> | ||
<h3><span>Resources</span></h3> | ||
<ul> | ||
<li><a href="http://www.recessframework.com/">RecessFramework.com</a></li> | ||
<li><a href="http://www.recessframework.com/docs/">Documentation</a></li> | ||
<li><a href="http://www.recessframework.com/blog/">Recess! Blog</a></li> | ||
<li><a href="http://www.krisjordan.com/">Kris' Blog</a></li> | ||
<li><a href="http://groups.google.com/group/recess-framework">Mailing Group</a></li> | ||
<li><a href="http://recess.lighthouseapp.com/">Report Bugs</a></li> | ||
<li><a href="https://github.com/KrisJordan/recess/tree/master">Recess! Source</a></li> | ||
</ul> | ||
</div> | ||
<div class="span-24 footer"> | ||
<p class="quiet bottom"><a href="http://<?php echo $_SERVER['SERVER_NAME'] . $_ENV['url.base'] . 'control/'; ?>">New Media Engine</a> is © <?php echo date('Y'); ?> | ||
{Insert Kick-ass App Developer Here}. All rights reserved. | ||
</p> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<html> | ||
<head> | ||
<!-- Blue Print --> | ||
<link rel="stylesheet" href="<?php echo $_ENV['url.content']; ?>css/blueprint/screen.css" type="text/css" media="screen, projection" /> | ||
<link rel="stylesheet" href="<?php echo $_ENV['url.content']; ?>css/blueprint/print.css" type="text/css" media="print" /> | ||
<!--[if IE]> | ||
<link rel="stylesheet" href="/css/blueprint/ie.css" type="text/css" media="screen, projection" /> | ||
<![endif]--> | ||
<link rel="stylesheet" href="<?php echo $_ENV['url.content']; ?>css/recess.css" /> | ||
<!-- Syntax Highlighter --> | ||
<link type="text/css" rel="stylesheet" href="<?php echo $_ENV['url.content']; ?>css/SyntaxHighlighter.css"></link> | ||
<title><?php if(isset($title)) echo $title; else echo 'Recess!'; ?></title> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<div class="span-24"> | ||
<h1>New Media Engine</h1> | ||
</div> | ||
<div class="span-19"> | ||
<?php include_once($viewsDir . 'common/navigation.php'); ?> |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<div class="span-19 navigation last"> | ||
<ul> | ||
<a href="">Navigation</a> | ||
<a href="">Could</a> | ||
<a href="">Go</a> | ||
<a href="">Here</a> | ||
</ul> | ||
</div> |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
$title = 'New Media Engine'; | ||
include_once($viewsDir . 'common/header.php'); | ||
?> | ||
<h2>Welcome!</h2> | ||
|
||
<h2>Next Steps</h2> | ||
|
||
<h2>Need Help?</h2> | ||
|
||
<?php include_once($viewsDir . 'common/footer.php'); ?> |
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
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
Oops, something went wrong.