tutorials icon indicating copy to clipboard operation
tutorials copied to clipboard

Blog-Module > zend-paginator >> unable to transform from album to blog

Open falkgotschalk opened this issue 8 years ago • 1 comments

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?

falkgotschalk avatar Mar 02 '17 19:03 falkgotschalk

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.

froschdesign avatar Jan 24 '18 08:01 froschdesign