WordPress - 类别slug里面的另一个PHP代码

I'm using this code to get category slug on categories archive page outside of the loop:

<?php $cat = get_term_by('name', single_cat_title('',false), 'category'); 
echo $cat->slug; ?>

And I would like to know how can I add the result of that code inside 'base' => '/HERE/' of paginate_links php code that looks like this:

<?php echo paginate_links( array( 'current' => $current_paginate_page, 'show_all' =>
true,'prev_next' => false, 'total' => $wp_query->max_num_pages, 'base' => '/HERE/', 
'format' => '%#%' )); ?>

I just don't know how to correctly write it inside another php code. Please help, thank you!

http://wordpress.org/support/topic/single_cat_slug?replies=5 http://codex.wordpress.org/Function_Reference/paginate_links

Hope this will work for you:

'base' => $cat->slug