PHP Freelancer

New WordPress Plugin – IGIT Related Posts With Thumb Image After Posts

04.24.2010 · Posted in Wordpress Plugins

Hello Friends, IGIT Related Posts With Thumb After Posts Plugin is second plugin created by me. By this plugin blog admin can add one widget/section after posts having related posts with thumb image. This plugin also empowers the Blog administrator to place manually related posts widget, Also having options to give related posts number,Display Thumb or not,Set Thumb Width and Height and Main thing it is giving three options to select related posts style – Horizontal, Vertical, Simple Style.

By using this plugin on your blog you can attract your visitors to other related articles of your blog.
(more…)

New DreamHost July Month Coupon Code – 55$ Off

07.15.2010 · Posted in Coupon Codes

Hello Friends, There are so many good hosting services on internet and DreamHost is one of the best hosting service of them. On internet you will found so many coupon codes having 50$ off on hosting of dreamhost or 40$ off on dreamhost hosting but today PHP Freelancer brings you coupon code for dreamhost which is having 55$ off on one year hosting and one domain for one year absolutely free (more…)

How To Get Checked Check Boxes Values By jQuery

07.08.2010 · Posted in jQuery

Hi Friends, Some days ago I was trying to take checked values of checkboxes via jQuery while using jQuery Ajax. I tried to find out on internet about how to get checked checkbox values and I found so many articles but didn’t find any clear code which is working good, So i have  tried it myself by taking reference from jquery site and finally I have done this so I thought to share it with my readers.So below is the explanation how to get checked checkboxes values by jQuery (more…)

CakePHP : How To Get Current URL In View In CakePHP

05.08.2010 · Posted in CakePHP

Hello Friends, Sometimes we want take current URL in cakePHP in view, Today I got current URL for transferring to that URL after log in. I have tried so many things to work it out and finally I got one working way to get current URL in view. We can use $_SERVER variable to get current URL but cakePHP giving its own method to get current URL in view file. It is very easy and it is working perfectly I have used it in my web application and it is working smoothly (more…)

CakePHP : Set More Than One Variable By One $this->set Method In Controller

05.08.2010 · Posted in Uncategorized

Hello Friends, Currently I am working on one CakePHP project and learning so many new things of cakePHP and today while working on one section I learn one new thing in which we can set more than one variable in controller by using only one $this->set method. I wanted to set so many variables in my controller to use it so I have searched that how we can set more than one variable in controller by $this->set method and i found that we can do that by using compact() php method. compact() takes the array you pass into it and looks for variables of the same name as the elements in that array. It then spits out an array of key => value pairs (more…)

CakePHP : How To Not Include Layout In A View

05.08.2010 · Posted in CakePHP

Hello Friends, A layout contains presentation code that wraps around a view. Anything you want to see in all of your views should be placed in a layout.So your every view is wrapped by one layout,If you are not using including layout by $this->layout = ‘layout_name’; than every time it will use default layout, yesterday when I was working on Ajax ,I got one problem in which I don’t want to use any layout in view but it was including default layout, So I have searched on internet about this and hardly find this solution, So I thought to share it on my site (more…)

CakePHP : Load Other Model In Controller

05.08.2010 · Posted in CakePHP

Hello Friends, These days I am totally giving tricks and ideas relates to cakePHP and in this article I will also tell you how to load other model in other controller to use instantly. There are two ways to make available other model in controller, One is $uses variable in controller and other is loadModel function. $uses way is not efficient to make available or to include other model in controller So there is second way by which we can load other model in controller is loadModel function (more…)

Optimize CakePHP Web Application By Element Caching

05.04.2010 · Posted in CakePHP

Hello Friends, I have written some articles relates to element and its use for an application that how cakePHP elements can be useful for web application. Now today I am again want to writing about cakePHP element for web application optimization. As we know that Many applications have small blocks of presentation code that need to be repeated from page to page, sometimes in different places in the layout. CakePHP can help you repeat parts of your website that need to be reused. These reusable parts are called Elements. So when we use reusable elements in any application and that element having any interaction with database to retrieve any thing then it is obvious that every time when that element load with page it interacts with DB to retrieve data, But as elements are reusable parts so we can cache that reusable parts . That means if we use element caching then it will not interact with database eveytime, It will interact first time and after that automatically take from cache, So this thing will not interact with your database eveytime and in this way you can optimized cakePHP application via element caching (more…)

Get Adobe Flash playerPlugin by wpburn.com wordpress themes