Skip to content

Instantly share code, notes, and snippets.

View gist:650983
EditSuccess.php
<?php
include_partial('form', array('ordinativi_order' => $order, 'form'=>$form, 'configuration'=>$configuration, 'helper'=>$helper ))
var_dump($helper);
/*
restituisce
object(orderGeneratorHelper)#221 (0) {
}
*/
?>
View actions.class.php
<?php
/**
* orderitem actions.
*
* @package ordinativi
* @subpackage orderitem
* @author KEY5
* @version SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
*/
View OrdinativiOrderItemFoodForm.class.php
<?php
class OrdinativiOrderItemFoodForm extends OrdinativiOrderItemForm
{
public function configure()
{
$this->removeFields();
//$this->widgetSchema['item'] = new sfWidgetFormInputHidden();
View gist:611328
# You can find more information about this file on the symfony website:
# http://www.symfony-project.org/reference/1_4/en/10-Routing
ordinativi_order:
class: sfDoctrineRouteCollection
options:
model: OrdinativiOrder
module: order
View gist:611325
>> app Current routes for application "frontend"
Name Method Pattern
sf_guard_signout ANY /logout
sf_guard_signin ANY /login
homepage ANY /
ordinativi_order GET /order.:sf_format
ordinativi_order_new GET /order/new.:sf_format
ordinativi_order_create POST /order.:sf_format
ordinativi_order_edit GET /order/:id/edit.:sf_format
ordinativi_order_update PUT /order/:id.:sf_format
View gist:611324
# You can find more information about this file on the symfony website:
# http://www.symfony-project.org/reference/1_4/en/04-Settings
prod:
.settings:
no_script_name: false
logging_enabled: true
error_reporting: <?php echo (E_ALL | E_STRICT)."\n" ?>
level: debug
active: on
View gist:582840
<?php
// ...
protected function processForm(sfWebRequest $request, sfForm $form)
{
$form->bind(
$request->getParameter($form->getName()),
$request->getFiles($form->getName())
View gist:580852
<?php
// nella form class
class OrdinativiMenuFoodForm extends BaseOrdinativiMenuItemDayForm
{
public function configure()
{
$this->removeFields();
View app_routes_backend.txt
>> app Current routes for application "backend"
Name Method Pattern
sf_guard_permission_filter POST /guard/permissions/filter.:sf_format
sf_guard_permission_batch POST /guard/permissions/batch.:sf_format
sf_guard_permission GET /guard/permissions.:sf_format
sf_guard_permission_new GET /guard/permissions/new.:sf_format
sf_guard_permission_create POST /guard/permissions.:sf_format
sf_guard_permission_edit GET /guard/permissions/:id/edit.:sf_format
sf_guard_permission_update PUT /guard/permissions/:id.:sf_format
sf_guard_permission_delete DELETE /guard/permissions/:id.:sf_format
View EditPietanzeSuccess.php
<?php echo form_tag_for($form, '@menu_item_day') ?>
<table id="job_form">
<tfoot>
<tr>
<td colspan="2">
<input type="submit" value="Applica" />
</td>
</tr>
</tfoot>
<tbody>