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 | |
App::import('Model', 'CakeSchema'); | |
App::import('Model', 'ConnectionManager'); | |
include_once(APP.'plugins'.DS.'pluginname'.DS.'config'.DS.'schema'.DS.'schema.php'); | |
$db = ConnectionManager::getDataSource('default'); | |
//Get all available tables | |
$tables = $db->listSources(); | |
$CakeSchema = new CakeSchema(); |
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
git diff-tree -r --no-commit-id --name-only --diff-filter=ACMRT HEAD~1 HEAD | xargs tar -rf ~/exports/export.tar |
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 | |
/** | |
* MultivalidatableBehabior for CakePHP2 | |
* | |
* @uses ModelBehavior | |
* @author Dardo Sordi> | |
* @link http://bakery.cakephp.org/articles/dardosordi/2008/07/29/multivalidatablebehavior-using-many-validation-rulesets-per-model | |
*/ | |
class MultivalidatableBehavior extends ModelBehavior | |
{ |
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
# Test URI | |
# Ignore netbeans folder | |
nbproject/* | |
# Ignore private folder | |
/app/private/* | |
!/app/private/empty | |
# Ignore packed asset files | |
/app/webroot/css/packed/* |
NewerOlder