Welcome Guest, Not a member yet? Register   Sign In
Poll: Ajax library?
You do not have permission to vote in this poll.
yes
36.73%
18 36.73%
no
51.02%
25 51.02%
maybe
12.24%
6 12.24%
Total 49 vote(s) 100%
* You voted for this item. [Show Results]

[split] Ajax library?
#7

I think we could add some support for outputting JSON/Ajax

I have extended output.php already (MY_Output.php) to provide a "nocache" method and json method.

Then I only need to use $this->output->json($json); in my controller

For the XML's maybe a $this->output->xml($xml); would be nice?

As for the RESTful stuff I have also extended the router to provide additional REST methods (maybe not the best approach for everyone but it's a idea)

For example

class exampleController extends rest_controller {
public function dosometingAction() {} /* default GET */
public function dosomethingPostAction() {}
public function dosomethingDeleteAction() {}
public function dosomethingPutAction() {}
}

I know the route.php config now supports REST but I'm just not into manually adding 8+ methods for every single controller CRUD = Cx3 Rx1 Ux3 Dx1 minimum .

DMyers
Reply


Messages In This Thread
[split] Ajax library? - by paysalkharis - 04-06-2015, 09:19 PM
RE: [split] Ajax library? - by sv3tli0 - 04-06-2015, 10:14 PM
RE: [split] Ajax library? - by albertleao - 04-06-2015, 10:52 PM
RE: [split] Ajax library? - by salain - 04-06-2015, 11:23 PM
RE: [split] Ajax library? - by silentium - 04-06-2015, 11:37 PM
RE: [split] Ajax library? - by nasser.man - 04-07-2015, 12:11 AM
RE: [split] Ajax library? - by dmyers - 04-08-2015, 05:52 AM
RE: [split] Ajax library? - by blocSonic - 04-10-2015, 05:05 PM
RE: [split] Ajax library? - by mwhitney - 04-14-2015, 09:44 AM
RE: [split] Ajax library? - by blocSonic - 04-14-2015, 06:40 PM
RE: [split] Ajax library? - by mwhitney - 04-16-2015, 06:49 AM
RE: [split] Ajax library? - by albert.freeman - 04-13-2015, 03:34 PM
RE: [split] Ajax library? - by sv3tli0 - 04-14-2015, 11:42 PM
RE: [split] Ajax library? - by Razican - 04-20-2015, 03:39 AM
RE: [split] Ajax library? - by PaulD - 04-20-2015, 07:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB