Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9ca6c2e
commit 4669ef2
Showing
35 changed files
with
522 additions
and
0 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,14 @@ | ||
<?php | ||
class AppController extends Controller | ||
{ | ||
var $helpers = array( 'Html' ); | ||
|
||
var $components = array( 'Session' ); | ||
|
||
function beforeFilter() | ||
{ | ||
parent::beforeFilter(); | ||
} | ||
|
||
} | ||
?> |
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,10 @@ | ||
<?php | ||
/** | ||
* | ||
* | ||
*/ | ||
class AppModel extends Model | ||
{ | ||
var $actsAs = array( 'Containable' ); | ||
} | ||
?> |
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 | ||
class PostsController extends BlogAppController | ||
{ | ||
var $name = 'Posts'; | ||
|
||
function index() | ||
{ | ||
$this->set('posts', $this->Post->find('all')); | ||
} | ||
} | ||
?> |
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 @@ | ||
dogmatic||carl@sightings-design.co.za |
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,6 @@ | ||
<?php | ||
class Post extends BlogAppModel | ||
{ | ||
var $name = 'Post'; | ||
} | ||
?> |
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 @@ | ||
dogmatic||carl@sightings-design.co.za |
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,18 @@ | ||
<div class="post"> | ||
<div class="header"> | ||
<h3>TerraFirma<sup>1.0</sup> by NodeThirtyThree</h3> | ||
<div class="date">August 1, 2006</div> | ||
</div> | ||
<div class="content"> | ||
<img src="../img/terrafirma/pic1.jpg" class="picA floatleft" alt="" /> | ||
<p><strong>TerraFirma</strong><sup>1.0</sup> is a free, lightweight, tableless, W3C-compliant website design by <a href="http://www.nodethirtythree.com/">NodeThirtyThree Design</a>. You're free to dissect, manipulate and use it to your heart's content. We only ask that you link back to our site in some way. If you find this design useful, feel free to let us know :)</p> | ||
<p>You can find more of our free work at this site or <a href="http://www.nodethirtythree.com/">our site</a>, or some of our commercial work on <a href="http://www.4templates.com/?aff=n33">4Templates.com</a>, a commercial website template site.</p> | ||
</div> | ||
<div class="footer"> | ||
<ul> | ||
<li class="printerfriendly"><a href="#">Printer Friendly</a></li> | ||
<li class="comments"><a href="#">Comments (18)</a></li> | ||
<li class="readmore"><a href="#">Read more</a></li> | ||
</ul> | ||
</div> | ||
</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,13 @@ | ||
<?php | ||
/** | ||
* | ||
* | ||
*/ | ||
class BlogAppController extends AppController | ||
{ | ||
function beforeFilter() | ||
{ | ||
parent::beforeFilter(); | ||
} | ||
} | ||
?> |
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 @@ | ||
dogmatic||carl@sightings-design.co.za |
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,6 @@ | ||
<?php | ||
class BlogAppModel extends AppModel | ||
{ | ||
|
||
} | ||
?> |
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 @@ | ||
dogmatic||carl@sightings-design.co.za |
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,13 @@ | ||
<h3>Topics</h3> | ||
<div class="content"> | ||
<ul class="linklist"> | ||
<li class="first"><a href="#">Accumsan congue (32)</a></li> | ||
<li><a href="#">Dignissim nec augue (14)</a></li> | ||
<li><a href="#">Nunc ante elit nulla (83)</a></li> | ||
<li><a href="#">Aliquam suscipit (74)</a></li> | ||
<li><a href="#">Cursus sed arcu sed (14)</a></li> | ||
<li><a href="#">Eu ante cras at risus (24)</a></li> | ||
<li><a href="#">Donec mollis dolore (39)</a></li> | ||
<li><a href="#">Aliquam suscipit (74)</a></li> | ||
</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,10 @@ | ||
<div id="menu"> | ||
<ul> | ||
<li class="first"><a href="#">Home</a></li> | ||
<li><a href="#">Archives</a></li> | ||
<li><a href="#">Links</a></li> | ||
<li><a href="#">Resources</a></li> | ||
<li><a href="#">Contact</a></li> | ||
</ul> | ||
<div id="date"><?php echo date( 'F d, Y' ); ?></div> | ||
</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,6 @@ | ||
<div id="primarycontent"> | ||
<?php | ||
echo $this->Session->flash(); | ||
echo $content_for_layout; | ||
?> | ||
</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,5 @@ | ||
<div id="secondarycontent"> | ||
<?php | ||
echo $this->element( 'menu/right', array( 'plugin' => 'core' ) ); | ||
?> | ||
</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,55 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<?php echo $this->Html->charset(); ?> | ||
<title> | ||
<?php | ||
echo __( 'PhpDev :: ', true ), $title_for_layout; | ||
?> | ||
</title> | ||
<?php | ||
echo $this->Html->meta('icon'); | ||
echo $html->css( 'default' ); | ||
echo $scripts_for_layout; | ||
?> | ||
</head> | ||
<body> | ||
<!-- terrafirma1.0 by nodethirtythree design http://www.nodethirtythree.com --> | ||
<div id="outer"> | ||
<div id="upbg"></div> | ||
<div id="inner"> | ||
<div id="header"> | ||
<h1><span>Php</span>dev<sup>1.0</sup></h1> | ||
<h2>by dogmatic69</h2> | ||
</div> | ||
<div id="splash"></div> | ||
<?php | ||
echo $this->element( 'menu/top', array( 'plugin' => 'core' ) ); | ||
echo $this->element( 'main_content', array( 'content_for_layout' => $content_for_layout ) ); | ||
echo $this->element( 'right_bar' ); | ||
?> | ||
<div id="footer"> | ||
© Php-Dev.co.za. All rights reserved. <?php echo $this->Html->link( 'Hosted by Change Me', 'http://www.changeme.com' ); ?> | ||
<?php | ||
echo $this->Html->link( | ||
$this->Html->image( | ||
'cake.power.gif', | ||
array( | ||
'alt'=> __( 'CakePHP: the rapid development php framework', true), | ||
'border' => '0' | ||
) | ||
), | ||
'http://www.cakephp.org/', | ||
array( | ||
'target' => '_blank', | ||
'escape' => false, | ||
'style' => 'float:right;' | ||
) | ||
); | ||
?> | ||
</div> | ||
</div> | ||
</div> | ||
<?php echo $cakeDebug; ?> | ||
</body> | ||
</html> |
Oops, something went wrong.