mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-10 00:52:11 +01:00
Updated PagedList aswell.
This commit is contained in:
parent
4cbea7fd06
commit
bf7948be47
@ -10,7 +10,7 @@
|
||||
|
||||
#include "core/html/html_builder.h"
|
||||
|
||||
void PagedList::index(Request *request) {
|
||||
void PagedList::handle_request_main(Request *request) {
|
||||
const String path = request->get_current_path_segment();
|
||||
|
||||
if (request->get_remaining_segment_count() == 0) {
|
||||
@ -31,7 +31,7 @@ void PagedList::load() {
|
||||
}
|
||||
|
||||
PagedList::PagedList() :
|
||||
Object() {
|
||||
WebNode() {
|
||||
|
||||
main_page = new ListPage();
|
||||
articles = new PagedArticle();
|
||||
|
@ -1,18 +1,18 @@
|
||||
#ifndef PAGED_LIST_H
|
||||
#define PAGED_LIST_H
|
||||
|
||||
#include "core/object.h"
|
||||
|
||||
#include "core/string.h"
|
||||
|
||||
#include "core/http/web_node.h"
|
||||
|
||||
#include "modules/list_page/list_page.h"
|
||||
#include "modules/paged_article/paged_article.h"
|
||||
|
||||
class PagedList : public Object {
|
||||
RCPP_OBJECT(PagedList, Object);
|
||||
class PagedList : public WebNode {
|
||||
RCPP_OBJECT(PagedList, WebNode);
|
||||
|
||||
public:
|
||||
void index(Request *request);
|
||||
void handle_request_main(Request *request);
|
||||
|
||||
void load();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user