Skip to content

Instantly share code, notes, and snippets.

View sebastopolys's full-sized avatar

Seba Rossi sebastopolys

View GitHub Profile
@sebastopolys
sebastopolys / GetTemplates.php
Last active March 19, 2023 04:06
Alternative switch statement for PHP Class
<?php
namespace Yournamespace;
class GetTemplates{
/*
* dirname(__DIR__)./templates/ is your templates path
* $layout_id is file name
*/
@sebastopolys
sebastopolys / prueba_counter.php
Last active November 22, 2015 16:53
Control de calendario para pasar de un mes a otro..
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<?php
$actual = date("m"); //11