Skip to content

Instantly share code, notes, and snippets.

<?php
echo image_tag(url_for('sf_image', array('format' => 'small', 'sf_subject' => $article)));
// resulting in: http://localhost/thumbnails/Article/small/03/00/00/your-article-slug-3.jpg
?>
Person:
columns:
name: string(25)
car_id: integer
relations:
Car:
foreignAlias: Drivers
Car:
columns:
<?php
/**
* Person form.
*
* @package widget
* @subpackage form
* @author Christian Schaefer <[email protected]>
* @version SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
*/
Article:
columns:
title: string(255)
image: string(36)
body: string(255)
Glossary:
columns:
title: string(255)
image: string(36)
body: string(255)
GlossaryItem:
columns:
term: string(255)
description: string(255)
@caefer
caefer / app.yml
Created September 26, 2010 11:27
all:
gjPositionsPlugin:
partials:
top_teaser: teaser/top
medium_teaser: teaser/medium
small_teaser: teaser/small
two_column_teaser: teaser/twoColumn
slideshow: [slideshow,show]
accepted_contents:
top_teaser: [Gallery,Article,Glossary]
Page:
columns:
title: string(255)
layoutName: string(24)
DesignElement:
columns:
name: string(24)
position: integer
page_id: integer
relations:
Page:
foreignAlias: DesignElements
ContentElement:
actAs:
Doctrine_Template_LooselyCoupleable: ~
columns:
position: integer
design_element_id: integer
relations:
DesignElement:
foreignAlias: Contents