For developers/engineers who can build products but have no sales or marketing experience.
The #1 reason startups fail: building something nobody wants.
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.
| --- 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 |
| <?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; |
| 0 * * * * launchctl stop com.apple.CalendarAgent && launchctl start com.apple.CalendarAgent |
| <?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
| <?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 | |
| */ |
| 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] |
| <?php | |
| abstract class FieldAbstract extends EE_Fieldtype | |
| { | |
| /** | |
| * The settings from the db that EE passes to the ft file | |
| * @var array | |
| */ | |
| public $settings = []; |