Recent Pastes

Pastes found: 2206
03 Jun 2014, 07:02 PM

This is the pop-up flow.

[close]

https://www.youtube.com/watch?v=meCN8hYwK0g
03 Jun 2014, 06:43 PM

This is the pop-up flow.

[close]

http://emberjs.com/
03 Jun 2014, 04:33 PM

This is the pop-up flow.

[close]

http://192.168.1.11:8080/search/false/1-1-0001/03-06-2014/1/1/1/4/%2Fq%C4%91/0/10
02 Jun 2014, 11:20 AM

This is the pop-up flow.

[close]

CakeNumber::format($pay, array('places' => 3,'before' => '','escape' => false,'decimals' => '.','thousands' => '.'
                    ));
28 May 2014, 10:10 AM

This is the pop-up flow.

[close]

$md5 = Security::hash('CakePHP Framework', 'md5', 'my-salt');
28 May 2014, 10:02 AM

This is the pop-up flow.

[close]

'Form' => array(
                'fields' => array('username' => 'email')
            )
28 May 2014, 09:58 AM

This is the pop-up flow.

[close]

public $name = "admin";
	public $layout = "tem-backend";
	public $uses = array();
 
 
	public function beforeFilter() {
        parent::beforeFilter();
        $this->Auth->allow('add');
    }
28 May 2014, 09:20 AM

This is the pop-up flow.

[close]

<?php echo $this->Form->create('Account', array('class' => 'form-login')); ?>
name="data[Account][username]"
28 May 2014, 09:19 AM

This is the pop-up flow.

[close]

public function login() {
		$this->layout = "tem-login";
		if ($this->request->is('post')) {
			if ($this->Auth->login()) {
				return $this->redirect($this->Auth->redirect());
			}
			$this->Session->setFlash(__("<div class='errorHandler alert alert-danger display'><i class='icon-remove-sign'></i> Đăng nhập không thành công.</div>"));
		}
	}
28 May 2014, 09:18 AM

This is the pop-up flow.

[close]

public $components = array(
		'Paginator',
		'Session',
		'Auth' => array(
			'authenticate' => array(
				'Form' => array(
					'userModel' => 'Account',
				 )
			),
			'loginAction'=>array('controller'=>'admin', 'action'=>'login'),
			'loginRedirect' => array('controller' => 'admin', 'action' => 'index'),
			'logoutRedirect' => array(
				'controller' => 'admin',
				'action' => 'login'
			),
	));
Invalid Email or Password