This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//CustomersModel.php | |
use GroceryCrud\Core\Model; | |
use GroceryCrud\Core\Model\ModelFieldType; | |
class CustomersModel extends Model { | |
protected $ci; | |
protected $db; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Tweet Message "To send this tweet* I’ve used only Github Copilot suggestions with a programming language I am not familiar with 😮\n\n*through twitter API" | |
twitterMessage = "To send this tweet* I’ve used only Github Copilot suggestions with a programming language I am not familiar with 😮\n\n*through twitter API" | |
# post tweet to twitter | |
import tweepy | |
import os | |
# send tweet | |
def send_tweet(message): | |
# Twitter API credentials |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
src/GroceryCrud/Core/State/StateAbstract.php | 5 ++++- | |
1 file changed, 4 insertions(+), 1 deletion(-) | |
diff --git a/src/GroceryCrud/Core/State/StateAbstract.php b/src/GroceryCrud/Core/State/StateAbstract.php | |
index 6b37f87..c2c2424 100644 | |
--- a/src/GroceryCrud/Core/State/StateAbstract.php | |
+++ b/src/GroceryCrud/Core/State/StateAbstract.php | |
@@ -1311,11 +1311,14 @@ class StateAbstract | |
public function getFieldTypesAddForm() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Please have in mind that as those data are only for testing purposes | |
-- we did add the full list of cities only for Greece and United Kingdom. | |
-- Other than that they are few cities for France and Italy in case you would | |
-- like to test it. | |
-- | |
-- phpMyAdmin SQL Dump | |
-- version 4.8.2 | |
-- https://www.phpmyadmin.net/ | |
-- | |
-- Host: localhost |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// config/grocerycrud.php | |
return [ | |
// So far 34 languages including: Afrikaans, Arabic, Bengali, Bulgarian, Catalan, Chinese, Czech, Danish, | |
// Dutch, English, French, German, Greek, Hindi, Hungarian, Indonesian, Italian, Japanese, Korean, | |
// Lithuanian, Mongolian, Norwegian, Persian, Polish, Portuguese, Brazilian Portuguese, Romanian, | |
// Russian, Slovak, Spanish, Thai, Turkish, Ukrainian, Vietnamese | |
'default_language' => 'English', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php namespace Config; | |
use CodeIgniter\Config\BaseConfig; | |
class GroceryCrudEnterprise extends BaseConfig | |
{ | |
public function getDefaultConfig() { | |
helper('url'); | |
return [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace MyCustomStates; | |
use GroceryCrud\Core\GroceryCrud as GCrud; | |
use GroceryCrud\Core\State\StateInterface; | |
use GroceryCrud\Core\State\ExportState as GcExportState; | |
class ExportState implements StateInterface { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// This is an example of a messy code. Please do not copy any of this code as this is just an example of a bad code. | |
if (!empty($_GET['id'])) { | |
$id = $_GET['id']; | |
if (!is_numeric($id)) { | |
header("HTTP/1.0 404 Not Found"); | |
echo "<h1>⚠️ We are sorry, page not found</h1>"; | |
die; | |
} | |
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Controllers; | |
include(APPPATH . 'Libraries/GroceryCrudEnterprise/autoload.php'); | |
use GroceryCrud\Core\GroceryCrud; | |
class Example extends BaseController | |
{ | |
public function index() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<?php | |
foreach($css_files as $file): ?> | |
<link type="text/css" rel="stylesheet" href="<?php echo $file; ?>" /> | |
<?php endforeach; ?> |
NewerOlder