Removing cake-ness from doc index

This commit is contained in:
Karl Cordes 2016-05-17 23:04:00 +10:00
parent b6f98d26a5
commit 5656f3f631
2 changed files with 5 additions and 2 deletions

View file

@ -16,7 +16,9 @@ class DocumentsController extends AppController {
function index() { function index() {
$this->Document->recursive = 0; $this->Document->recursive = 0;
//$this->set('documents', $this->paginate()); //$this->set('documents', $this->paginate());
$this->set('documents', $this->Document->query("select id,type,created,user_id,pdf_filename,pdf_created_at, pdf_created_by_user_id FROM documents As Document;"));
$query = "SELECT id,type,created,user_id,doc_page_count, pdf_filename,pdf_created_at, pdf_created_by_user_id FROM documents As Document;";
$this->set('documents', $this->Document->query($query));
$this->set('users', $this->Document->User->getUsersList()); $this->set('users', $this->Document->User->getUsersList());
} }

View file

@ -26,7 +26,8 @@
</td> </td>
<td> <td>
<?php echo $html->link($document['User']['username'], array('controller' => 'users', 'action' => 'view', $document['User']['id'])); ?> <?php echo $document['Document']['user_id']; ?>
<?php //echo $html->link($document['User']['username'], array('controller' => 'users', 'action' => 'view', $document['User']['id'])); ?>
</td> </td>
<td> <td>