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
| ## Base sample: https://gist.github.com/cristianoc72/9060420 | |
| propel: | |
| general: | |
| project: Etude | |
| version: 0.1-dev | |
| paths: | |
| # Default value is current path # |
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
| APP.controller('PresetFieldsController', function ($scope, $location, Rest, $routeParams, Messenger, Page, $timeout) { | |
| // Getting Preset & Fields | |
| Rest.one('presets', $routeParams.id).get().then(function(preset) { | |
| if (!preset.id) { | |
| $location.path('/presets'); | |
| Messenger.error('Пресет не найден'); | |
| return; | |
| } | |
| $scope.preset = preset; |
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
| com.intellij.webcore.template.formatter.AbstractTemplateLanguageFormattingModelBuilder.createTemplateLanguageBlock(Lcom/intellij/lang/ASTNode;Lcom/intellij/psi/codeStyle/CodeStyleSettings;Lcom/intellij/psi/formatter/xml/XmlFormattingPolicy;Lcom/intellij/formatting/Indent;Lcom/intellij/formatting/Alignment;Lcom/intellij/formatting/Wrap;)Lcom/intellij/formatting/Block;: com.intellij.webcore.template.formatter.AbstractTemplateLanguageFormattingModelBuilder.createTemplateLanguageBlock(Lcom/intellij/lang/ASTNode;Lcom/intellij/psi/codeStyle/CodeStyleSettings;Lcom/intellij/psi/formatter/xml/XmlFormattingPolicy;Lcom/intellij/formatting/Indent;Lcom/intellij/formatting/Alignment;Lcom/intellij/formatting/Wrap;)Lcom/intellij/formatting/Block; | |
| java.lang.AbstractMethodError: com.intellij.webcore.template.formatter.AbstractTemplateLanguageFormattingModelBuilder.createTemplateLanguageBlock(Lcom/intellij/lang/ASTNode;Lcom/intellij/psi/codeStyle/CodeStyleSettings;Lcom/intellij/psi/formatter/xml/XmlFormattingPolicy;Lcom/intelli |
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
| ###### composer.json ###### | |
| ... | |
| "autoload": { | |
| "classmap": [ | |
| ... | |
| "app/facades", | |
| "app/providers", | |
| ... | |
| ] | |
| }, |
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 | |
| header("Content-type: text/plain"); | |
| function getLinesFromFile($file_path) { | |
| // На каждой итерации выполняется код до первого yield | |
| if ( ! $fh = fopen($file_path, 'r')) { | |
| return; | |
| } |
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 | |
| /** @var Block $block */ | |
| $block = BlockQuery::create()->findOneById(1); | |
| $gadget_block1 = $block->getGadgetBlocks()->getFirst(); | |
| $gadget_block2 = $block->getGadgetBlocksJoinGadget()->getFirst(); | |
| echo $gadget_block1->getGadget()->getTitle() . "<br>"; // есть заголовок гаджета | |
| echo $gadget_block2->getGadget()->getTitle() . "<br>"; // пустая строка |
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
| <!-- Template: layout.php --> | |
| <!-- include require.js and maim.js --> | |
| ... | |
| <?php include "first.php" ?> | |
| <?php | |
| if ($_GET['condition']) { // some condition | |
| include "second.php"; | |
| } else { | |
| include "third.php"; | |
| } |
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
| ~/www/stepcart/master$ php app/console propel:model:build --verbose | |
| Buildfile: /home/stas/www/stepcart/master/vendor/propel/propel1/generator/build.xml | |
| Override ignored for user property phing.file | |
| parsing buildfile build.xml | |
| Project base dir set to: /home/stas/www/stepcart/master/vendor/propel/propel1/generator | |
| Property ${project.dir} => /home/stas/www/stepcart/master/app/cache/dev/propel | |
| Property ${application.startdir} => /home/stas/www/stepcart/master | |
| [resolvepath] Resolved /home/stas/www/stepcart/master/app/cache/dev/propel to /home/stas/www/stepcart/master/app/cache/dev/propel | |
| Build sequence for target 'om' is: check-project-or-dir-set check-project-set set-project-dir check-buildprops-exists check-buildprops-for-propel-gen check-buildprops configure om | |
| Complete build sequence is: check-project-or-dir-set check-project-set set-project-dir check-buildprops-exists check-buildprops-for-propel-gen check-buildprops configure om main convert-conf create-db reverse datadump datasql insert-sql new-om sql sql-d |
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
| Example Structure Application | |
| ============================= | |
| <!-- file: index.php --> | |
| <html> | |
| <head> | |
| <script data-main="main" src="require.js"></script> | |
| </head> | |
| <body> | |
| <?php | |
| if (USER::isAuthenticate()) { |
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
| $builder->add('addresses', 'collection', array( | |
| 'type' => new AddressType(), | |
| 'allow_delete' => false, | |
| 'by_reference' => false | |
| )); | |
| $builder->add('billing_address', new AddressType(), array( | |
| 'address' => $this->getBillingAddress($user, $session) | |
| )); |