Thursday, November 7, 2013

Intel Next Unit of Computing - NUC

http://www.youtube.com/v/TKsYyXa_03o?version=3&autohide=1&showinfo=1&autohide=1&feature=share&autoplay=1&attribution_tag=g_o6IUyl4JWwt6ivLy9y3w

Magento: Change checkout successful page to from 2-col-right to 1 column layout

copy the checkout.xml inside your your theme folder

in the app ->  design -> base -> default -> layout -> checkout.xml


Change the template line#420 to 1column.php

Wednesday, November 6, 2013

alertify.js nice alerts and messages

http://fabien-d.github.io/alertify.js/

its simple to use in yii and magento or any other website

include alertify.min.js and the css files, you are done







Yii set the default sort order

class MyModel extends CActiveRecord {
...

public function search(

          return new CActiveDataProvider($this, array(
              'criteria' => $criteria,
              'pagination' => array(
                  'pageSize' => 100,
              ),
              'sort' => array(
                  'defaultOrder' => 'firstname, lastname DESC',
              )
          ));

About

Blogger templates