#CSS
#ajaxLoadOverlay{
background: rgba(0, 0, 0, 0.8) url('../images/ring-alt.svg') no-repeat scroll center center;
display: none;
height: 100%;
position: fixed;
top: 0;
width: 100%;
z-index: 1001;
| // In languages key value for example app_es.php | |
| 'yyyy-mm-dd' => 'dd/mm/yyyy', | |
| 'Y-m-d' => 'd/m/Y', | |
| //In controller: | |
| $date = DateTime::createFromFormat(Yii::t('app', 'Y-m-d') , $this->date); | |
| $this->date = $date->format('Y-m-d'); |
| $(document).on('click', selector-to-your-element , function() { | |
| //code here .... | |
| }); |
| $this->loadmodel('Area'); | |
| $data = $this->Area->find('list'); // OR ALL TO GET ALL ATTRIBUTES | |
| $this->set('areas', $data ); |
| $alertasLlegando = $this->Alerta->find('all', array('conditions' => array( | |
| 'Alerta.lat >= ' => $area['lat1'], | |
| 'Alerta.lat <= ' => $area['lat2'], | |
| 'Alerta.lng <= ' => $area['lng1'], | |
| 'Alerta.lng <= ' => $area['lng2'], | |
| 'Alerta.estado' => 'llegando', | |
| ), | |
| 'limit' => 5, | |
| 'order' => array('Alerta.updated' => 'DESC') | |
| )); |
| $log = $this->Alerta->getDataSource()->getLog(false, false); debug($log); |
| select * from | |
| product P, | |
| (SELECT idProduct as prodStock, max(unitPrice) as maxPrice from buy B where stockAvailable>0 GROUP BY idProduct) L | |
| WHERE | |
| P.idProduct=prodStock | |
| AND | |
| P.unitSellingPrice<=maxPrice | |
| ; |
| $(document).on('submit', '#contact' , function(event) { | |
| url = $(this).attr("action"); | |
| console.log(url); | |
| $.ajax({ | |
| type: "POST", | |
| url: url, | |
| datatype: "json", | |
| data: { | |
| "name": $("#contact #name").val(), |
| Para que el comportamiento de búsqueda sea el mismo de siempre: | |
| gsettings set org.gnome.nautilus.preferences enable-interactive-search true |
#CSS
#ajaxLoadOverlay{
background: rgba(0, 0, 0, 0.8) url('../images/ring-alt.svg') no-repeat scroll center center;
display: none;
height: 100%;
position: fixed;
top: 0;
width: 100%;
z-index: 1001;
| # BEGIN WordPress | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteBase / | |
| RewriteCond %{REQUEST_URI} !/wp-admin | |
| RewriteCond %{REQUEST_URI} !/wp-includes | |
| RewriteCond %{REQUEST_URI} !/wp-login\.php$ | |
| RewriteCond %{REQUEST_URI} !/wp-content | |
| RewriteCond %{REQUEST_URI} !/feed |