Php导航在一个页面上?可能吗 [英] Php navigation on one page? is it possible
本文介绍了Php导航在一个页面上?可能吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好我有一个问题我想创建一个索引页
以下导航
仪表板
桌子
用户
设置
如果我点击其中一个他们将留在当前页面,只是用我的包含文件填充身体。
i看到很多人只会制作模板并制作像这个dashboard.php和tables.php这样的php文件还有另一种方法吗?
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?
推荐答案
你的意思是这样的页面:http://webdesignledger.com/inspiration/40-excellent-examples-of-single-page-websites [ ^ ] ?
如果是,您的问题非常混乱。实际上你所描述的是依赖于ajax调用的单页面接口。但它不像你想象的那样 - 或者我认为你想的那样。
所以,要了解这项技术,特别是从客户端的角度来看:http://itsnat.sourceforge.net/php/spim/spi_manifesto_en.php [ ^ ]
有一些引擎可以支持这个。您可以在这里参观: http:// net.tutsplus.com/tutorials/javascript-ajax/important-considerations-when-building-single-page-web-apps/ [ ^ ]。
好的,这一切都可以在服务器端使用php完成,但棘手的部分是客户端。有可能,您需要更多javascript经验和jquery等javascript框架。
如果第一个链接中的样本不像你的意思是,你应该添加一个链接到你原来的帖子,所以我们可以看到。
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.
这篇关于Php导航在一个页面上?可能吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文