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
public function createMemberPost(){ | |
if( $this->session->userdata("login",TRUE) ){ | |
$submit = $this->input->post('submit',TRUE); | |
//$upload = $this->upload(); | |
//echo json_encode($upload);die(); | |
$input_date = $this->input->post('admission_date'); | |
$date = (empty($this->input->post('admission_date')) ? date('Y-m-d H:i:s') : $this->input->post('admission_date')); | |
if( $this->input->is_ajax_request() ){ | |
if( $this->form_validation->run('create_member') === FALSE ){ | |
$errors = $this->form_validation->error_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
var Model = require('../models/model'); | |
let Restaurante = require('../models/schema_restaurante'); | |
let Admin = require('../models/schema_admin'); | |
// Moment js | |
var moment = require('moment'); | |
// Working Hours | |
var WorkingHours = require('working-hours').WorkingHours; | |
// Random String | |
var randomstring = require("randomstring"); | |
var bcrypt = require('bcryptjs'); |
NewerOlder