Blog-Module > zend-paginator >> unable to transform from album to blog
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;
//
and so on.
In my opinion, this is very confusing...
Anybody else with the same problem?
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.