Hi all,
I am new to symfony.
Recently I have got a request to make modifications into an existing project built with symfony 1.4.13.
Almost all of the requested modifications are completed except a few.
It a social networking site with few thousands of users.
In the existing site,
the users
- has to put his/her date of birth during registration.
- can search for other users by year of birth, month of birth, day of birth or exact date of birthday, (of only the users who have made their birthday publicly viewable).
the admins,
- can search for other users by year of birth, month of birth, day of birth or exact date of birthday.
the site
- displays users birthday & age, (of only the users who have made their birthday publicly viewable)
All these above come from the same module.
Now the client wants to change ONLY the search option, into age range, with two pulldown menus, each containing [18-99+].
The project was designed to have dynamic profile fields and options, which comes from different tables.
i.e.
profile table
[
profile id,
profule name,
flag for is open to public,
profile form type,
profile value type,
regular expression for the profile value,
minimum for the profile value,
maximum for the profile value,
...etc.
]
profile options table
[
profile options id,
profile id,
...etc.
]
Then the members profile data is inserted into a different table.
[
member profile id,
member id,
profile id,
profile option id,
value [text - string, integer, etc],
value [datetime - date, time, datetime, timestamp],
flag for is open to public,
...etc.
]
As i mentioned above, the profile items are completely dynamic, and it's coming from the same module.
So, if I change in [memberProfileSearchForm] it's affecting all search pages.
There is a generator to dynamically generate search form items
i.e $widget = formItemGenerator::generateSearchWidget($profileWithI18n, array('' => '') + $profile->getOptionsArray());
As I am new to symfony, I can't figure it out how I can accomplish the following things.
1. In user part - to change the date of birth [YYYY/MM/DD] pulldowns into Age Range [18~99+] ~ [18~99+] pulldowns.
2. In admin part - How do I append search by Age Range [18~99+] ~ [18~99+] pulldowns besides the date of birth [YYYY/MM/DD] pulldowns.
I don't have any documentation of the project, only just got access to the source code from the client.
If you need any other info for the clarification, please feel free to ask.
Thanks in advance.
PS. Please forgive my english, as I am not a native english speaker.
