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
<!-- Source: https://stackoverflow.com/q/4907843/2854878 --> | |
<li class="dropdown custom" id="header-dd-notification"> | |
<a href="javascript:void(0);" onclick="window.open('https://amazonaws.com/static/manual-usuario/MANUAL.pdf', '_blank')" | |
title="Manual do Usuário" | |
class="dropdown-toggle" target="_blank" data-toggle="dropdown"> | |
<span class="meta"> | |
<span class="icon"><i class="ico-book"></i></span> Manual do Usuário | |
</span> | |
</a> | |
</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
<?php | |
$session = new Zend_Session_Namespace("importar"); | |
$data = $session->getIterator(); | |
Zend_Debug::dump($data);die; |
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 | |
array_multisort(array_column($prioridades, 'total'), SORT_DESC, $prioridades); | |
// Before | |
array(5) { | |
[0] => array(3) { | |
["tipo"] => string(15) "Prioridade Alta" | |
["prioridade"] => string(1) "1" | |
["total"] => string(1) "1" |
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
$('#termos').on('click', function (event) { | |
var date = new Date(), | |
y = date.getFullYear(), | |
m = ("0" + (date.getMonth() + 1)).slice(-2), | |
d = ("0" + date.getDate()).slice(-2), | |
h = ("0" + date.getHours()).slice(-2), | |
i = ("0" + date.getMinutes()).slice(-2), | |
s = ("0" + date.getSeconds()).slice(-2), | |
dt = y + '-' + m + '-' + d, | |
hr = h + ':' + i + ':' + s; |
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 | |
// See more: https://stackoverflow.com/a/6263810/2854878 | |
// Configure Cache in Bootstrap.php | |
public function _initCache () { | |
$cache = Zend_Cache::factory( | |
'Core', | |
'File', | |
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
/** | |
* No seu layout principal, inclua a linha @yield('pagescript') | |
* | |
* No arquivo blade da View que precisa do javascript, inclua uma @section que carregue | |
* o javascript necessário para essa visualização. | |
* As exibições que não tiverem uma seção 'pagescript' não exibirão erros. | |
*/ | |
// No layout principal | |
@yield('pagescript') |
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 Cms_View_Helper_Myhelper extends Zend_View_Helper_Abstract | |
{ | |
public function myhelper() | |
{ | |
// Busca a política de privacidade e contratos | |
$model = new Admin_Model_Produtos(); | |
$select = $model->select() | |
->from('produtos') |
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 | |
// https://stackoverflow.com/a/1537911 | |
class Cms_Controller_Plugin_Myplugin extends Zend_Controller_Plugin_Abstract | |
{ | |
public function preDispatch(Zend_Controller_Request_Abstract $request) | |
{ | |
$layout = Zend_Layout::getMvcInstance(); | |
$view = $layout->getView(); |
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
http://listaiptvbrasilhd.com.br/lista.m3u |
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
// Method 1: | |
{$var|@var_dump} | |
// Method 2: | |
{php} | |
$var = | |
$this->get_template_vars('var'); | |
var_dump($var); | |
{/php} |