Codeigniter: Creating dynamic graphs using JQuery and FusionCharts
I recently upgraded some of my Codeigniter applications that used OpenFlashCharts to using FusionCharts Free, and at the same time incorporated some javascript to allow me to change the graphs dynamically at the client-side. This has greatly improved the usability of my charts and graphs that I pump out. As such, I thought I would share how I did this and hopefully someone will find it useful as well.
In: PHP Tutorials · Tagged with: charts, codeigniter, jquery
PHP and jQuery: Submit a form without refreshing the page
Lately, I’ve been chancing on quite a number of posts at various places asking about how to perform a web action without the webpage reloading/refreshing? For example, dynamically updating a list on a page without a reload or submitting a form to PHP without leaving the webpage the form sits on.
I guess this is as good a time to start branching into some posts on PHP and Javascript, or more specifically, jQuery.
In: PHP Tutorials · Tagged with: ajax, forms, jquery
Google Analytics officially uses the Asynchronous Tracking tag
Google Analytics tagging is now officially changed to the what Google calls Asynchronous Tracking, which came out of beta last week. The new tracking tag is the default and recommended code to use, and shows up in your Google Analytics’ admin interface.
In: News · Tagged with: google analytics, tagging
PHP Basics: Sorting Arrays
Arrays are wonderful things. I can’t imagine using a programming language that does not have support for arrays. For newbies, arrays might be something that’s difficult to understand at first, but once you get used to it, it’s almost impossible to live without. Guaranteed!
If you are not familiar with what arrays are, visit the PHP manual. Alternatively, there’s a introduction to arrays at developer.com.
In this post, I’m not going to cover the same ground but instead touch on sorting of arrays.
In: PHP Tutorials · Tagged with: arrays, PHP
Google Analytics Master Class is back in Singapore!
Last year, I attended the first ever Google Analytics Master Class held here in Singapore. I had a great time. It was a half day packed with excellent presentations for both existing GA users and new people looking to adopt GA.
Well, come March 9, 2010, its back in Singapore! Not only that, folks in Kuala Lumpur, Malaysia will also get their own Google Analytics Master Class on March 11, 2010
In: News · Tagged with: google analytics
Codeigniter: Handling errors
As coders, I’m sure we all know the value of good error handling. So I thought a quick post about how Codeigniter deals with those pesky errors would be a good post.
The way I see it, there are 2 types of errors we have to work with. The ones which are displayed out in nice friendly text to your users, and the type which are hidden and shown only to you as the coder to figure out where something has gone wrong. CI provides the means to do both, thankfully.
In: PHP Tutorials · Tagged with: codeigniter, errors
Pentaho: A beginner’s perspective
For the last 6 months, I’ve been buried deep in the world of Business Intelligence (or BI for short) and the mind-numbing field that is Data Warehousing and Data Mining. Given that I’m not really a database person, and I only use MySQL with my PHP development, this was a whole new experience for me.
I’m writing this post because when I first laid my eyes on Pentaho, I was confused as hell. What I didn’t know was that Pentaho is not a single product, but a collection of open-source tools that have been meshed together to form a suite for BI. All the documentation and writeup at the website on the different aspects of Pentaho just didn’t gel together, leading to a very steep learning curve.
Hence, I’m just going to briefly cover the various aspects that makes up Pentaho, so that if you are just starting to use Pentaho, this would hopefully give you a good overview.
In: Pentaho · Tagged with: business intelligence, data warehouse, Pentaho
Site Update: 2 years old!
Come December 4th, this site will be 2 years old! How time flies. To mark this occasion, I’ve revamped the look of the site, and will continue to tweak various things in the days ahead.
Read the rest of this post »
In: News · Tagged with: site update
Codeigniter: Intergrating OpenFlashCharts
Yes I know, it has been some time since I last posted anything on the site. Things have just been crazy at work, trying to get up to speed on using Pentaho for a major project. In fact, I might start posting some Pentaho related topics in the future. There’s definitely a need for more help and guides on using Pentaho for beginners.
Anyway, one of the things on the project was to pull data from Pentaho and display it inside OpenFlashCharts on a CI platform. If you don’t know what OpenFlashCharts is, go visit the website. It’s a pretty awesome kit.
There’s been quite a bit of chatter on the net about integrating CI with OpenFlashCharts, but ever since version 2 came out there have been more questions about how to do it.
Read the rest of this post »
In: PHP Tutorials · Tagged with: charts, codeigniter, openflashcharts
Codeigniter: Setting up multiple sites on one install
It’s been awhile since I last posted about Codeigniter. In this post, I’m going to walkthrough how I setup a CI install that can support multiple sites. This is by no means the only way to do it, but it’s what works for me.
CI’s default folder structure is really geared towards one site domain, and having both the application folder and the system folder visible to the browser is not exactly a secure approach.
By configuring your install to support multiple sites, not only do you make the updating of the CI core easier, but also make the CI install more secure as a whole. So without delay, let’s get started…
In: PHP Tutorials · Tagged with: Apache, codeigniter, website
