Replace words with page load

For programming and general questions on Zend Framework

Replace words with page load

Postby erik_m on Tue Nov 13, 2012 3:53 pm

I have an application where the user is able to change all kind of words throughout the whole application. For example, if one user doesn't want to see the word "Resources" but "People", they can manage that themselves and I have that stored in a table called 'terms' where I have a column for the user ID, the old term and the new term.

What I am trying to accomplish is the following steps:

1. User logs in
2. User sets the term "Resources" to "People" (record added in the DB)
3. The user goes to a page where the word "Resources" is displayed for example as a menu description
4. This user sees this word as "People" because he termed it

So what I am trying to accomplish is a general way that with every page load, before the page is displayed the words that are in the terms-table for that user have to be replaced to the terms that the user has entered. How can I create this?

Thanks!
erik_m
 
Posts: 5
Joined: Mon Jun 11, 2012 2:23 pm

Return to Zend Framework

Who is online

Users browsing this forum: No registered users and 5 guests