Welcome Guest, Not a member yet? Register   Sign In
Cannotate - ASP.NET MVC Style Annotations for CodeIgniter
#1

[eluser]TaylorOtwell[/eluser]
Cannotate allows you to add ASP.NET MVC style "Annotations" to your controllers and controller methods.

Code:
/**
* [Authenticate]
*/
public function index()
{
     $this->load->view('user/profile');
}

Code:
/**
* [Has_Role(Admin)]
* [Cache(10)]
*/
public function admin()
{
     $this->load->view('admin/profile');
}

Code:
/**
* [Has_Role(Admin)]
*/
class Admin extends CI_Controller {

     public function index()
     {
          // load the view
     }

}

Source and more details on Github:

https://github.com/taylorotwell/cannotate




Theme © iAndrew 2016 - Forum software by © MyBB