Next.
When I want to use something, for example, in index, I want to pull a class to make an object, right?
Imagine the class looks like this:
<?php
class Testando{
//Meu codigo aqui
}
?>
So, I have my index:
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<?php
require'Testando.class.phg';
$Teste = new Testando;
?>
</body>
</html>
Now, I have my second class, let's suppose ..:
<?php
//Aqui eu não precisaria de um require/include da class Testando?
class EuTestei extends Testando {
//Meu codigo aqui
}
?>
There, where I commented, in the second class, would not I need include / require? Put it here, testing, it does not make the mistake. But how does she find this class?