Welcome Guest, Not a member yet? Register   Sign In
Can I have more management on my controller by separate functions into classes?
#1
Question 

 created a simple "CMS" with "codeigniter".
I want to know can it separates public functions into a new class?
This is my controller code:



PHP Code:
class Admin extends MY_Controller {
 
   public function __construct(){}
 
   
    
// ---- POST ----
 
   public function addPost(){}
 
   public function editPost(){}
 
   public function deletePost(){}
 
   public function managePosts(){}
 
   
    
// ---- CATEGORY ----
 
   public function addCategory(){}
 
   public function editCategory(){}
 
   ...
    
Reply




Theme © iAndrew 2016 - Forum software by © MyBB