- Define the scope of variables
- Define the structure of a Java class
- Create executable Java applications with a main method
- Import other Java packages to make them accessible in your code
- Declare and initialize variables
<!-- clips for insert a twitter bootstrap html --> | |
<li> | |
<a href="#" class="redactor_clip_link">Template 2 columns</a> | |
<div class="redactor_clip" style="display: none;"> | |
<div class="row"> | |
<div class="span4"> | |
<h2>Column 1</h2> | |
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Consequuntur, ab, at, sunt tempora quae eligendi qui distinctio nam optio aut eum provident magni architecto enim blanditiis. Commodi, adipisci libero doloremque voluptatibus ab molestiae expedita veniam in cumque aspernatur quaerat officia dolor esse nobis recusandae fugiat ratione temporibus voluptas quis unde.</p> | |
</div> |
#!/bin/bash | |
if [ -f /etc/init.d/hhvm ] | |
then | |
/etc/init.d/hhvm start | |
fi | |
#!/bin/bash | |
apache_check_installed() { |
<?php | |
class AdminController extends AppController { | |
// .. outras actions aqui | |
public function admin_upload_image() { | |
$this->layout = 'admin_index'; |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^(.*)$ index.php?folder=$1 [L,QSA] | |
</IfModule> |
<?php | |
Route::get('/', function() | |
{ | |
return 'Olá mundo'; | |
}); |
<?php | |
class EscPos { | |
// Prepare c_EscPos Object | |
// ====================== | |
/* Printer Driver Settings */ | |
var $os; // operating system | |
var $printer; // printer name or port | |
var $output; // output mode |
<?php | |
class EscPos { | |
// Prepare c_EscPos Object | |
// ====================== | |
/* Printer Driver Settings */ | |
var $os; // operating system | |
var $printer; // printer name or port | |
var $output; // output mode |
diff --git a/app/Config/bootstrap.php b/app/Config/bootstrap.php | |
index 3fc6685..1966994 100644 | |
--- a/app/Config/bootstrap.php | |
+++ b/app/Config/bootstrap.php | |
@@ -28,14 +28,10 @@ require_once APP . 'Vendor' . DS . 'autoload.php'; | |
// Setup a 'default' cache configuration for use in the application. | |
Cache::config('default', array('engine' => 'File')); | |
-// CakeLog::config('otherFile', array( | |
-// 'engine' => 'DatabaseLogger', |