Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.
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

Open

Description

@falkgotschalk

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?

Activity

  1. froschdesign commented on Jan 24, 2018

    @froschdesign
    Member

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions