Zendesk API Implementation In Codeigniter

Recently I had to implement the Zendesk API for exporting users to Zendesk. First here is the controller file created on this path application/controllers/admin/admin_zendesk.php

Add the following line to application/config/routes.php to access the export_users function

Now you can access the URL http://testdomain.dev/admin/zendesk/export_users or http://localhost/admin/zendesk/export_users to see above code in action. In controller code on line 66, I Continue reading


Pagination URI segments – Codeigniter

After a vast work experience in CakePHP when I had to impliment pagination related task in Codeigniter I ignored one thing and basically it was very important for implementing proper pagination. It is uri_segment configuration of pagination. uri_segment is actualy segments of urls So for example URL for pagination will be like http://example.dev/admin/membership/referels/1/7/10 then set uri_segment to 6

Continue reading