Tag Archives: cakephp

Cakephp – Never empty password in auth component

Replace if (isset($data[$model->alias][$this->fields[‘username’]]) && isset($data[$model->alias][$this->fields[‘password’]])) {

with

if (isset($data[$model->alias][$this->fields[‘username’]]) && !empty($data[$model->alias][$this->fields[‘password’]])) {

In the cake/libs/controller/components/auth.php file

Cakephp Paginate – How to change separator “|”

In your view you just do something like this:

Paginator->prev('<'disabled'));?>
Paginator->numbers(array('separator'=>''));?>
Paginator->next(__('Next', true) . ' >>', array(), null, array('class' => 'disabled'));?>