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
/** | |
* number_format(number, decimals, decPoint, thousandsSep) in JavaScript, known from PHP. | |
* It formats a number to a string with grouped thousands, with custom seperator and custom decimal point | |
* @param {number} number - number to format | |
* @param {number} [decimals=0] - (optional) count of decimals to show | |
* @param {string} [decPoint=.] - (optional) decimal point | |
* @param {string} [thousandsSep=,] - (optional) thousands seperator | |
* @author Felix Leupold <felix@xiel.de> | |
*/ | |
function number_format(number, decimals, decPoint, thousandsSep) { |
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
{# | |
time can be any string acceptable by http://www.php.net/strtotime, the | |
template will output that time's month. | |
If you don't want to pass in a date you can set time like this: | |
{% set time = "now"|date("U") %} | |
{% set time = "December 2012"|date("U") %} | |
How ever you want to output items onto the calendar is a different issue, | |
but I'd assume pushing everything into an array numerically indexed by that day: |
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 Sebastián Thomson <seba.thomson@gmail.com> | |
* @description | |
* Esta función puede ser pegada en cualquier clase del proyecto | |
* Y podrás acceder al Inyector de Dependencias (container) | |
* | |
* @example | |
* <code> |