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
{ | |
// Plugin settings | |
// Turn the debug output on/off | |
"show_debug": true, | |
// Which file types (file extensions), do you want the plugin to | |
// execute for | |
"extensions_to_execute": ["php", "ctp"], |
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
// API | |
server { | |
listen 80; | |
root /home/nozzle/htdocs/webroot; | |
index index.php; | |
server_name api.nozzle.io; | |
location / { |
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
/** | |
* /profiles/1 : works | |
* /workspaces/1/profiles/1 : does not work | |
* | |
*/ | |
Router::connect( | |
'/workspaces/:workspaceId/profiles/:id', [ | |
'method' => 'GET', | |
'controller' => 'profiles', |
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
// My Listener Class | |
App::uses('CrudListener', 'Crud.Controller/Crud'); | |
class PermissionListener extends CrudListener { | |
public function beforeRender(CakeEvent $event) { | |
print_r("yeah");die; | |
} |
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
Router::connect( | |
'/workspaces/:workspace_id/profiles', | |
[ | |
'method' => 'GET', | |
'controller' => 'workspace_profiles', | |
'action' => 'profiles' | |
]); | |
Router::mapResources(['workspaces', 'profiles']); | |
Router::setExtensions(array('json', 'xml')); |
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 | |
// This file adds the Home template to the Ackermania Theme. | |
// Template Name: Home | |
//Remove the site inner wrap using Genesis Structural Wraps | |
add_theme_support( 'genesis-structural-wraps', array( 'header', 'nav', 'subnav', 'footer-widgets', 'footer' ) ); | |
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' ); |
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
server { | |
listen 80; | |
root /home/nozzle/htdocs/webroot; | |
index index.php index.html index.htm; | |
server_name local.nozzle.io; | |
location / { | |
if ($request_method = OPTIONS ) { | |
add_header 'Access-Control-Allow-Origin' *; |
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
[2014-01-07T01:32:36+00:00] INFO: execute[switch-db] ran successfully | |
[2014-01-07T01:32:36+00:00] INFO: execute[grant-permissions] ran successfully | |
[2014-01-07T01:32:37+00:00] INFO: execute[grant-permissions] ran successfully | |
[2014-01-07T01:32:37+00:00] INFO: cookbook_file[/var/chef/cache/nozzleapp.sql] created file /var/chef/cache/nozzleapp.sql | |
================================================================================ | |
Error executing action `create` on resource 'cookbook_file[/var/chef/cache/nozzleapp.sql]' | |
================================================================================ | |
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 | |
// This file adds the Home template to the Ackermania Theme. | |
// Template Name: Home | |
//Remove the site inner wrap using Genesis Structural Wraps | |
add_theme_support( 'genesis-structural-wraps', array( 'header', 'nav', 'subnav', 'footer-widgets', 'footer' ) ); | |
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' ); |
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 | |
//* Start the engine | |
require_once( get_template_directory() . '/lib/init.php' ); | |
//* Add HTML5 markup structure | |
add_theme_support( 'html5' ); | |
// Deregisters local jQuery and loads Google CDN version | |
add_action('wp_enqueue_scripts', 'seo_scripts'); |