Gibheer
ea72da5259
rework post controller
...
To handle errors correctly the post controller needed some rework. Now
instead of single functions running all around the place, there is one
function collecting the data needed and raising errors when needed.
For that to work, the controller class can now return more classes to
keep the chain going. Unless a class is returned, it will call the
renderer.
2014-02-13 22:38:42 +01:00
Gibheer
db30448a8e
do not jump out when nothing was found
2014-02-11 23:12:59 +01:00
Gibheer
c4eb4e3363
assign the posts only at one point
...
This makes it easier to find out, if posts have been found at all. The
next step is to use that information and show a hint when nothing was
found.
2014-02-11 23:09:34 +01:00
Gibheer
11ac9461c2
add new helper and implement search
...
This adds fulltext search for blog posts. Together with the render
object this creates a new possibility to extend the blog.
2014-01-23 21:59:24 +01:00
Gibheer
dded05bb52
order by id when the timestamp is equal
...
This can happen when multiple blog posts get inserted at once, so we
should order by id too.
2014-01-16 09:00:18 +01:00
Gibheer
6aa8f1c2a2
new next and previous buttons
...
When selecting only one post buttons to select the previous and next
blog posts are added. These can then be used to read one blog post per
page.
2014-01-02 21:38:21 +01:00
Gibheer
294625f251
add pagination to the page
2013-10-29 20:39:47 +01:00
Gibheer
693e118a84
add basics for pagination
2013-10-29 19:47:17 +01:00
Gibheer
4e04cce391
add atom feed
2013-10-26 17:52:52 +02:00
Gibheer
0e547febf1
add post controller
...
This adds the post controller to get the posts from the database and
make apply all filters needed to make it a workable result.
2013-10-26 14:56:55 +02:00