PHP code example of pickles2 / px2-clover

1. Go to this page and download the library: Download pickles2/px2-clover library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

pickles2 / px2-clover example snippets


	// funcs: Before sitemap
	$conf->funcs->before_sitemap = [
		// px2-clover
		tomk79\pickles2\px2clover\main::register( array(
			/* any options... */
		) ),

		// ...other plugins
	];

$conf->allow_pxcommands = 1;

	// funcs: Before sitemap
	$conf->funcs->before_sitemap = [
		// px2-clover
		tomk79\pickles2\px2clover\main::register( array(
			// プレビューに認証を要求するか?; false (default) | true
			"protect_preview" => true,

			// 管理ユーザーの格納ディレクトリ (省略可)
			// 主に、サブディレクトリにインストールされたプロジェクトで、親プロジェクトとユーザーを共有したい場合に設定します。
			"realpath_admin_user_dir" => __DIR__.'/_sys/ram/data/px2-clover/admin_users/'
		) ),
	];