Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$total_pages undefined #3

Open
tjjjia opened this issue Nov 15, 2017 · 1 comment
Open

$total_pages undefined #3

tjjjia opened this issue Nov 15, 2017 · 1 comment

Comments

@tjjjia
Copy link

tjjjia commented Nov 15, 2017

First of, thank you for sharing the API!

Just ran the examples on my php box; I am getting the following notice with example '1_document'

Notice: Undefined property: Channel::$total_pages in /public/sites/[something]/master/examples/1_document/index.php on line 42

Pagination is broken, and the $per variable also doesn't do much.

The following code also doesn't do much (gets me the above notice as well).

	<?= $channel->total_pages; ?>
	<?= $channel->current_page; ?>

Any idea what is wrong/any idea what I am overlooking?

@absentees
Copy link

Looks like the same as my issue ivangreene/arena-js#29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants