Welcome Guest, Not a member yet? Register   Sign In
Is it a bad coding practice to call a view from within another view?
#1

[eluser]Ali Al-Hamdan[/eluser]
New around here. Not new to mvc, but this is an approach that makes sense to me. If I have a main view, and from within that main view I call 'module' views. Is this a bad practice? Thanks much.
#2

[eluser]nmweb[/eluser]
No, not a bad practice. Keeps your code DRY
#3

[eluser]Ali Al-Hamdan[/eluser]
[quote author="nmweb" date="1217977289"]No, not a bad practice. Keeps your code DRY[/quote]

is this something that you do? by 'dry' what do you mean?
#4

[eluser]nmweb[/eluser]
Dry
#5

[eluser]Ali Al-Hamdan[/eluser]
thank you much




Theme © iAndrew 2016 - Forum software by © MyBB