Welcome Guest, Not a member yet? Register   Sign In
Best Practice to include a php file with text tags.
#1

[eluser]skiff_pt[/eluser]
Hi all,

I'm developing a light weight CMS.

I have a view with a form that i use to create both news and events.
In my case news and events need to include different field explanations.

I decided to have only one form and load dynamically text tags according to the type of press release I'm creating (event or news).
For this, and because there are a lot of dynamic text tags, i decided to create 2 php files with the tags, in the very same structure as a CI language file.

Now my question:
Is it good CI - CMV practice to check the type of press release user is creating and include the correct text TAG file in my controller (using PHP include statement)?

My idea is to pass the tags to $data variable and pass this information to the view when i call it!

If this is not a good practice can you please advise me on a better way?

Thanks in advance!


Messages In This Thread
Best Practice to include a php file with text tags. - by El Forum - 01-06-2011, 08:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB