Skip to content

Instantly share code, notes, and snippets.

@fedmich
Created September 21, 2012 08:40
Show Gist options
  • Save fedmich/3760414 to your computer and use it in GitHub Desktop.
Save fedmich/3760414 to your computer and use it in GitHub Desktop.
CakePHP_Codes
App::uses('Chart', 'Lib');
class ... {
}
----
Late importing
function ...(){
App::import('Lib', 'Chart');
}
<?php
//in controller files
public function beforeFilter() {
parent::beforeFilter();
//Cronjob mode, no views needed
$this->render(false);
//$this->autoRender = false;
//$this->layout = null;
}
<img src="<?= $this->webroot; ?>img/delete.png" alt="Delete" title="Delete" width="16" height="16" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment