Welcome Guest, Not a member yet? Register   Sign In
How can I use the function in view of using segments?
#4

[eluser]TWP Marketing[/eluser]
I think that I know what you are saying, however it is not "proper" MCV design to have your php code manipulate data in-the-view-file-itself. Yes, it will work, but there are better (simpler and easier to maintain) ways to do this. Views "should" have only display properties, the Controller and Model(s) are where you create the content (using php to massage your data) which is then passed to the view files.

Please re-think the layout of your application, if it's not already a done deal. The User Guide gives a good, basic example of how MCV works.

Please tell me where you have placed the code in your first message, ie; in Controller, Model or View file?


Messages In This Thread
How can I use the function in view of using segments? - by El Forum - 04-28-2011, 04:42 PM
How can I use the function in view of using segments? - by El Forum - 04-29-2011, 01:00 PM
How can I use the function in view of using segments? - by El Forum - 04-29-2011, 09:31 PM
How can I use the function in view of using segments? - by El Forum - 04-30-2011, 01:46 PM
How can I use the function in view of using segments? - by El Forum - 04-30-2011, 01:54 PM



Theme © iAndrew 2016 - Forum software by © MyBB