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 MyModelPeer extends BaseMyModelPeer { | |
public static function getStats($id) | |
{ | |
//use $id for something | |
$stats['company1']['product1'] = array('items'=>5, 'price'=>5*10); | |
$stats['company1']['product2'] = array('items'=>9, 'price'=>9*2); |
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 | |
/* | |
* @author Radu Topala <[email protected]> | |
*/ | |
class User | |
{ | |
protected $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
<?php | |
// not opening the popup again after submitting | |
class skillEditAction extends simpleWidgetEditAction | |
{ | |
public function execute($request) | |
{ | |
if ($request->isMethod('post')) { | |
if ($this->processPostData()) { | |
$result = array( |
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 deleteAction extends sfAction | |
{ | |
public function execute($request) | |
{ | |
if ($request->isMethod('post')) { | |
$fhr = MyModelQuery::create()->findPk($this->getRequestParameter('id')); | |
NewerOlder