Click here to Skip to main content
15,905,028 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi guys i have a question i want to create a index page

with the following navigations

Dashboard
tables
users
settings

and if i click one of them they will stay on current page and just fill the body with a file i have in my includes.

i see alot of people will just make a template and make the php files like this dashboard.php and tables.php is there another way for me to do it?
Posted

1 solution

You mean pages like these: http://webdesignledger.com/inspiration/40-excellent-examples-of-single-page-websites[^]?

If yes, your question is quite confusing. Actually what you described is the Single Page Interface which relies on ajax calls. But it is not made as you think it is - or as I think you think.
So, to get an idea about the technology, especially from client side view: http://itsnat.sourceforge.net/php/spim/spi_manifesto_en.php[^]
There are engines that are built to support this. You can take a tour here: http://net.tutsplus.com/tutorials/javascript-ajax/important-considerations-when-building-single-page-web-apps/[^].

Ok, this all can be done with php on server side, but the tricky part is the client side. It might be possible, that you will need a little bit more experience in javascript and a javascript framework like jquery.

If the samples in the first link are not like the ones you meant, you should probably add a link to your original post, so we could see.
 
Share this answer
 
Comments
Nico_Travassos 13-Dec-13 16:11pm    
thank you
Zoltán Zörgő 13-Dec-13 16:13pm    
You are welcome

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900