Obviously the final Twig template is more complicated, which is the whole reason for switching to Twig. I needed to group events by their type (specifically those that were "raffles") so all raffles that occurred on the same day were listed in the same "event", but just with different times and locations. Twig lets you work with actual arrays and objects in the template, so you can manipulate the data in a more controlled fashion. The index.html.twig file is the closest translation of the template to Twig prior to adding the grouping. Twig or Blade just make it a lot easier to perform simple conditionals and set variables that can be reused without worrying about parse order issues.
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
--- Model/FluidField_unedited.php 2023-07-17 11:25:23 | |
+++ Model/FluidField.php 2023-07-07 16:49:14 | |
@@ -119,7 +119,9 @@ | |
$rows = ee()->extensions->call( | |
'fluid_field_get_field_data', | |
$this->field_id, | |
- $this->field_data_id | |
+ $this->field_data_id, | |
+ $this->fluid_field_id, | |
+ $this->entry_id |
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 | |
/** | |
* ExpressionEngine (https://expressionengine.com) | |
* | |
* @link https://expressionengine.com/ | |
* @copyright Copyright (c) 2003-2022, Packet Tide, LLC (https://www.packettide.com) | |
* @license https://expressionengine.com/license | |
*/ | |
use Mexitek\PHPColors\Color; |
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
0 * * * * launchctl stop com.apple.CalendarAgent && launchctl start com.apple.CalendarAgent |
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 | |
$iterator = new \RecursiveIteratorIterator( | |
new \RecursiveDirectoryIterator($addonDir, \RecursiveDirectoryIterator::SKIP_DOTS), | |
\RecursiveIteratorIterator::LEAVES_ONLY | |
); | |
download_and_extract_package('basee', 'Basee', $outputDir, $addonDir); | |
download_and_extract_package('file-field', 'FileField', $outputDir, $addonDir); |
DDEV-Local depends on the deb.sury.org Debian packages for PHP, so will follow those as the changes are made. Currently deb.sury.org packages PHP8.0 with xdebug 3.0, but it's not hard to get xdebug 3.0 with earlier PHP versions until that changes.
You can compile and install xdebug 3.0 for PHP7.3 or 7.4. Place this file as .ddev/web-build/Dockerfile in your project's .ddev directory:
ARG BASE_IMAGE
FROM $BASE_IMAGE
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y -o Dpkg::Options::="--force-confold" --no-install-recommends --no-install-suggests php-dev php-pear build-essential
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 | |
/** | |
* ExpressionEngine PhpStorm Meta | |
* | |
* This file is not a CODE, it makes no sense and won't run or validate | |
* Its AST serves PhpStorm IDE as DATA source to make advanced type inference decisions. | |
* | |
* @see https://confluence.jetbrains.com/display/PhpStorm/PhpStorm+Advanced+Metadata | |
*/ |
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
Apache | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{REQUEST_URI} !^/system [NC] | |
RewriteCond %{QUERY_STRING} !ACT|URL [NC] | |
RewriteCond %{REQUEST_METHOD} !=POST [NC] | |
RewriteCond $1 !\.(css|js|gif|jpe?g|png) [NC] | |
RewriteCond %{DOCUMENT_ROOT}/static/default_site/static%{REQUEST_URI}/index\.php -f | |
RewriteRule ^ /static/default_site/static%{REQUEST_URI}/index\.php [L,QSA] |
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 | |
abstract class FieldAbstract extends EE_Fieldtype | |
{ | |
/** | |
* The settings from the db that EE passes to the ft file | |
* @var array | |
*/ | |
public $settings = []; |
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 MyNamespace; | |
/** | |
* @author Ton Sharp | |
* @author Brian Litzinger | |
* @see https://gist.github.com/66Ton99/60571ee49bf1906aaa1c | |
* @see https://www.elastic.co/guide/en/elasticsearch/reference/5.3/common-options.html#date-math | |
*/ |
NewerOlder