Пример #1
0
 function __construct()
 {
     parent::__construct();
 }
Пример #2
0
<?php

namespace controllers;

use config\dbcon;
session_start();
require_once 'config/dbcon.php';
require_once 'controllers/add.php';
require_once 'controllers/all.php';
include_once 'messages/strings.php';
$con = new dbcon();
$con->getInstance();
include_once 'includes/header.php';
include_once 'includes/product_list.php';
if (!empty($_POST)) {
    if ($_POST['code'] == 'add') {
        ?>
    <?php 
        $_SESSION['code'] = "add";
        ?>
    <?php 
        require_once 'add.php';
    }
    if ($_POST['code'] == 'core') {
        ?>
    <?php 
        $_SESSION['code'] = "core";
        ?>
    <?php 
        require_once 'coreunits.php';
        ?>