Currently browsing

Magento Model Code Generation

This is a quick one for advanced users, is a recent problem, I answered StackOverflow inspired.

Magento as well as about an abstract system as one of the advantages is the opportunity it presents metaprogramming. Drops action in a controller (which is the following code, you can define an internal function in PHP)

MVC Developers Part 2 – Magento Controller Shipping and Hello World

The Model-View-Controller (MVC) architecture traces its roots back to the programming language Smalltalk and Xerox Parc. Since then, many systems to describe their architecture and MVC. Each system is different, but they all have the goal of separating data access, business logic and user interface code from each other.

The architecture of PHP MVC frameworks, most will look something like this.

Magento – Fatal error: Uncaught exception 'Exception' with message 'Serialization …….'

serialization of mage_core_model_layout_element is not allowed The message might be various but something like this Fatal error: Uncaught exception ‘Exception’ with message ‘Serialization of ‘Mage_Core_Model_Layout_Element’ is not allowed’ in /app/code/core/Mage/Core/Model/Mysql4/Session.php:82 If you re ad PHP manual or google for this issue, it doesn’t tell you something about the reason excepting …