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
array( | |
foo__id => 1, | |
foo__title => "foo", | |
bar__id => 2, | |
bar__test => "aha" | |
) |
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
// ControllerAction | |
public function createControlsTheWorlddActivityAction($id) | |
{ | |
$subject = $this->actionManager->findOrCreateComponent('Acme\Entity\Page', $id); | |
$action = $this->actionManager->create($subject, 'controls', array('directComplement' => 'the world')); | |
$this->actionManager->updateAction($action); | |
$activities = $this->actionManager->getSubjectActions($subject); |
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
$location = 'http://footballpool.dataaccess.eu/data/info.wso'; | |
$uri = 'http://footballpool.dataaccess.eu'; | |
$options = array( | |
'location' => $location, | |
'uri' => $uri | |
); | |
try { | |
$client = new SoapClient(null, $options); | |
print( | |
$client->__soapCall('TopGoalScorers', array('iTopn' => 5)) |
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
HTML: | |
<a class="foobar" href="http://somewebsite.com" target="_blank"></a> | |
CSS: | |
a.foobar { | |
display: block; | |
width: give-it-some-width | |
height: give-it-some-height | |
background: url("path/to/image") no-repeat; | |
} |
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
<div class="da-slide"> | |
<h2>Heading</h2> | |
<p>Lorem ipsum foobar...</p> | |
<!-- Image-Wrapper: | |
- Create a container with class 'gallery' | |
- Put your gallery-imgs inside ;) ... --> | |
<div class="gallery"> | |
<!-- a.da-link triggers lightbox-gallery... --> | |
<a href="path/to/img-1.jpg" class="da-link lightbox"></a> | |
<a href="path/to/img-2.jpg"></a> |
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
################## MARKUP HTML LAYOUT ################### | |
<body> | |
<div id="site" class="container"> | |
<div id="layout-full"> | |
<div id="page-container" class="container"></div> | |
</div> | |
<div id="layout-2-col" class="row"> | |
<div id="sidebar-2-col" class="span6"></div> | |
<div id="content-2-col" class="span12"></div> | |
</div> |
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
PageView = Backbone.View.extend({ | |
initialize: function(){ | |
// If model has changed, update view accordingly: | |
this.model.bind("change", this.render, this); | |
}, | |
render: function(evt){console.warn('called: view::render'); | |
/* | |
* Normally we maybe would/could do something like this, but | |
* how can we update the View if we have initialized it with | |
* an already rendered markup instead of a template? |
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
## BEGIN: Template (rendered on serverside) ### | |
<div id="wrap_page_view"> | |
<h1>Title</h1> | |
<p> | |
Description: lorem foobar... | |
</p> | |
</div> | |
<script type="text/javascript"> |
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
<div id="field_container_s4fda1a9360862_partners"> | |
<span id="field_widget_s4fda1a9360862_partners" > | |
</span> | |
<span id="field_actions_s4fda1a9360862_partners" > | |
<a | |
href="/app_dev.php/admin/dubture/plansinn/projecthaspartner/create?uniqid=s4fda1ac37ce8f&code=sonata.admin.projecthaspartner&pcode=sonata.admin.project&puniqid=s4fda1a9360862" | |
onclick="return start_field_retrieve_s4fda1a9360862_partners(this);" |
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
sonata_media: | |
db_driver: doctrine_orm | |
default_context: default | |
contexts: | |
default: # the default context is mandatory | |
providers: | |
- sonata.media.provider.file | |
formats: | |
small: { width: 100 , quality: 100} | |
NewerOlder