PinoyTech.org

CodeIgniter, Kohana, Mootools, jQuery and CSS

How To Turn Off Displaying of MySQL Errors in CodeIgniter

Posted by teejay on March 30, 2010

As programmers, showing off sensitive information is a 'no-no'. MySQL errors are one way of non-intentional way of displaying sensitive information. Normally we would fix the problems before they arise but like everything else, you can't be too sure.

Here's what you do to turn off MySQL errors from being shown on screen.

How to Access a Model from another Model

Posted by teejay on March 30, 2010

Accessing models from another model is one question that you hear a lot from new CodeIgniter users. It's actually quite easy and somewhat like loading a user created library in CodeIgniter.

A Simple Mootools Drop Down Menu

Posted by teejay on March 18, 2010

I'm really learning Javascript throught Mootools and as one of my efforts, I tried and succeeded in creating a Mootools Drop Down Menu. Like most Javascript dropdown scripts, it works by simply displaying and hiding unordered lists.

Using Mercurial to Get CodeIgniter 2.0

Posted by teejay on March 17, 2010

Ever since I've been working with CodeIgniter, I've always checked out the SVN, but this year, Ellislab, decided to pull the plugs on SVN and move on the Mercurial for a lot of reasons, namely:

  • some of which becomes heavier in proportion to the distance between team members, and as both your projects and team increase in size
  • Commits and diffs become laborious on even the fastest of networks
  • The size of the repository balloons if you try to use basic features of branches and tagging
  • Renaming and moving files is a pain, and can jam up your fellows’ repositories

This move prompted me to learn Mercurial. So here we go...

Creating A Mootools Plugin for Ajax Form Submissions

Posted by teejay on March 17, 2010

Ajax forms are in right now. I just decided to create a plugin, I've been using for a personal project I am on. It works by stopping the submission event and sending it via AJAX.

List dates between specified dates

Posted by teejay on March 14, 2010

I recently had the need to list dates between specified dates for an application. I created a function for doing some sort of date lister. I just wanted to share it.

Javascript double exclamation point !!

Posted by teejay on March 8, 2010

I spend my time developing applications and have geared most of my time to learn and hopefully 'master' javascript. One of the things I've noticed while reading the Mootools Core source code(Yeah, I'm hard core :p ) is the double exclamation points.

function $chk(obj){
 return !!(obj || obj === 0);
};

What does that mean?

Implementing jQuery Live in Mootools

Posted by teejay on March 8, 2010

If you're like me, I've been wanting to have a jquery live implementation in Mootools for the longest time. Luckily someone from Stackoverflow did it for us.