Blog

Code fix for double-post

User <script> window.location='https://fossettscircus.com/success/?eid=" . $order_info->event_date_id . "&oc=" . $order_info->order_code . "'; </script> ' "; goto continue_with_wordpress; exit(); } else { sendErrorMail( "Order not saved", "Order not saved but charge paid" . var_export( $order_info, true ) ); if (!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') { header('Content-Type: application/json'); echo json_encode([ 'success' => false, 'message' => 'Order could not […]

Remove index.php CodeIgniter

User remove index.php from url codeignter Assistant In CodeIgniter, by default URLs look like this: http://example.com/index.php/controller/method To remove `index.php` from the URL, you need to do two things: — ### **1. Update `config.php`** Open `application/config/config.php` (CodeIgniter 3) or `app/Config/App.php` (CodeIgniter 4) and set: $config['index_page'] = ''; For CI4: public string $indexPage = ''; — ### […]

PaymentIntent fix guide

User <script> window.location='https://fossettscircus.com/success/?eid=" . $order_info->event_date_id . "&oc=" . $order_info->order_code . "'; </script> ' "; goto continue_with_wordpress; exit(); } else { sendErrorMail( "Order not saved", "Order not saved but charge paid" . var_export( $order_info, true ) ); if (!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') { header('Content-Type: application/json'); echo json_encode([ 'success' => false, 'message' => 'Order could not […]

AWS EC2 for Laravel

User I want to use aws ec2 only for host laravel website backend Assistant Great—EC2 is a solid choice for a Laravel backend. Here’s a clean, no‑nonsense setup path tailored to your stack (Ubuntu 22.04, PHP 8.3, Node 21, folder like `/var/www/share`, Reverb on port 6001). # Two ways to host **A) Simple & cheapest […]

Concrete CMS scheduling fix

User Noting in feedshcedler now Class 'ConcreteCoreEntityAutomationTriggerOnScheduleTrigger' does not exist Assistant Got it 👍 That error tells me you’re trying to use `OnScheduleTrigger`, but in **Concrete CMS 9** the automation API classes have changed — there is **no** `ConcreteCoreEntityAutomationTriggerOnScheduleTrigger`. Here’s the correct mapping for scheduling tasks in Concrete CMS 9: – **Tasks** live under `ConcreteCoreCommandTask` […]

Auto-run task interval

User we have this task scheduler NOw i want to give intervval in package setting page and want concrete auto run this at that interval Assistant Got it — you want your **`generate_merchant_feed`** Task to auto‑run on a user‑defined interval from your package settings page. Here’s a clean, Concrete CMS 9–style way to do it: […]

Slider CSS fix

User .slider { height: 5px; position: relative; background: #ddd; border-radius: 5px; } .slider .progress { height: 100%; left: 25%; right: 25%; position: absolute; border-radius: 5px; background: #17a2b8; } .range-input { position: relative; } .range-input input { position: absolute; width: 100%; height: 5px; top: -5px; background: none; pointer-events: none; -webkit-appearance: none; -moz-appearance: none; } input[type="range"]::-webkit-slider-thumb { […]

Form generation example

User Assistant Got it—here’s a Concrete CMS 9–style version using the core `$form` helper (and a CSRF token). It keeps your Bootstrap layout/cards, but swaps raw inputs for `$form` methods so it’s consistent with dashboard conventions. <?php defined('C5_EXECUTE') or die('Access Denied.'); use ConcreteCoreViewView; use ConcreteCoreSupportFacadeApplication; use ConcreteCoreUrlUrl; $app = Application::getFacadeApplication(); /** @var ConcreteCoreFormServiceForm $form */ […]

Concrete CMS form update

User Assistant Here’s a Concrete CMS 9–friendly version of your dashboard form that: – Uses the built‑in CSRF security token (`Token`) – Keeps your route with `$view->action('submit')` – Avoids re‑generating the slug on validation errors – Uses Concrete 9 dashboard styles (`ccm-ui`, cards, etc.) ### View: `/single_pages/…/add.php` (or your package dashboard view) “`php User <script> […]

Concrete form in package

User HOw use concrete standard form in custom package Assistant In Concrete CMS (v9+), if you want to use the **standard Concrete form system** inside your **custom package**, you don’t need to reinvent fields or HTML. Concrete gives you a helper service called `form` and also integrates with Symfony form-style helpers. Here’s a step-by-step guide […]