PHP Classes
elePHPant
Icontem

File: sample/Cst/create/index.php

Recommend this page to a friend!
  Classes of Rafael Becker  >  PHP Expressive  >  sample/Cst/create/index.php  >  Download  
File: sample/Cst/create/index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Expressive
Base class for Object Relational Mapping
Author: By
Last change:
Date: 1 month ago
Size: 467 bytes
 

Contents

Class file image Download
<?php

require_once '../../../vendor/autoload.php';

use
Sample\Cst\Classes\Cst;

try {

    require
'../../Database/config.php';

   
$Cst = Cst::make(
        [
           
"iCsttipo" => 2,
           
"sCstCst" => "AA",
           
"sCstDescricao" => 'Eloquent Test [ ' . uniqid(rand()) . ' ]',
           
"iCstSt" => 1
       
]
    );

   
var_dump(
       
$Cst->create()
    );

} catch (\
Exception $exception) {
   
var_dump($exception);
}