Welcome Guest, Not a member yet? Register   Sign In
how can i preset a variable value and get access to it in CI
#1

[eluser]searain[/eluser]
Code:
$profile_field_array = array(
        "about_me",
        "activities",
        "affiliations",
        "birthday",
        "books",
        "current_location",
        "education_history",
        "first_name",
        "hometown_location",
        "hs_info",
        "interests",
        "is_app_user",
        "last_name",
        "meeting_for",
        "meeting_sex",
        "movies",
        "music",
        "name",
        "notes_count",
        "pic",
        "pic_big",
        "pic_small",
        "political",
        "profile_update_time",
        "quotes",
        "relationship_status",
        "religion",
        "sex",
        "significant_other_id",
        "status",
        "timezone",
        "tv",
        "wall_count",
        "work_history");

In traditional php, I can just save this in a php file and include it when I need it. In CI everything libray, helper, plugin etc, either class or function, not just for assign values to a variable (an array in this case).

how could I do it right in CI? or just do it like in traditional php, save it in php file and include it when I need it?


Messages In This Thread
how can i preset a variable value and get access to it in CI - by El Forum - 07-28-2009, 04:44 PM



Theme © iAndrew 2016 - Forum software by © MyBB