Formularios PHP modelo MVC

Submitted by tanny on Tue, 11/28/2017 - 22:05
class FacturaController
{
    public function CrearAction()
    {
        //var_dump( $_SESSION["FacturaController_CrearAction"] );
        if( count($_POST) == 0 )
        {
            /*
            * Permito que se ejecute de nuevo el formulario sólo si 
             * este viene vacio
            */
            $_SESSION["FacturaController_CrearAction"] = TRUE;             
        }
 
        if($_SESSION["FacturaController_CrearAction"] === FALSE)
        {
            //$_POST = [];
            //echo count($_POST);
            header('Location: index.p

VBA Funciones Útiles

Submitted by tanny on Mon, 11/27/2017 - 10:48

Validar si un archivo existe

'For File this function will return TRUE and
'For folder it will return FALSE
Public Function FExists(OrigFile As String)
Dim fs
Set fs = CreateObject("Scripting.FileSystemObject")
FExists = fs.FileExists(OrigFile)
End Function

Validar si un directorio existe

'For File this function will return False and
'For folder it will return TRUE
Public Function DirExists(OrigFile As String)
Dim fs
Set fs = CreateObject("Scripting.FileSystemObject")
DirExists = fs.folderexist

4 Ways to Get Honest, Critical Feedback from Your Employees

Submitted by tanny on Thu, 11/23/2017 - 11:48

I recently observed a town hall meeting where a new leader had just been promoted to run his division.  In his introductory remarks, many – including me – were struck by his declaration, “One of the things you’ll find is that I’m very self-aware and open to feedback.” Even from the side of the room, I could see the eye rolling.