Friday, September 28, 2012

Use session in model

CakePHP way:

 App::import(‘Component’, ‘SessionComponent’);  
 $session = new SessionComponent();  
 $auth = $session->read("Auth.user");  

Normal PHP way:
 $auth=$_SESSION['Auth']['user'];  

Tuesday, September 25, 2012

Credit card for Movie

GSC - Visa 1 for 1

Buy 1 get 1 free ticket and win a 7" Samsung GALAXY Tab with GSC Cinema

Purchase one movie ticket online via www.gsc.com.my with your Maybank Visa card and get another one for free - any class, any day
Valid from 17 September to 31 October 2012

GSC Silver Jubilee Celebration Contest

Win a 7" Samsung GALAXY Tab
Valid from 1 October to 18 November 2012
Eligible cards (for both promotions): Valid for ALL Maybank Visa Debit and Credit cards


Terms and Conditions:

Free ticket is only valid for the same movie screening as the purchased ticket, maximum 2 transactions per day per Visa card.

Applicable across all GSC Outlets within Malaysia, available every day of the week, across all seat classes.

Only available for online purchases.

Contest details are made available on GSC website: http//www.gsc.com.my

For the contest, the judges' decision is final and no correspondence will be entertained

Payment must be settled with Maybank Visa card to enjoy the privileges

Am bank


50% Cash Back at Cathay, GSC, MBO & TGV




- From 15Aug to 15 Dec 2012 and is only applicable to ticket puchases made on weekend
- The 50% cash back is only applicable for cardmember who accumulate a minimum retail spend of RM500 during that month excluding the movie ticket purchase price.
- Cash rebate capped:
* RM 30/month for gold/classic card
* RM50 for Platinum / Signature / World / Infinite Card
- The rebate pool is capped at RM20,000 per month.

Sunday, September 23, 2012

Install phpMyAdmin in Ubuntu (apt-get install)

1.
sudo apt-get install phpmyadmin

2. Configuration
If /etc/phpmyadmin/apache.conf or /etc/apache2/conf.d/phpmyadmin.conf not exist,
symlink /etc/phpmyadmin/apache.conf file to /etc/apache2/conf.d/phpmyadmin.conf.

sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf