Tagged: codeigniter
Importing data into PyroCMS using Migrations
Posted: December 07, 2011
Category: PyroCMS
Tagged: codeigniter, pyrocms
A client asked me to import a bunch of data from his old CMS into PyroCMS. His old system had insecure passwords and a bunch of data that was tied to the user via the user id. I wrote a Migration to pull the data out of his old tables, register a secure PyroCMS user, and record the user's uploads and other data. Here's how and why...
Removing a module name from the url in PyroCMS or CodeIgniter
Posted: November 14, 2011
Category: PyroCMS
Tagged: codeigniter, pyrocms, pyrocms module
Let's say we are writing a module named "vacations" that will display information about tourist destinations. Sometimes it's desirable to display your urls like: site.com/bahamas instead of site.com/vacations/bahamas. So here's how you can do that in more than one module...
Getting started with custom module development for PyroCMS
Posted: January 31, 2011
Category: PyroCMS
Tagged: codeigniter, pyrocms, pyrocms module, tutorial
To help make the development of PyroCMS modules easier I decided to put together a simple module that could be used for a template.
A simple solution to CodeIgniter CSRF protection and Ajax
Posted: March 16, 2012
Category: CodeIgniter
Tagged: ajax, codeigniter, csrf, pyrocms
We all know that we should enable CSRF protection if we want to make our apps resistent to cross site attacks. But what if we already have an Ajax heavy application with tons of POST requests? Do we want to go through the app and add code to each Ajax request? I don't. Here's a simple solution if you are using jQuery.

