Questions tagged [oop]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
12 views

Styles script added in Content is missing after saving

Why is it everytime I put a style code (not inline) in the content in Magento backend, it is gone after saving? But the styles are still in effect. Where are these codes saved? I know that the proper ...
1
vote
1answer
24 views

Difference between class constant and class static variable with array as a value in php7?

Example: class Test { const URLS = [ 'http://example.com/', 'http://example1.com/' ]; public static $urls = [ 'http://example.com/', ...
0
votes
1answer
170 views

How can I use Namespaces and USE function in magento 1.9?

How can I use Namespaces and USE function in magento 1.9 ? I dont want to use require or include function just set one namespaces and use this in my controller like laravel or magento 2. Is it ...
2
votes
1answer
1k views

What does getLoadedProductCollection()->clear() do?

I am new to magento, but have some experience in Object Oriented Programming (OOP), so I understand the concept that you are building a query in an object through multiple commands - which can ...
3
votes
2answers
570 views

Magento 2: Clear Direction on Controller Result Factories

In a controller's execute method, has there been any clear guidance from the Magento core team if client developers should Be using the individual PageFactory, JsonFactory, RawFactory, etc objects ...