On Github lunika / openxpo-slides
E-Commerce solution based on Symfony 2 components
By Manuel Raynaud / @manuraynaud
Open Expo 25/11/2014
Event-driven programming paradigm
public function createCustomer($login, $password) { $customerEvent = new CustomerEvent( $login, $password ); $this->dispatch(TheliaEvents::CUSTOMER_CREATEACCOUNT, $customerEvent); $newCustomer = $customerEvent->getCustomer(); ... }
Version 2
{ifloop rel="loop_id"} <p>Display if loop returns at least 1 result</p> {loop id="loop_id" type="product" arg1="value1" arg2="value2"} price : #PRICE {/loop} <p>Display if loop returns at least 1 result</p> {/ifloop} {elseloop} <p>Display if loop returns nothing</p> {elseloop}