Skip to main content
Sign in
Snippets Groups Projects
Commit 39e9c9bf authored by Bitha17's avatar Bitha17
Browse files

fix include

parent 1ae6f670
No related branches found
No related tags found
No related merge requests found
<?php
// app/Controllers/EventController.php
include_once '../Models/Event.php';
include_once(__DIR__ . '/../Models/Event.php');
class EventController {
private $eventModel;
......
......
<?php
// app/controllers/pembelianController.php
include_once '../Models/Pembelian.php';
include_once(__DIR__ . '/../Models/Pembelian.php');
class PembelianController {
private $pembelianModel;
......
......
<?php
// app/controllers/ticketController.php
include_once '../Models/Ticket.php';
include_once(__DIR__ . '/../Models/Ticket.php');
class TicketController {
private $ticketModel;
......
......
<?php
// app/controllers/userController.php
include_once '../Models/User.php';
include_once(__DIR__ . '/../Models/User.php');
class UserController {
private $userModel;
......
......
<?php
// app/models/Event.php
include_once '../db/connect.php';
include_once(__DIR__ . '/../../db/connect.php');
class EventModel {
public function createEvent($stock, $createdTime, $details) {
......
......
<?php
// app/models/Pembelian.php
include_once '../db/connect.php';
include_once(__DIR__ . '/../../db/connect.php');
class PembelianModel {
public function createPembelian($ticketId, $userId, $createdTime) {
......
......
<?php
// app/models/Ticket.php
include_once '../db/connect.php';
include_once(__DIR__ . '/../../db/connect.php');
class TicketModel {
public function createTicket($name, $price, $eventId) {
......
......
<?php
// app/models/User.php
include_once '../db/connect.php';
include_once(__DIR__ . '/../../db/connect.php');
class UserModel {
public function createUser($name, $username, $email, $hashedPass, $isAdmin) {
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment