Removing cake-ness from doc index
This commit is contained in:
parent
b6f98d26a5
commit
5656f3f631
|
|
@ -16,7 +16,9 @@ class DocumentsController extends AppController {
|
|||
function index() {
|
||||
$this->Document->recursive = 0;
|
||||
//$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());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,7 +26,8 @@
|
|||
</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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue