English 中文(简体)
如何创建以API为中心的应用程序(更具体地说:CoFIgniter中为HMVC)
原标题:How to create an API-centric application (more specifically: for HMVC in CodeIgniter)

Background:

我正在研究一个网络应用程序, 我计划在不远的将来推出iPhone和Android版本, 我对开发供不同前端使用的API有些疑问。

I Started with This:

我读到,其中谈到创建以API为中心的网络应用程序,意思是所有浏览器电话和智能电话都经过API。

尤其令我兴奋的是,

最重要的建筑变化之一是Twitter.com现在是我们自己的API的客户。它从移动网站、我们的iPhone、iPad、Android应用软件以及第三方应用的每一个应用软件的同一端点获取数据。

上述发言反映了我最希望创造的东西。

Then I Saw This:

我发现 < a href=> http:// net. tutsplus.com/tutorics/php/work- with- restful-services- in-codeigniter-2" rel=“不跟随 norefererr” > this TutsPlus 教程 , 其中谈到如何为 CodeIgniter 建立 REST API。 这很好, 因为我正在用 < a href= > 来开发我在 CodeIgniter 中的应用程序。 http:// Codeigniter.com/wiki/ wiki/ Modular_ Extensions_____ HMVC/" rel= nofolverer> > Modual 扩展插件 - HMVC < /a > 。 我认为它对于我来说是完美的。

我有点迷路了,唯一的东西,就是>>似乎http://philsturgeon.co.uk/blog/2009/06/REST-improduction-for-CodeIgniter' rel=>“nofollow noreferrer'>>suggest 来创建 API。他建议完成您所有的前端代码模块,然后在各自目录中为每个模块创建一个API(不一定按此顺序排列 ) 。 如果我不想以API为中心的话,这将很好。

And I Want to Know How to Do This:

我该如何把两个辅导课混在一起:

  • API-centric application that can be used by a browser application as well as separate mobile applications
  • REST API for CodeIgniter (with HMVC modules)

我应:

  • Just follow the API-centric tutorial and try to tailor it to my needs?
  • Follow the CodeIgniter-specific tutorial and use Phil Sturgeon s advice for how to implement it with HVMC?
  • A combination of both?
  • Neither?
最佳回答
问题回答

暂无回答




相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签