Wall_GetWall( array( 'wall_user_id' => (int) $this->GetParam('user_id'), 'pid' => null ), array( 'id' => 'desc' ), 1, Config::Get( 'module.wall.per_page' ) ); $posts = $wall['collection']; $this->Viewer_Assign('posts', $posts); $this->Viewer_Assign('count', $wall['count']); $this->Viewer_Assign('classes', $this->GetParam('classes')); if ( count($posts) ) { $this->Viewer_Assign('lastId', end($posts)->getId()); } $this->SetTemplate('components/wall/wall.tpl'); } }