From cdd4cb755c4b283fe50a87d96e3dea4f03769af9 Mon Sep 17 00:00:00 2001 From: "Jonathan.Wage" Date: Thu, 6 Sep 2007 17:21:56 +0000 Subject: [PATCH] Initial entry. --- .../blog_posts/actions/actions.class.php | 13 ++++++++ .../modules/blog_posts/config/generator.yml | 11 +++++++ .../modules/blog/actions/actions.class.php | 30 +++++++++++++++++++ .../modules/blog/templates/indexSuccess.php | 0 .../modules/blog/templates/viewSuccess.php | 7 +++++ .../main/templates/_about_paragraph.php | 4 +++ .../main/templates/_key_features_list.php | 11 +++++++ website/lib/Common.class.php | 20 +++++++++++++ 8 files changed, 96 insertions(+) create mode 100644 website/apps/backend/modules/blog_posts/actions/actions.class.php create mode 100644 website/apps/backend/modules/blog_posts/config/generator.yml create mode 100644 website/apps/frontend/modules/blog/actions/actions.class.php create mode 100644 website/apps/frontend/modules/blog/templates/indexSuccess.php create mode 100644 website/apps/frontend/modules/blog/templates/viewSuccess.php create mode 100644 website/apps/frontend/modules/main/templates/_about_paragraph.php create mode 100644 website/apps/frontend/modules/main/templates/_key_features_list.php create mode 100644 website/lib/Common.class.php diff --git a/website/apps/backend/modules/blog_posts/actions/actions.class.php b/website/apps/backend/modules/blog_posts/actions/actions.class.php new file mode 100644 index 000000000..be711200c --- /dev/null +++ b/website/apps/backend/modules/blog_posts/actions/actions.class.php @@ -0,0 +1,13 @@ +getRequestParameter('slug'); + + $blogPostTable = Doctrine_Manager::getInstance()->getTable('BlogPost'); + + $this->blogPost = $blogPostTable->retrieveBySlug($slug); + } +} diff --git a/website/apps/frontend/modules/blog/templates/indexSuccess.php b/website/apps/frontend/modules/blog/templates/indexSuccess.php new file mode 100644 index 000000000..e69de29bb diff --git a/website/apps/frontend/modules/blog/templates/viewSuccess.php b/website/apps/frontend/modules/blog/templates/viewSuccess.php new file mode 100644 index 000000000..aa6b85a2f --- /dev/null +++ b/website/apps/frontend/modules/blog/templates/viewSuccess.php @@ -0,0 +1,7 @@ +

getName(); ?>

+ +

getBody(); ?>

+ + + + \ No newline at end of file diff --git a/website/apps/frontend/modules/main/templates/_about_paragraph.php b/website/apps/frontend/modules/main/templates/_about_paragraph.php new file mode 100644 index 000000000..f7f5a5d65 --- /dev/null +++ b/website/apps/frontend/modules/main/templates/_about_paragraph.php @@ -0,0 +1,4 @@ +Doctrine is an ORM (object relational mapper) for PHP 5.2.x+ that sits on top of a powerful DBAL (database abstraction layer). +One of its key features is the ability to optionally write database queries in an OO (object oriented) +SQL-dialect called DQL inspired by Hibernates HQL. This provides developers with a powerful alternative to SQL +that maintains a maximum of flexibility without requiring needless code duplication. \ No newline at end of file diff --git a/website/apps/frontend/modules/main/templates/_key_features_list.php b/website/apps/frontend/modules/main/templates/_key_features_list.php new file mode 100644 index 000000000..a49ec7a44 --- /dev/null +++ b/website/apps/frontend/modules/main/templates/_key_features_list.php @@ -0,0 +1,11 @@ + \ No newline at end of file diff --git a/website/lib/Common.class.php b/website/lib/Common.class.php new file mode 100644 index 000000000..50a73343d --- /dev/null +++ b/website/lib/Common.class.php @@ -0,0 +1,20 @@ +