In Yii 1.1.3, we use the double slash “//” to locate the partial file starting from the views folder. The example below locates a partial stored in
protected/views/library/_book.php
$this->renderPartial('//library/_book', array('books'=>$books))?>
PHP, LAMP Technologies.end in E-Commerce and Enterprise applications. MySQL, Jquery , AJAX, WordPress, Joomla -Virtuemart, Oscommerce Smarty , Postgres, XML/ XHTML, XSLT, Webservices, Google Maps, JQuery, Apache server Social Networking, Web Services and API development.PHP Frameworks :Zend , symfony , codeignitor , smarty , kohanaDrupal , joomla , wordpress linux administration Expert in Ubuntu , Centos, Fedora, Debian, Red Hat .
protected/views/library/_book.php
$this->renderPartial('//library/_book', array('books'=>$books))?>
thanx.. its very helpful... :)
ReplyDeleteThanks Dude..
ReplyDelete