php - Jquery UI Tabs: Strategy for using included files -
i have application using jquery's ui tabs overall menu, , they're great. however, i've come strategy question when implementing new format.
first, concept:
- an index.php file includes several class files (also php) , calls tabs
- each tab pulls in 1 file per page via script's "ajax loading" feature (as described here)
- each tab's page contains combination of static text, content loaded server-side @ display, , content that's dynamically updated via jquery's ajax.
now, challenge: working expected except pages pulled tabs don't have access aforementioned included php files on index page. i'm able use content if separate includes on each of ajax included pages, out of hand in hurry. so, i'm seeking strategy 1 set of included files persist across pages.
any ideas graceful solution challenge?
php (well, entire web) stateless, meaning once php interpreter has parsed file, spits out , done it. there no way persist includes parsed in 1 instance instance.
the way pages gain access files included in "main" page include files themselves. said though, out of hand , pain-staking maintain, why lot of people resort registry file. registry file loads includes need, , need include registry file on of pages.
Comments
Post a Comment