PostHeaderIcon Smarty PHP

Smarty is a template engine for PHP, very useful for separating logic and layout work is work. The bottom line using Smarty then it’s very easy for us to do to customize the web interface should display website (template) made changes.

The author sometimes confused myself re-layout of each block or the sidebar, because logic and layout are still incorporated into one. example of job logic and layout are still incorporated you can look at the following script:
Read the rest of this entry »

PostHeaderIcon Search Form with cakePHP

how the hell is a way to make the data based on the search form field using the CakePHP Framework?.. actually this discussion will also be discussed at a follow-up edition of CakePHP books (complete with Highlighting techniques). just wait yes its presence. ^^

For instance, we have a table with the name searches with each field as follows:
id | INT | Autoincreament | PrimaryKey
nim | Varchar | 10
the name | Varchar | 100
the city | Varchar | 100
Read the rest of this entry »

PostHeaderIcon Force Download in CakePHP

Below are some script code that might be useful for you whom had tried to do force download in cakePHP.
Okay no more further talking, find it below:

function download($id = null){
$file = $this->Download->findById($id);
$direktori = “files/downloads/”;
$filename = $file['Download']['namafile'];
$extension = strtolower(substr(strrchr($filename,”.”),1));
switch($extension){ Read the rest of this entry »

PostHeaderIcon Within CI, CakePHP and Zend

Within CI, CakePHP, and Zend, three of it had its own benefit and fans, but which one you desire its all about how much you get comfortable with and the main purpose developing the sites.
For more information about the three of it, check it out below:

1. CodeIgniter
impression: perhaps this is the Framework that has the fastest compared to other Framework accessibility.
-Performance in executing the very fast
-Supports PHP4 and PHP5
-Complete Documentation
-Easy to learn (he ‘s).
Read the rest of this entry »

PostHeaderIcon Securing your CI based site

Error reporting might something you face while building site with CI.
It turns out when the application is running and there is an error, then the error is reporting that others still displaying error messages that could be injurious to the application that you have created.

Error reporting what I mean is when an error occurred when accessing the database table you are referring to for example turned out to be no (does not exist or you incorrectly typed in its name), the number of columns does not match the database insert error, etc. then the CodeIgniter will display error which of course took part showing database name and some other information. This will be beneficial when the error is encountered you as an administrator but would harm while viewing this kind of error is visitors or anyone else that we don’t know what it will do with the information he got.
Read the rest of this entry »