twig:
debug: %kernel.debug%
services:
twig.extension.text:
class: Twig_Extensions_Extension_Text
tags:
- { name: twig.extension }
twig.extension.debug:
class: Twig_Extensions_Extension_Debug
From terminal to run these commands. As there are 3 commands to run in order to get Symfony2 to recognize the database as entities.
Step 1: Import database into Bundle and create yaml files. [ --em=dev ] Used to recognize the database to import. In order to do this the database configuration files need to be set up with parameters.yml and config.yml
./app/console doctrine:mapping:import --em=dbname BundleName yml
echo '<pre>';
\Doctrine\Common\Util\Debug::dump($nameofvariable);
echo '</pre>';
exit;
To ignore command:
git update-index --assume-unchanged [path/filename.ext]
To un-ignore command:
git update-index --no-assume-unchanged [path/filename.ext]
<a class="togglebutton" title="Toggle Me">Toggle Me</a>
a.togglebutton {
background: #ccc;
cursor: pointer;
border-top: solid 2px #eaeaea;
border-left: solid 2px #eaeaea;
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
SELECT constraint_name, table_name FROM information_schema.table_constraints WHERE constraint_type = 'FOREIGN KEY' AND table_schema = DATABASE() ORDER BY constraint_name; |
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
.clearfix:before, | |
.clearfix:after { | |
content: ""; | |
display: table; | |
} | |
.clearfix:after { | |
clear: both; | |
} | |
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
echo Propel::getConnection()->getLastExecutedQuery(); |
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
UPDATE wp_options SET option_value = ' a:0:{}' WHERE option_name = 'active_plugins'; |
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
sudo find foldername -type d -exec chmod 775 {} ";" | |
sudo find foldername -type f -exec chmod 664 {} ";" |
OlderNewer