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 if ($sf_user->hasFlash('notice')): ?> | |
<div class="flash_notice"> | |
<?php echo __($sf_user->getFlash('notice')) ?> | |
</div> | |
<?php endif; ?> |
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
odino@odino:/var/www/Symfony2/hello$ phpunit | |
PHPUnit 3.5.0RC2 by Sebastian Bergmann. | |
E | |
Time: 1 second, Memory: 4.25Mb | |
There was 1 error: | |
1) Application\HelloBundle\Tests\Controller\HelloControllerTest::testIndex |
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 | |
// inside a controller | |
// using POST | |
$object = new Object(); | |
$object->fromArray($request->getPostParameters()); | |
// using PUT |
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 myActions extends sfcAtions | |
{ | |
public function executeForm(sfWebRequest$request | |
{ | |
$this->form = new myForm(array(), array('myGet' => $request->getParameter('myGet'))); | |
} | |
} |
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 myForm extends BaseForm | |
{ | |
public function configure() | |
{ | |
parent::configure(); | |
$myGet = $this->getOption('myGet'); | |
} |
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
Array | |
( | |
[------------------------------87911417a8d7 | |
Content-Disposition:_form-data;_name] => "name" | |
alexandre | |
------------------------------87911417a8d7-- | |
) |
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
class sfGuardUser extends PluginsfGuardUser | |
{ | |
public function save(Doctrine_Connection $conn = null) | |
{ | |
if (get_class($this) != 'sfGuardUser') | |
{ | |
$name = $this->native_group; | |
$native_group = $this->getNativeGroup($name); | |
$this->link('Groups', $native_group->id); | |
} |
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
<ul> | |
<li>Titolo</li> | |
<li>21 Ottobre 1900</li> | |
<li>Una descrizione del nostro prodotto più fico...</li> | |
</ul> | |
<ul> | |
<li>21 Ottobre 1900</li> |
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
<tbody id="fileList"> | |
<?php | |
$count = 1; | |
$css = ""; | |
//list all documents (files and folders) under this current folder, | |
//<?php echo appendQueryString(appendQueryString(CONFIG_URL_FILEnIMAGE_MANAGER, "path=" . $file['path']), makeQueryString(array('path'))); | |
foreach($fileList as $file) | |
{ | |
$css = ($css == "" || $css == "even"?"odd":"even"); | |
$strDisabled = ($file['is_writable']?"":" disabled"); |
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 | |
<?php | |
/** | |
* ENTRE_DESCRIPION | |
* | |
* @package ENTRE_PROJECT_NAME | |
* @subpackage ENTER_SUBPACKAGE | |
* @author Name Surname <email> |