Codeigniter Pagination - Re-use query strings

Aug/24/2012 3 min read by Marco Monteiro

A few months ago I had a problem. I was paginating some results based on some data the user had provided. So I needed to be able to pass that data from page to page during the pagination process. First I set to read the Codeigniter documentation to see if it was possible to do that with the pagination library.

Turns out I could if I set up that data to be a query string and save it in my suffix param. However this solution had a problem. Every-time the user clicked the first or last link on the pagination the query string would disappear.

Read more

Updating your Codeigniter installation with git

Aug/22/2012 4 min read by Marco Monteiro

Ever since Codeigniter moved from Bitbucket to Github I craved for one easy way to update my applications every time a new version gets out. Turns out there is none. And as you can see here, the updating process is always kinda boring specially if a major version is out. Since the version 3.0 is around the block I’m going to show you how I normally upgrade my codeigniter applications.

Read more

My blog now lives at blog.marcomonteiro.net

Aug/10/2012 1 min read by Marco Monteiro

Just dropping by to tell you that I moved my blog from a self hosted wordpress blog to a tumblr blog. And now I’m using a sub-domain for my blog.

The main reason behing this decision was just the fact that I was not happy with my hosting and therefore I’m moving all my stuff away from them.

Tumblr looks like a good free option to me.

ps: I’m sorry if all the feed are going crazy and they apear all marked as unread. That’s because all the posts have a new link now, there’s no need to update your feed though.

Read more

Spark bash helper

Jul/15/2012 2 min read by Marco Monteiro

While chilling around in #codeigniter on freenode, I was talking with Josh Manders aka killswitch about Sparks and he noticed how cumbersome it is, so he set out to learn Bash and started creating this script to make it easier to use Spark.

Read more

Ci-presenter library for Codeigniter

Jun/10/2012 2 min read by Marco Monteiro

For a long time I’ve been using Jamie Rumbelow view presenters and after his presentation at Ciconf (London 2012) I noticed that a lot of people started using his code including my buddy David Wosnitza. After a while David started using the presenters in a even more clever way. He showed me his code and we agreed that it was time to create a library inspired in Jamie’s work.

Read more