The base uri is '/' in config.php, the below code works very well in 1.3.4.
{{ link_to('javascript:deleteCategory('
cat.getId()')', 'delete', 'class':'btn btn-default') }}</li>
But, in 2.0, phalcon will generate wrong codes:
<a href="/javascript:deleteCategory(118)" class="btn btn-default">deelte</a></li>
There is a slash / before javascript.