This file contains hidden or 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 SortAlgorithm { | |
protected $_data; | |
public function setData($data) { | |
$this->_data = $data; | |
} | |
public function getData() { | |
return $this->_data; |
This file contains hidden or 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 userActions extends sfActions | |
{ | |
public function executeCheckUsername(sfWebRequest $request) | |
{ | |
$username = $request->getParameter('username'); | |
$availability = (bool) Doctrine_Core::getTable('User')->checkUsername($username); | |
return $this->renderText(json_encode($availability); |