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 | |
namespace Acme\DemoBundle\Tests\Controller; | |
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; | |
class DefaultControllerTest extends WebTestCase | |
{ | |
public function testLoginOK() | |
{ |
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 | |
namespace Acme\DemoBundle\Form\Type; | |
use Symfony\Component\Form\AbstractType; | |
use Symfony\Component\Form\FormBuilderInterface; | |
use Symfony\Component\OptionsResolver\OptionsResolverInterface; | |
use Symfony\Component\Validator\Constraints; | |
class ContactType extends AbstractType |
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 | |
/** | |
* healthstate actions. | |
* | |
* @package ordinativi | |
* @subpackage healthstate | |
* @author KEY5 | |
* @version SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $ |
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 frontendConfiguration extends sfApplicationConfiguration | |
{ | |
protected $requestFormat = null; | |
public function configure() | |
{ | |
$this->dispatcher->connect('request.filter_parameters', array($this, 'filterRequestParameters')); |
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 itemActions extends sfActions | |
{ | |
/** | |
* @param sfRequest $request | |
*/ | |
public function executeIndex(sfWebRequest $request) | |
{ | |
$this->form = new ItemForm(); |
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
Item: | |
columns: | |
name: { type: string(255), notnull: true } | |
address: { type: string(255), notnull: true } | |
city: { type: string(255), notnull: true } | |
latitude: { type: decimal, scale: 6, size: 10, notnull: true } | |
longitude: { type: decimal, scale: 6, size: 10, notnull: true } |
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
classes: | |
Item: | |
columns: | |
id: ~ | |
name: { type: varchar, required: true } | |
address: { type: varchar, required: true } | |
city: { type: varchar, required: true } | |
latitude: { type: decimal, scale: 6, size: 10, required: true } | |
longitude: { type: decimal, scale: 6, size: 10, required: true } |
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 | |
// lib/model/doctrine/ItemTable.php | |
class ItemTable extends Doctrine_Table | |
{ | |
/** | |
* @param array $values | |
* @param integer $limit | |
* @return Doctrine_Collection |
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 | |
// lib/model/ItemQuery.php | |
class ItemQuery extends BaseItemQuery | |
{ | |
/** | |
* @param array $values | |
* @param integer $limit | |
* @return PropelCollection |
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
/** | |
* @Route("/search/prova") | |
* @Template() | |
* @return array | |
*/ | |
public function provaAction() | |
{ | |
$form = $this->createFormBuilder() | |
->add('type', 'choice', array('required' => false, 'choices' => array( | |
'' => '', |
OlderNewer