How can I use the define_title () method of the $extension
variable inside the file_verify >?
class Title extends Imoveis
{
public function file_verify($file)
{
$file = explode("/", $file);
$file = $file[1];
$extension = pathinfo($file);
$extension = $extension['extension'];
}
public function define_title()
{
if(isset($extension) && $extension == 'php')
{
return "Bingooooooo";
}
}
}