This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Tests\Concerns; | |
use App\Models\User; | |
use Tymon\JWTAuth\Facades\JWTAuth; | |
trait AttachJwtToken | |
{ | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class ExamplesController extends AppController { | |
public $fileCounts = array( ); | |
public function countFilesByExtension( $fileExtension, $directoryPath ){ | |
return $this->setFileCounts( $fileExtension, count( glob( "{$directory}*.{$fileExtension}" ))); | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class DATABASE_CONFIG { | |
public $default = array( | |
'datasource' => 'Database/Mysql', | |
'persistent' => false, | |
'host' => 'localhost', | |
'login' => 'root', | |
'password' => 'XXXXXXXXXX', | |
'database' => 'foundry', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abbas-macbook-pro:Console abba$ ./cake bake Model | |
Welcome to CakePHP v2.0.0-RC2 Console | |
--------------------------------------------------------------- | |
App : app | |
Path: /Users/abba/Sites/foundry/app/ | |
--------------------------------------------------------------- | |
--------------------------------------------------------------- | |
Bake Model | |
Path: /Users/abba/Sites/foundry/app/Model/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class DepartmentBook extends AppModel | |
{ | |
public $name = "DepartmentBook"; | |
public $virtualFields = array( | |
'kl' => 'count(*)', | |
); | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Place this in the same folder as the fpdf.php referenced in the App::import below with the filename report_pdf.php | |
App::import( 'Vendor', 'FPDF', array( | |
'file' => join( DS, array( 'fpdf', 'fpdf.php' )), | |
)); | |
* ReportPdf | |
* an example fpdf extension for Dominik Gajewski re: google groups topic FPFD or PDFLib with Cake | |
* this is where you would implement all the custom functions, ie header, footer, columns. | |
* @author Abba Bryant |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{[ | |
html.docType, | |
html.tag( 'html',[ | |
html.tag( 'head',[ | |
html.charset, | |
html.tag( 'title', title_for_layout|trans ), | |
html.css([ | |
'cake.generic' | |
], null, [ 'media' : 'screen, projection' ]), | |
html.script([ |