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
$('#booking_end_date_jquery_control').datepicker( | |
'option', | |
'onSelect', | |
function(date) { | |
// keep the original symfony function to update day / month / year select boxes | |
wfd_booking_end_date_update_linked(date); | |
// our own stuff | |
alert('haha'); | |
}); |
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
.routes_for_module_a: | |
design: | |
class: sfDoctrineRouteCollection | |
options: | |
model: Design | |
actions: [show] | |
.routes_for_module_b: | |
... |
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
# You can find more information about this file on the symfony website: | |
# http://www.symfony-project.org/reference/1_4/en/10-Routing | |
<?php foreach(glob(dirname(__FILE__).'/routing/*.yml') as $filename):?> | |
<?php include($filename)?> | |
# Note that this empty line is important. | |
# If not present you have to make all your other | |
# routing files end with an empty line in order to prevent indentation errors | |
<?php endforeach?> |
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
all: | |
... | |
request: | |
param: | |
formats: | |
xlsx: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet |
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
exceltest: | |
url: /a/test.:sf_format | |
param: { module: excel, action: index } |
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
... | |
<Worksheet ss:Name="Sheet1"> | |
<Table> | |
<Row> | |
<Cell><Data ss:Type="String">Name</Data></Cell> | |
<Cell><Data ss:Type="String">Company</Data></Cell> | |
<Cell><Data ss:Type="String">Phone</Data></Cell> | |
<Cell><Data ss:Type="String">Mobile</Data></Cell> | |
<Cell><Data ss:Type="String">Gender</Data></Cell> | |
<Cell><Data ss:Type="String">Duty</Data></Cell> |
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 | |
require_once dirname(__FILE__).'/../lib/vendor/symfony/lib/autoload/sfCoreAutoload.class.php'; | |
sfCoreAutoload::register(); | |
class ProjectConfiguration extends sfProjectConfiguration | |
{ | |
public function setup() | |
{ | |
$this->enablePlugins('sfDoctrinePlugin'); |
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 MyExcel { | |
private static $format = ''; | |
public static function setFormat(sfEvent $event) { | |
self::$format = $event['format']; | |
} | |
public static function setContent(sfEvent $event, $response) { |
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 lastFormId = 1; | |
function getBrandForm(){ | |
$('a.get_ajax_form').click(function(){ | |
// load the form for Brands. Call back to attach js to the form | |
$.get(url, function(data){ | |
$('#brand_form_container').append(data.replace('%my_form_tag%', lastFormId); | |
lastFormId++; | |
}) |
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
.form_fields: | |
form_fields: | |
book: | |
- price | |
- name | |
- print_quality | |
user: | |
- name | |
- city |
OlderNewer