possible to make codeigniter work with another framework?

Posted by ajsie on Stack Overflow See other posts from Stack Overflow or by ajsie
Published on 2010-04-22T19:30:21Z Indexed on 2010/04/22 19:33 UTC
Read the original article Hit count: 151

Filed under:
|
|
|

the situation is this.

my client (who also is a programmer) asks me to develop an address book (with mysql database) with a lot of functions. then he can interact with some class methods i provide for him. kinda like an API.

the situation is that the address book application is getting bigger and bigger, and i feel like its way better to use CodeIgniter to code it with MVC.

i wonder if i can use codeigniter, then in some way give him the access to controller methods.

eg. in a controller there are some functions u can call with the web browser.

public function create_contact($information) {..}

public function delete_contact($id) {..}

public function get_contact($id) {..}

however, these are just callable from web browser. how can i let my client have access to these functions like an API?

then in his own application he can use:

$result = $address_book->create_contact($information); if($result) { echo "Success"; }

$contact = $address_book->get_contact($id);

is this possible?

cause i just know how to access the controller methods with the webbrowser. and i guess its not an option for him to use header(location) to access them.

all suggestions to make this possible are welcomed!

thanks

© Stack Overflow or respective owner

Related posts about php

Related posts about codeigniter