php classes programming
Posted: Thu Jul 27, 2006 3:08 am
Hi,
I have a 10 page wizard. Each page has the identical simple layout consisting of : 1) title of the page 2) a body text of 5 lines 3) 4 buttons at the bottom.
I need the following. I want to have 1 file with a class created in php. Each time you call the methods of the class the title of the page is automatically made, the buttons are created.
I have the following the questions:
1) how to make this class
2) in this class I also define the size, color , location of the buttons and title and body text within the method , is this correct or shall I create a style sheet CSS and link it into the class.
3) when i finsihed the class file i want to have 10 separate php files , 1 for each page and include the class the file everytime in the page file. Is this a correct or easy way to this?
Please help me i am a php newbie. I have MSN as well.. Please let me know how I can ask you foryour advice.
Many thanks
I have a 10 page wizard. Each page has the identical simple layout consisting of : 1) title of the page 2) a body text of 5 lines 3) 4 buttons at the bottom.
I need the following. I want to have 1 file with a class created in php. Each time you call the methods of the class the title of the page is automatically made, the buttons are created.
I have the following the questions:
1) how to make this class
2) in this class I also define the size, color , location of the buttons and title and body text within the method , is this correct or shall I create a style sheet CSS and link it into the class.
3) when i finsihed the class file i want to have 10 separate php files , 1 for each page and include the class the file everytime in the page file. Is this a correct or easy way to this?
Please help me i am a php newbie. I have MSN as well.. Please let me know how I can ask you foryour advice.
Many thanks