Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [mvc]

The tag has no usage guidance.

7
votes
2answers
215 views

Soap API - How to get request by Limit 10 based on pagination?

I am getting products list using catalogProductList, its taking too long time to return the values(see screenshot) actually my products count is 24K, how can i run by using limit 10 and if i click ...
1
vote
4answers
335 views

Magento 2 follows MVVM architecture or MVC architechure?

I am understanding the logic behind working in separate folders in Magento 2 and came across bundle of articles talking about same thing in different ways. Some explain MVC logic behind it and some ...
0
votes
1answer
23 views

Where and what is the best way to create utility function in Magento?

I would like to ask for example I have a function doSomething() which will be used by one or more other files, where is the best place to put it? As of now, I put everything in Data.php (helper class)...
0
votes
1answer
216 views

How to override magento 1.9 newsletter model subscriber.php?

I'm trying to add first name and last name on my newsletter subscription. I would like to override the newsletter core functions of the controller and the subscriber model. Here is my code: config.xml ...
4
votes
2answers
194 views

Best practice for location of a class

I've created a Magento 2 module and I set up a class that extends Magento\Framework\DataObject that I'm using to pass data between my helper (e.g. Package\Module\Helper\Data) and model (e.g. Package\...
0
votes
1answer
44 views

why there are block,controller, model directories in magento module?

Can anyone explain why should we write our code in different directories while creating module? Can't we just write our block code in controller? if we put our model,block files in controller .will ...
1
vote
1answer
371 views

In Magento model do we have business logic or a controller?

I have read so many documentation about MVC. But I am still confused regarding the business logic in Magento. Can you please help me to explain business login in Magento with an example ?
0
votes
2answers
698 views

Where does Magento keeps it's business logic?

I went through some articles which describes Magento architecture. As we all knows Magento uses MVC ( Model-View-Controller ) architecture. It separates the business logic, data access layer and ...
1
vote
1answer
30 views

Easy MVC question about the Magento controllers/observers methods

I've created a Magento plugin with a simple admin html observer: This file looks like this: //File: /Model/Adminhtml/Observer.php class Aaa_Bbb_Model_Adminhtml_Observer { public function ...
7
votes
1answer
904 views

Where does Magento 2 URL Segment Parsing Happen

In Magento 2 routing, the system parses the URL segments into three sections module-or-front/segment2/segment3 Which specific class file does this happen in? Put another way, the request object has ...
-2
votes
1answer
111 views

Can I create ecommerce Website using plainphp + soap API + Magento

Can I create eCcommerce Website using plainphp or any php MVC framework + soap API + Magento
21
votes
5answers
15k views

What is helper in Magento?

What is helper in Magento? In what cases should one use and not use helpers?
5
votes
2answers
204 views

Where’s The V in Magento's MVC? And is there better name?

When you look at the Magento directory structure, the C for ‘controller’ and the M for Model are easily identified as files and classes. But where are the Views and what are they?
1
vote
3answers
1k views

Pass variable from controller to model

I have spent the last couple of days trying to figure out how to pass variables from my controller to my model. I am trying to build a very simple product filter that takes some form inputs and builds ...
20
votes
3answers
3k views

Request flow of Magento 2

Their is a lot of fuss going about Magento 2, concept like Namespaces etc has been incorporated into it. I am just curious to know how REQUEST flow has been handled in Magento 2, can somebody give me ...
5
votes
1answer
456 views

Is Magento based on 3 tier architecture?

I want to know few things: Is magento based on 3 tier architecture? Is it free from SQL-Injection, cross-site-scripting, CRLF injection attacks and SSI attacks?
0
votes
1answer
2k views

Magento Model - View - Controller - how that works in short? [duplicate]

can anyone describe me in short version how Magento works with MVC, models i somehow understand, but how view and controllers in magento are diffrerent than in onther mvc systems? magento says that ...
1
vote
4answers
18k views

Magento Call a function of Model in Controller

I have a function abc in model . i want to call that function abc in controller. i am new to magento and dnt have any idea regarding this. Can any body tell me how to do this
2
votes
1answer
105 views

Pre-requisites of Magento Learning [closed]

I've been diving into Magento for last 3 months. I've understood pretty much the app/design-- part of it. But now when i try to look into module development, that look like a really scary part. I've ...
2
votes
1answer
2k views

How does Magento MVC differ from classical MVC / Zend Framework MVC? [closed]

How does Magento MVC differ from classical MVC or Zend Framework MVC? Any explanation will be appreciated.