You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 29, 2020. It is now read-only.
Repository navigation
This repository was archived by the owner on Jan 29, 2020. It is now read-only.
Blog-Module > zend-paginator >> unable to transform from album to blog #75
Hello there,
for all beginners such tutorials are very useful, no question.
The "album"-part is a good start but a lot f people (like me) would have problems to implement new modules.
So, the "continuation" with the blog-module is a really nice try.... but:
it does not cover all features "learned" before, like the missing zend-paginator
caused by the completely different programming"style" beginners are unable to adapt the album-coding to the blog-coding to do this.
(example: load all entries from table, album vs blog
AlbumTable.php vs ZendDbSqlRepository.php
fetchAll() <> findAllPosts()
return $this->tableGateway->select(); VS
// $sql = new Sql($this->db);
$select = $sql->select('posts');
$statement = $sql->prepareStatementForSqlObject($select);
$result = $statement->execute();
if (! $result instanceof ResultInterface || ! $result->isQueryResult()) {
return [];
}
$resultSet = new HydratingResultSet($this->hydrator, $this->postPrototype);
$resultSet->initialize($result);
return $resultSet;
it does not cover all features "learned" before, like the missing zend-paginator
This was never a goal.
caused by the completely different programming"style"
The intro of the tutorial includes this information. The "In-Depth tutorial" goes deeper than the "Getting Started" tutorial and adds some best-practices and more flexible techniques.
But we should expand the introduction to cover this fact.
Activity
froschdesign commentedon Jan 24, 2018
This was never a goal.
The intro of the tutorial includes this information. The "In-Depth tutorial" goes deeper than the "Getting Started" tutorial and adds some best-practices and more flexible techniques.
But we should expand the introduction to cover this fact.