- Autor: Patrick Maciel
- Site: http://www.patrickmaciel.com
- E-mail: [email protected] (skype/msn/qualquer outro messenger)
- Twitter: @p4dev
- Google+: http://plus.google.com/+PatrickMacielCampos
- Facebook: ...
This file contains hidden or 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
Prefix Verb URI Pattern Controller#Action | |
root GET / articles#index | |
article_comments GET /articles/:article_id/comments(.:format) comments#index | |
POST /articles/:article_id/comments(.:format) comments#create | |
new_article_comment GET /articles/:article_id/comments/new(.:format) comments#new | |
edit_article_comment GET /articles/:article_id/comments/:id/edit(.:format) comments#edit | |
article_comment GET /articles/:article_id/comments/:id(.:format) comments#show | |
PATCH /articles/:article_id/comments/:id(.:format) comments#update | |
PUT /articles/:article_id/comments/:id(.:format) comments#update | |
DELETE /articles/:article_id/comments/:id(.:format) comments#destroy |
This file contains hidden or 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
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', |
This file contains hidden or 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 EscPos { | |
// Prepare c_EscPos Object | |
// ====================== | |
/* Printer Driver Settings */ | |
var $os; // operating system | |
var $printer; // printer name or port | |
var $output; // output mode |
This file contains hidden or 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 EscPos { | |
// Prepare c_EscPos Object | |
// ====================== | |
/* Printer Driver Settings */ | |
var $os; // operating system | |
var $printer; // printer name or port | |
var $output; // output mode |
This file contains hidden or 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 | |
Route::get('/', function() | |
{ | |
return 'Olá mundo'; | |
}); |
This file contains hidden or 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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^(.*)$ index.php?folder=$1 [L,QSA] | |
</IfModule> |
This file contains hidden or 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 AdminController extends AppController { | |
// .. outras actions aqui | |
public function admin_upload_image() { | |
$this->layout = 'admin_index'; |
This file contains hidden or 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
#!/bin/bash | |
if [ -f /etc/init.d/hhvm ] | |
then | |
/etc/init.d/hhvm start | |
fi | |
#!/bin/bash | |
apache_check_installed() { |