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 User_IndexController extends Core_Controller_Action_Standard | |
{ | |
public function indexAction() | |
{ | |
} | |
public function homeAction() |
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 User_Bootstrap extends Engine_Application_Bootstrap_Abstract | |
{ | |
public function __construct($application) | |
{ | |
parent::__construct($application); | |
// Add view helper and action helper paths | |
$this->initViewHelperPath(); |
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 Engine_Application | |
{ | |
// Properties | |
/** | |
* The environment. Used to flag certain debug features on or off. | |
* | |
* @var string |
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
<form method="post" action="upload.php" enctype="multipart/form-data"> | |
<input name='uploads[]' type="file" multiple> | |
<input type="submit" value="Send"> | |
</form> | |
<?php | |
/*upload*/ | |
foreach ($_FILES['uploads']['name'] as $filename) { | |
echo '<li>' . $filename . '</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
<!DOCTYPE HTML> | |
<html lang="en-US"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Easy JavaScript Testing </title> | |
<style> | |
.pass:before { | |
content: 'PASS: '; | |
color: blue; | |
font-weight: bold; |
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 | |
echo $this->Html->script('yepnope.js'); | |
?> | |
<script type="text/javascript"> | |
var baseUrl = '<?php echo Router::url('/', true) ?>'; | |
yepnope({ | |
load: '//ajax.googleapis.com/ajax/libs/jquery/1.7/jquerywww.min.js', | |
callback: function (url, result, key) { |
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 ProfileController extends AppController{ | |
public $name = 'Profile'; | |
public $ext; | |
var $components = array('RequestHandler'); | |
public function index(){ | |
// $posts = $this->Profile->find('all'); |
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 | |
Inflector::rules('singular', array('rules' => array('/(.*)ns$/i' => '\1m','/(.*)res$/i' => '\1r'), 'irregular' => array(), 'uninflected' => array())); | |
Inflector::rules('plural', array('rules' => array('/(.*)m$/i' => '\1ns','/(.*)r$/i' => '\1res'), 'irregular' => array(), 'uninflected' => 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
input:required:invalid, input:focus:invalid { | |
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAeVJREFUeNqkU01oE1EQ/mazSTdRmqSxLVSJVKU9RYoHD8WfHr16kh5EFA8eSy6hXrwUPBSKZ6E9V1CU4tGf0DZWDEQrGkhprRDbCvlpavan3ezu+LLSUnADLZnHwHvzmJlvvpkhZkY7IqFNaTuAfPhhP/8Uo87SGSaDsP27hgYM/lUpy6lHdqsAtM+BPfvqKp3ufYKwcgmWCug6oKmrrG3PoaqngWjdd/922hOBs5C/jJA6x7AiUt8VYVUAVQXXShfIqCYRMZO8/N1N+B8H1sOUwivpSUSVCJ2MAjtVwBAIdv+AQkHQqbOgc+fBvorjyQENDcch16/BtkQdAlC4E6jrYHGgGU18Io3gmhzJuwub6/fQJYNi/YBpCifhbDaAPXFvCBVxXbvfbNGFeN8DkjogWAd8DljV3KRutcEAeHMN/HXZ4p9bhncJHCyhNx52R0Kv/XNuQvYBnM+CP7xddXL5KaJw0TMAF8qjnMvegeK/SLHubhpKDKIrJDlvXoMX3y9xcSMZyBQ+tpyk5hzsa2Ns7LGdfWdbL6fZvHn92d7dgROH/730YBLtiZmEdGPkFnhX4kxmjVe2xgPfCtrRd6GHRtEh9zsL8xVe+pwSzj+OtwvletZZ/wLeKD71L+ZeHHWZ/gowABkp7AwwnEjFAAAAAElFTkSuQmCC'); | |
background-position: right top; | |
background-repeat: no-repeat; | |
-moz-box-shadow: none; | |
} | |
input:required:valid { | |
background-image: url('data:image/png |
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
var dates = $( "#data_inicial, #data_final" ).datepicker({ | |
dateFormat: 'dd/mm/yy', | |
defaultDate: "+1w", | |
changeMonth: true, | |
onSelect: function( selectedDate ) { | |
var option = this.id == "data_inicial" ? "minDate" : "maxDate", | |
instance = $( this ).data( "datepicker" ), | |
date = $.datepicker.parseDate( | |
instance.settings.dateFormat || | |
$.datepicker._defaults.dateFormat, |
OlderNewer