Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
af936d47
Commit
af936d47
authored
Sep 06, 2007
by
Jonathan.Wage
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fleshing out content and committed some new files.
parent
cdd4cb75
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
43 additions
and
13 deletions
+43
-13
actions.class.php
website/apps/frontend/modules/blog/actions/actions.class.php
+3
-1
components.class.php
...e/apps/frontend/modules/blog/actions/components.class.php
+10
-0
_latest_blog_posts.php
...ps/frontend/modules/blog/templates/_latest_blog_posts.php
+8
-0
indexSuccess.php
...ite/apps/frontend/modules/blog/templates/indexSuccess.php
+15
-0
viewSuccess.php
website/apps/frontend/modules/blog/templates/viewSuccess.php
+5
-1
actions.class.php
website/apps/frontend/modules/main/actions/actions.class.php
+0
-3
indexSuccess.php
...ite/apps/frontend/modules/main/templates/indexSuccess.php
+1
-8
_menu.php
website/apps/frontend/templates/_menu.php
+1
-0
No files found.
website/apps/frontend/modules/blog/actions/actions.class.php
View file @
af936d47
...
...
@@ -16,7 +16,9 @@ class blogActions extends sfActions
*/
public
function
executeIndex
()
{
$blogPostTable
=
Doctrine_Manager
::
getInstance
()
->
getTable
(
'BlogPost'
);
$this
->
latestBlogPosts
=
$blogPostTable
->
retrieveLatest
(
5
);
}
public
function
executeView
()
...
...
website/apps/frontend/modules/blog/actions/components.class.php
0 → 100644
View file @
af936d47
<?php
class
blogComponents
extends
sfComponents
{
public
function
executeLatest_blog_posts
()
{
$blogPostTable
=
Doctrine_Manager
::
getInstance
()
->
getTable
(
'BlogPost'
);
$this
->
latestBlogPosts
=
$blogPostTable
->
retrieveLatest
(
5
);
}
}
\ No newline at end of file
website/apps/frontend/modules/blog/templates/_latest_blog_posts.php
0 → 100644
View file @
af936d47
<div
id=
"latest_blog_posts"
>
<h3>
Latest Blog Posts
</h3>
<ul>
<?php
foreach
(
$latestBlogPosts
AS
$blogPost
)
:
?>
<li>
<?php
echo
link_to
(
$blogPost
->
getName
(),
'@blog_post?slug='
.
$blogPost
->
getSlug
());
?>
</li>
<?php
endforeach
;
?>
</ul>
</div>
\ No newline at end of file
website/apps/frontend/modules/blog/templates/indexSuccess.php
View file @
af936d47
<div
class=
"content"
id=
"blog"
>
<h1>
Doctrine Blog
</h2>
<?php
foreach
(
$latestBlogPosts
AS
$blogPost
)
:
?>
<div
class=
"blog_post"
>
<h2>
<?php
echo
link_to
(
$blogPost
->
getName
(),
'@blog_post?slug='
.
$blogPost
->
getSlug
());
?>
</h2>
<p>
<?php
echo
$blogPost
->
getBody
();
?>
</p>
</div>
<?php
endforeach
;
?>
</div>
<?php
slot
(
'right'
);
?>
<?php
echo
get_partial
(
'latest_blog_posts'
,
array
(
'latestBlogPosts'
=>
$latestBlogPosts
));
?>
<?php
end_slot
();
?>
\ No newline at end of file
website/apps/frontend/modules/blog/templates/viewSuccess.php
View file @
af936d47
...
...
@@ -4,4 +4,8 @@
<?php
slot
(
'right'
);
?>
<input
type=
"button"
name=
"back_to_blog"
value=
"Back to Blog"
onClick=
"javascript: location.href = '
<?php
echo
url_for
(
'@blog'
);
?>
';"
/>
<?php
end_slot
();
?>
\ No newline at end of file
<br/><br/>
<?php
echo
get_component
(
'blog'
,
'latest_blog_posts'
);
?>
<?php
end_slot
();
?>
website/apps/frontend/modules/main/actions/actions.class.php
View file @
af936d47
...
...
@@ -16,9 +16,6 @@ class mainActions extends sfActions
*/
public
function
executeIndex
()
{
$blogPostTable
=
Doctrine_Manager
::
getInstance
()
->
getTable
(
'BlogPost'
);
$this
->
latestBlogPosts
=
$blogPostTable
->
retrieveLatest
(
5
);
}
public
function
executeAbout
()
...
...
website/apps/frontend/modules/main/templates/indexSuccess.php
View file @
af936d47
...
...
@@ -17,12 +17,5 @@
</ul>
</div>
<div
id=
"latest_blog_posts"
>
<h3>
Latest Blog Posts
</h3>
<ul>
<?php
foreach
(
$latestBlogPosts
AS
$blogPost
)
:
?>
<li>
<?php
echo
link_to
(
$blogPost
->
getName
(),
'@blog_post?slug='
.
$blogPost
->
getSlug
());
?>
</li>
<?php
endforeach
;
?>
</ul>
</div>
<?php
echo
get_component
(
'blog'
,
'latest_blog_posts'
);
?>
<?php
end_slot
();
?>
\ No newline at end of file
website/apps/frontend/templates/_menu.php
View file @
af936d47
...
...
@@ -4,5 +4,6 @@
<li>
<?php
echo
link_to
(
'download'
,
'@download'
);
?>
</li>
<li>
<?php
echo
link_to
(
'manual'
,
'@manual'
);
?>
</li>
<li>
<?php
echo
link_to
(
'api docs'
,
'@api_documentation'
);
?>
</li>
<li>
<?php
echo
link_to
(
'blog'
,
'@blog'
);
?>
</li>
<li
id=
"last"
>
<?php
echo
link_to
(
'trac'
,
'@trac'
);
?>
</li>
</ul>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment