-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCool.php
More file actions
31 lines (29 loc) · 1.31 KB
/
Cool.php
File metadata and controls
31 lines (29 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
class Cool extends MainCore{
public function __construct()
{
parent::__construct();
}
public function index(string $argone = "49", string $argtwo = 'animation'){
$data['bla'] = true;
$data['testnon'] = "Das ist ein Toller Test, Bruder das fühl ich 12 von 10 son Ding ist das!";
$data['blaarray'] = array("a","10min","0000");
if (is_numeric($argone)){
if ($argone != 0){
$data['flagarg'] = $argone;
} else {
$argone = 49;
}
}
$data['flagtypearg'] = $argtwo;
$dataheader['title'] = "Coole Tests";
$dataheader['description'] = "Coole Tests und so weiter,\nteste es selbst und ändere die werte.\nFlagvariable: ".ucfirst($argtwo). " Flag: " . $argone; //Kurzbeschreibung der Website Empfehlung 300 Zeichen
$dataheader['metatags'] = "HTML, CSS, JavaScript, PHP, Template, Test, Cool";
$dataheader['ogimage'] = BaseURL("images/logo.jpg");
$dataheader['ogimage'] = "";
// $this->session->set_flashdata('success','Nicht Erlaubt');
$this->LoadView("_defaults/_header", $dataheader);
$this->LoadView("cool/home", $data);
$this->LoadView("_defaults/_footer");
}
}