is magento architecture useful for more smaller applications? [closed]

Hi I realy like how magento creates it's view. It's not standart MVC like Codeigneter or Ruby on Rails. Magento has Block and Template. So I have created an architecture like this. I have layouts (xml files). And views(phtml files).

Layout example.

<data>
<register>

<referense to="master">
<action method="removeBlock" value="notice" />
</referense>
<referense to="master">
<action method="setTemplate" value="page/default.phtml" />
</referense>

</referense>

<referense to="master">
<block name="content" type="Customer/FormBlock" template="customer/form.phtml"></block>
</referense>

</register>

<activate>

<referense to="container">
<action method="setTemplate" value="customer/activate.phtml" />
</referense>
</activate>

</data>


The controller.

class CustomerController extends ActionController
{
public function indexAction()
{
//....
}

public function registerAction()
{
//....
}

public function activateAction()
{
//....
}

}


So when user calls "activate" action , it will render the view in <activate/> tag. if there is no such tag , it will render for <default/> tag.

Is this pattern useful for small applications like Simple Blog ?. Because it's takes more time for development but the applications are very dynamic. May be there are more useful patterns like this one, if there are , please provide me. Thank you.

-

migration rejected from stackoverflow.comMay 6 at 15:43

This question came from our site for professional and enthusiast programmers. Votes, comments, and answers are locked due to the question being closed here, but it may be eligible for editing and reopening on the site where it originated.

closed as off-topic by amon, Jamal♦May 6 at 15:43

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "Questions must involve real code that you own or maintain. Questions seeking an explanation of someone else's code are off-topic. Pseudocode, hypothetical code, or stub code should be replaced by a concrete example." – amon, Jamal
If this question can be reworded to fit the rules in the help center, please edit the question.

for simple blog, no, probably not -- i dont think its necessary. On a side note, the block and template separation can be achieved using hMVC, which is MVC in the sense that there are traditional model view controllers and then you can load them independently into other MVCs as blocks.. which is what Kohana is all about. I hope you find that useful –  Kristian Mar 22 '12 at 22:20
The 'Magento' way is overly complex, really built on being able to override everything while in practice this only makes things needlessly complex... You'll do a lot better with something simpler... –  sg3s Jun 25 '12 at 10:58
The answer is no. It is always good to avoid the complexity of framework/pattern for a small application unless you are doing it for practice. –  Kinjal Dec 20 '12 at 9:10