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 Deployer; | |
use Exception; | |
require 'recipe/common.php'; | |
// Project name | |
set('application', '<application>'); |
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
var XWiki=(function(c){var a=c.editors=c.editors||{};a.AutoSave=Class.create({options:{enabled:false,frequency:5,... |
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
editors.AutoSave = Class.create({ | |
options : { | |
/** Is the autosave enabled ? */ | |
enabled: false, | |
/** If enabled, how frequent are the savings */ | |
frequency: 5, // minutes | |
... |
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
... | |
try { | |
foreach ($this->uri->segments as $segment) { | |
if (preg_match('/_controller$/', $segment)) { | |
show_404(); | |
} | |
} | |
parent::_parse_routes(); | |
} finally { | |
... |
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 MY_Router extends CI_Router { | |
protected function _parse_routes() | |
{ | |
if (isset($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['_method'])) { | |
$old_server_method = $_SERVER['REQUEST_METHOD']; | |
$_SERVER['REQUEST_METHOD'] = strtoupper($_POST['_method']); | |
} | |
try { |
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
<input type="hidden" name="_method" value="delete"> | |
<input type="hidden" name="_method" value="put"> |
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
$route['items']['get'] = 'items/index'; | |
$route['items/(:num)']['get'] = 'items/show/$1'; | |
$route['items/new']['get'] = 'items/new_item'; | |
$route['items']['post'] = 'items/create'; | |
$route['items/(:num)/edit']['get'] = 'items/edit/$1'; | |
$route['items/(:num)']['put'] = 'items/update/$1'; | |
$route['items/(:num)']['delete'] = 'items/delete/$1'; |
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
public function index() | |
{ | |
} | |
public function show($id) | |
{ | |
} | |
public function new_item() | |
{ |
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
<Directory "/Users/bjoerne/Source/codeigniter-routing"> | |
Options FollowSymLinks Multiviews Indexes | |
MultiviewsMatch Any | |
AllowOverride All | |
Require all granted | |
</Directory> |
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
<VirtualHost *:80> | |
DocumentRoot /Users/bjoerne/Source/codeigniter-routing/public | |
ServerName codeigniter-routing.bjoerne.local | |
</VirtualHost> |
NewerOlder