I regret using CakePHP for anything eveR
This commit is contained in:
parent
70c166b4a3
commit
b4a13fb8d9
|
|
@ -16,7 +16,7 @@ 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->query("select id,type,created,user_id,pdf_filename,pdf_created_at, pdf_created_by_user_id FROM documents As Document;"));
|
$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;"));
|
||||||
|
|
||||||
$this->set('users', $this->Document->User->getUsersList());
|
$this->set('users', $this->Document->User->getUsersList());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue