Skip to content

Instantly share code, notes, and snippets.

View dharmabekti's full-sized avatar

Bekti Suratmanto dharmabekti

View GitHub Profile
@dharmabekti
dharmabekti / gist:8ce350af64bb87a4dd87dc3ae7c73543
Created November 4, 2024 01:10
Update User & Role CI 4
public function updateProfil($id)
{
$this->_user_model->save([
'id' => $id,
'firstname' => $this->request->getVar('firstname'),
'lastname' => $this->request->getVar('lastname'),
'username' => $this->request->getVar('username'),
'email' => $this->request->getVar('email'),
]);
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-2.5.0\android\build.gradle' line: 38
* What went wrong:
A problem occurred evaluating project ':firebase_core'.
> Could not find method platform() for arguments [com.google.firebase:firebase-bom:31.2.0] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
* Try:
// ================ CONTROLLER ====================== //
Future<void> delPegawai(String pegawaiId) async {
PegawaiResponse? result = await pegawaiRepository.deletePegawai(pegawaiId: pegawaiId);
if (result!.status.toString() == "true") {
CustomLoading(
status: "success",
message: result.message.toString(),
type: 'toast');
await getPegawai();
public function index_put()
{
$this->form_validation->set_data($this->put());
if ($this->_validationCheck() === false) {
$this->response([
'status' => false,
'message' => strip_tags(validation_errors()),
], self::HTTP_BAD_REQUEST);
} else {
$id = $this->put('id_buku');
alert(
String title, Widget message, BuildContext context, String type, function) {
Color bgColor;
if (type.toLowerCase() == "success")
bgColor = ColorPallete.success;
else if (type.toLowerCase() == "warning")
bgColor = ColorPallete.warning;
else if (type.toLowerCase() == "danger")
bgColor = ColorPallete.danger;
else if (type.toLowerCase() == "primary")
<?php (defined('BASEPATH')) OR exit('No direct script access allowed');
class Admin_Controller extends MX_Controller {
public static $is_loaded;
function __construct() {
parent::__construct();
<?php
if (!defined('BASEPATH'))
exit('No direct script access allowed');
/***
* File: (Codeigniterapp)/libraries/Controllerlist.php
*
* A simple library to list al your controllers with their methods.
* This library will return an array with controllers and methods
*
* The library will scan the "controller" directory and (in case of) one (1) subdirectory level deep
<?php (defined('BASEPATH')) OR exit('No direct script access allowed');
/**
* My_Model Model Library
*
* Description:
* My_Model is an extension to CodeIgniter's core model that helps make
* developing models easier and less repetitive.
*
* @version 2011.07.02
<?php defined('BASEPATH') OR exit('No direct script access allowed');
require_once APPPATH . 'controllers/api/Loginpengguna.php';
class Pushnotif extends Loginpengguna
{
private $datauser;
public function __construct()
{
parent::__construct();
$this->cektoken();
Initializing gradle... 2.2s
Resolving dependencies... 11.8s
Request to incrementing alive workforce from 0. Current workforce (dead or alive) 0
thread-pool size=4
ProGuard, version 6.0.3
Reading input...
Reading program jar [C:\Users\RAAVA\.gradle\caches\transforms-1\files-1.1\flutter.jar\136a87444ec933e46bd596babdcb498d\jetified-flutter.jar] (filtered)
Reading program directory [E:\Project\(2019) Project AAT\m_sianas\build\app\intermediates\javac\release\compileReleaseJavaWithJavac\classes] (filtered)
Reading program jar [E:\Project\(2019) Project AAT\m_sianas\build\app\intermediates\transforms\mergeJavaRes\release\0.jar] (filtered)
Reading library jar [C:\Users\RAAVA\AppData\Local\Android\Sdk\platforms\android-28\android.jar]