#04 App Class | Student management system in PHP | OOP MVC | Quick programming tutorial

preview_player
Показать описание
in this series, we create a student management system from scratch using PHP in object oriented format and model view controller system.

source code:

PHP Object Oriented Programming basics:

more tutorials:
make a social website from scratch:

all crash courses:

code a live chat app in PHP and JavaScript:

make an eCommerce website from template:

convert an HTML template to PHP website:

simple signup and login system & security:

crop images with PHP:

Chart or graph using SVG:

Responsive web design:

clean pretty URLs:

support me on patreon:

my facebook:
Рекомендации по теме
Комментарии
Автор

6:50
I like it when you're ready to write a func or do something and hesitate, but you end up doing it :)
You do that a lot in your videos :D

abdomahmoud
Автор

your tutorial is more much better than the others, its more understandable.

JoelParreno-geey
Автор

I love it when you make things easy to understand. Thanks Sir.

jamesoduro
Автор

in function getUrl correct code is: return explode('/', filter_var(trim($_GET['url'], '/'), FILTER_SANITIZE_URL));

ChristianHaugland
Автор

When am testing my app class instead of showing the url inside the array it shows an empty array

pmrebel
Автор

how to solve a proble?
I put my .htaccess in public folder, but still not worked.


class App
{
protected $controller = "home";
protected $method = "index";
protected $params = array();

public function __construct()
{
print_r($this->getURL());
}

private function getURL()
{
return explode('/', $_GET['url']); //get the url and explode into array
}
}

Notice: Undefined index: url in on line 21
Array ( [0] => )

milosmijajlovic
Автор

i am not getting any parameter in the $ _GET can someone help me? I am blocked please

class App{
protected $controller = "home";
protected $method = "index";
protected $params = array();
public function __construct(){
print_r($this->getURL());
}
private function getURL(){
print_r($_GET);
}


output

Array ( )
@Quick Programming

yaen
Автор

When i try to sanitize the url, instead of cleaning the space i put in ../sub jects/ it says ../sub%20jects/

FunBlackFox
Автор

Am facing this problem

class App
{
protected $controller = "home";
protected $method = "index";
protected $params = array();

public function __construct()
{
print_r($this->getURL());
}

private function getURL()
{
return explode('/', $_GET['url']); //get the url and explode into array
}
}

Notice: Undefined index: url in on line 21
Array ( [0] => )

paullekpalmo
Автор

FILTER_SANITIZE_URL is not working, if i am putting space in url means (sp ace) it's not SANITIZE please help

taranewstime
Автор

I using live serve, I don't get empty array when I run getURL() function

class App{
protected $controller = "home";
protected $method = "index";
protected $params = array();
public function __construct(){
print_r($this->getURL());
}
private function getURL(){
print_r($_GET);
}


output

Array ( )

Saboor-Hamedi
Автор

I am on lesson 4, I am getting this error. Fatal error: Cannot declare class App, because the name is already in use in on line 6
Where am i going wrong

ajaysunker
Автор

Thanks for simple understanding, but still do not here from you, concerning the mlm app tutorial

divinemedia
Автор

how to make FILTER_SANITIZE_URL italic

muhammadmithlaj
join shbcf.ru