Welcome Guest, Not a member yet? Register   Sign In
Is Codeigniter only focused on web development or also other type of applications?
#1

[eluser]luisvallin[/eluser]
Help!!!!
Is Codeigniter only focused on web development or also other type of applications?
#2

[eluser]dmyers[/eluser]
No I have a simple extension to CI_Router (MY_Router) which add REST services.

https://github.com/dmyers2004/myersd-ci3...Router.php

lines 82-93

Note this is the 3.0 Dev version of codeigniter...

what else were you thinking of?

Oh ya and in config/route.php I have

$route['default_controller'] = 'mainController/indexAction';
$route['404_override'] = '';

/* bring in our admin defaults */
$route['admin/(:any)/(:any)/(:any)/(:any)/(:any)/(:any)/(:any)'] = "admin/$1Controller/$2Action/$3/$4/$5/$6/$7";
$route['admin/(:any)/(:any)/(:any)/(:any)/(:any)/(:any)'] = "admin/$1Controller/$2Action/$3/$4/$5/$6";
$route['admin/(:any)/(:any)/(:any)/(:any)/(:any)'] = "admin/$1Controller/$2Action/$3/$4/$5";
$route['admin/(:any)/(:any)/(:any)/(:any)'] = "admin/$1Controller/$2Action/$3/$4";
$route['admin/(:any)/(:any)/(:any)'] = "admin/$1Controller/$2Action/$3";
$route['admin/(:any)/(:any)'] = "admin/$1Controller/$2Action";
$route['admin/(:any)'] = "admin/$1Controller/indexAction";
$route['admin'] = "admin/dashboardController/indexAction";

/* bring in our defaults */
$route['(:any)/(:any)/(:any)/(:any)/(:any)/(:any)'] = "$1Controller/$2Action/$3/$4/$5/$6";
$route['(:any)/(:any)/(:any)/(:any)/(:any)'] = "$1Controller/$2Action/$3/$4/$5";
$route['(:any)/(:any)/(:any)/(:any)'] = "$1Controller/$2Action/$3/$4";
$route['(:any)/(:any)/(:any)'] = "$1Controller/$2Action/$3";
$route['(:any)/(:any)'] = "$1Controller/$2Action";
$route['(:any)'] = "$1Controller/indexAction";

This gives me

accessController::indexAction()
accessController::newAction()
accessController::newPostAction()
accessController::newAjaxPostAction()
accessController::editAction()
accessController::editPostAction()
accessController::editAjaxPostAction()
etc...

All different Methods on a Controller.




Theme © iAndrew 2016 - Forum software by © MyBB