50 lines
1.2 KiB
PHP
50 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace App\Controllers;
|
|
use CodeIgniter\HTTP\RequestInterface;
|
|
use CodeIgniter\HTTP\Request;
|
|
|
|
class PromoAdmin extends BaseController
|
|
{
|
|
protected $request;
|
|
|
|
// public function __construct(RequestInterface $request)
|
|
// {
|
|
// $this->request = $request;
|
|
// }
|
|
|
|
public function index(): string
|
|
{
|
|
return view('welcome_message');
|
|
}
|
|
|
|
|
|
public function AuthPromoDash(){
|
|
$out=[];
|
|
//exit();
|
|
return view('admin/index', $out);
|
|
}
|
|
|
|
public function PromoMyList(){
|
|
$out=[];
|
|
//exit();
|
|
return view('admin/mylist', $out);
|
|
}
|
|
public function addRefMember(){
|
|
|
|
$data['email'] = $_GET['email'];
|
|
$data['firstname'] = $_GET['firstname'];
|
|
$data['lastname'] = $_GET['lastname'];
|
|
|
|
$out=[];
|
|
$out = $this->APIcall('POST', $this->wrenchAdminApiServer(). 'list',$data);
|
|
var_dump( $out );
|
|
|
|
echo "Ameye Olu Test 0000 ";
|
|
}
|
|
//$routes->post('/en/promoadmin/api/v1/auth', 'Promo::promoAuth');
|
|
//$routes->get('/en/promoadmin/api/v1/list', 'Promo::promoList');
|
|
//$routes->post('/en/promoadmin/api/v1/list', 'Promo::promoAddRef');
|
|
|
|
}
|