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 modules\main\controllers; | |
use craft\elements\Entry; | |
use craft\web\Controller; | |
use yii\web\Response; | |
/** | |
* Content controller |
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-US"> | |
<head> | |
<title>Alpine Demo</title> | |
<meta charset="utf-8"/> | |
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/full.min.css" rel="stylesheet" type="text/css"/> | |
{# {{ craft.vite.script("/resources/js/app.js", false) }} #} | |
<script src="https://cdn.tailwindcss.com?plugins=forms"></script> | |
<script defer src="https://cdn.jsdelivr.net/npm/@alpinejs/[email protected]/dist/cdn.min.js"></script> |
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 | |
// .... | |
public function actionConsolidateFieldsCandidates() | |
{ | |
$signatures = []; | |
foreach (Craft::$app->getFields()->getAllFields() as $field) { | |
$signature = [ |
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 modules\main\console\controllers; | |
use Craft; | |
use craft\console\Controller; | |
use craft\elements\Entry; | |
use craft\helpers\Console; | |
use GuzzleHttp\Exception\GuzzleException; | |
use yii\console\ExitCode; |