Components,Helpers,Elements,Layouts

Components

1)Components are reusable logic code modules

2)These are same as Controller except

a)Name end with extension Component i.e. EmailComponent.

b)The code we need to use in many controllers is pasted in components.

 

Helpers

1)Helpers are for view creation i.e.Form,Html

 

Elements

1)Elements are view code files

2)Used when you need to use same view part on all your pages

i.e. can be used for header as it will be used on every page.

3)These are saved in Elements folder and can be called in Layouts.

 

Layouts

1)These are repeating code blocks to be used in view files like header layout can be used in every view file

2)These may contains many Elements

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s