Archive of whiteboard topics, mostly about Magento, PHP, OOP, design patterns, etc.
- Create
select
source model with data fromdi.xml
- Create categorized
select
source model with data fromdi.xml
- Generate token for user authentication
- Generate nonce for reset link
- Update an entry timestamp via
DateTime
factory - Deduplicate redirect logic between inheritance-based controllers
- Implement CSRF-aware request validation in controllers
- Dispatch
before
,after
events while saving an entity - Modify metadata/data via data modifiers in an entity
DataProvider
class - Improve frontend load time via cache-driven SQL queries