- Database MYSQL (Optional)
- PHP 8
- Root akses (VPS) / CPANEL File Manager jika Shared Host
This file contains hidden or 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 Reactmore extends BaseConfig | |
{ | |
public array $app_settings_array = array( |
This file contains hidden or 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
# Instalations | |
> Download and Upload thid Repositories on Server | |
. | |
├── ... | |
├── home | |
| ├── oxyente | |
| │ ├── core_website # Codeigniter Files | |
│ │ │ ├── app | |
│ │ │ ├── public # All assets website on this folder |
This file contains hidden or 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
add_action('rest_api_init', 'custom_api_get_all_posts'); | |
function custom_api_get_all_posts() | |
{ | |
register_rest_route('custom/v1', '/all-posts', array( | |
'methods' => WP_REST_Server::READABLE, | |
'callback' => 'custom_api_get_all_posts_callback' | |
)); | |
} |
This file contains hidden or 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
public function facebook_share() { | |
//--------------------------------------------------- | |
// Call Facebook SDK | |
// GET : https://github.com/facebookarchive/php-graph-sdk | |
require_once APPPATH . "third_party/facebook/vendor/autoload.php"; | |
//--------------------------------------------------- | |
// GET TOKEN |
This file contains hidden or 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 | |
defined('BASEPATH') OR exit('No direct script access allowed'); | |
class visitor | |
{ | |
protected $CI; | |
public function __construct() | |
{ | |
$this->CI =& get_instance(); |