Disable debugging. Add limit to documents index
This commit is contained in:
parent
93bcf3e641
commit
df1d396630
|
|
@ -41,7 +41,7 @@ error_reporting(E_ALL & ~E_STRICT & ~E_DEPRECATED);
|
||||||
* In production mode, flash messages redirect after a time interval.
|
* In production mode, flash messages redirect after a time interval.
|
||||||
* In development mode, you need to click the flash message to continue.
|
* In development mode, you need to click the flash message to continue.
|
||||||
*/
|
*/
|
||||||
Configure::write('debug', 1);
|
Configure::write('debug', 0);
|
||||||
|
|
||||||
Configure::write('version', '1.0.1');
|
Configure::write('version', '1.0.1');
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,8 +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());
|
||||||
|
//print_r$($this->params["named"]["page"]);
|
||||||
|
|
||||||
$query = "SELECT id,type,created,user_id,doc_page_count, pdf_filename,pdf_created_at, pdf_created_by_user_id FROM documents As Document ORDER BY id DESC;";
|
$query = "SELECT id,type,created,user_id,doc_page_count, pdf_filename,pdf_created_at, pdf_created_by_user_id FROM documents As Document ORDER BY id DESC LIMIT 500;";
|
||||||
$this->set('documents', $this->Document->query($query));
|
$this->set('documents', $this->Document->query($query));
|
||||||
|
|
||||||
$this->set('users', $this->Document->User->getUsersList());
|
$this->set('users', $this->Document->User->getUsersList());
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue