PinoyTech.org

CodeIgniter, Kohana, Mootools, jQuery and CSS

How to Rename when File Uploading using CodeIgniter

Posted by teejay on October 31, 2009

This would have been something I could have liked to implement when I built, Bargainph - The Buy and Sell website. I just never got to implementing this very easy feature. Instead, I have been relying on the file's filename and CodeIgniter's built-in renaming to duplicate uploaded files.

Continue reading How to Rename when File Uploading using CodeIgniter

 

How to Debug Queries with CodeIgniter

Posted by teejay on October 31, 2009

If you are like me - browsing through the forums almost everyday - you'll probably notice the large number of questions regarding SQL debugging. I try to answer a few depending on the time I have.

Continue reading How to Debug Queries with CodeIgniter

 

Does CodeIgniter Automatically Prevent SQL Injection?

Posted by teejay on October 29, 2009

So, Does CodeIgniter Automatically Prevent SQL Injection?. The answer is no.

SQL Injection, according to wikipedia, "is a code injection technique that exploits a security vulnerability occurring in the database layer of an application".

Continue reading Does CodeIgniter Automatically Prevent SQL Injection?

 

Code Completion with Codeigniter using Netbeans

Posted by teejay on June 18, 2009

Most programmers are lazy. If you're like me, you're lazy too. That's why I was so happy about using code completion with CodeIgniter using the Netbeans IDE.

Continue reading Code Completion with Codeigniter using Netbeans

 

CodeIgniter: Route Everything, except these Controllers

Posted by teejay on June 11, 2009

There was a recent post on the codeigniter forums trying to get urls like these:

http://yoursite.com/your-slug

Continue reading CodeIgniter: Route Everything, except these Controllers

 

Automatically Get the Base URL for CodeIgniter

Posted by teejay on June 3, 2009

Everytime, we set up or move a Codeigniter site, we have to make sure that the base_url in the config file is correctly set.

Someone recently asked in the CodeIgniter forums about this and we came up with something like this

Continue reading Automatically Get the Base URL for CodeIgniter

 

CodeIgniter and The HTML Base Tag

Posted by teejay on June 2, 2009

You learn something 'new' everyday. This isn't exactly new but it's new to me.

Today, at the CodeIgniter forums, xwero posted an alternative to doing the following:

    <?php echo base_url() . 'css/styles.css ?>

Continue reading CodeIgniter and The HTML Base Tag

 

Array Combine in PHP 4

Posted by teejay on May 27, 2009

Coding for PHP 4 is like coding for Internet Explorer 6. You hate it but some people still use it. There are also some things that just don't work.

Continue reading Array Combine in PHP 4