Php 在使用laravel中的link_to_操作生成的a标记内添加跨度
我需要在约会垂直菜单旁边以气泡显示新约会的数量。我已经计算了计数,但是使用link_to_操作显示链接,我需要在一个范围内显示计数,该范围应位于a标记内Php 在使用laravel中的link_to_操作生成的a标记内添加跨度,php,html,laravel,hyperlink,Php,Html,Laravel,Hyperlink,我需要在约会垂直菜单旁边以气泡显示新约会的数量。我已经计算了计数,但是使用link_to_操作显示链接,我需要在一个范围内显示计数,该范围应位于a标记内 <?php if(Session::get('side') == 'Appointments'){ ?> <li><?php echo link_to_action('AdminController@anyShowAppointmentList', 'Appointments', $pa
<?php if(Session::get('side') == 'Appointments'){ ?>
<li><?php echo link_to_action('AdminController@anyShowAppointmentList', 'Appointments', $parameters = array(), $attributes = array('class'=>'active')); ?></li>
<?php Session::forget('side'); }
else { ?>
<li><?php echo link_to_action('AdminController@anyShowAppointmentList', 'Appointments', $parameters = array(), $attributes = array()); ?><span class="update-plugins count-$appo"><span class="plugin-count">{{$appo}}</span></span></li>
<?php } ?>
{{$appo}
变量$appo包含计数值。上述代码显示菜单项“约会”下的计数。有人知道如何在使用link to动作形成的“a”标记中显示此跨距吗。好的..我自己解决了。。我补充说
HTML::decode(link_to_action('AdminController@anyShowAppointmentList', 'Appointments<span class="update-plugins count-$appo"><span class="plugin-count">'.$appo.'</span></span>', $parameters = array(), $attributes = array()));
解码(链接到动作)AdminController@anyShowAppointmentList“,”约会“.$appo.”,$parameters=array(),$attributes=array());