cakephp - Character limit on a url -
still new cakephp im trying character limit echo.
<h5 class="review_title"><?php echo $html->link($review(substr['review']['title']0,50),$review['review']['viewurl']);?></h5>
trying limit header 50 characters. appreciate help.
thank @juhana after reading array tutorial, figured out did wrong... not reading through entire project. appreciated.
<?php $reviewed = substr($review['review']['title'], 0, 20);?> <h5 class="review_title"><?php echo $html->link($reviewed,$review['review']['viewurl']);?></h5>
cakephp substr
No comments:
Post a Comment