Tạo mạng xã hội với PHP - part 20
51
lượt xem 6
download
lượt xem 6
download
Download
Vui lòng tải xuống để xem tài liệu đầy đủ
Profiles and Statuses public function addTemplateBit( $tag, $bit, $replacements=array() ) { if( strpos( $bit, 'views/' ) === false ) { $bit = 'views/' . $this-registry-getSetting('view') . '/ templates/' . $bit; } $this-page-addTemplateBit( $tag, $bit, $replacements ); } As mentioned above, we need to take this parameter in the method in the page object; this method also needs to be changed to assign both the template bit and the replacements array with the template tag, and not just assign the template bit with the template tag, as it previously did. This can be achieved by putting the template bit and replacements array...
Chủ đề:
Bình luận(0) Đăng nhập để gửi bình luận!
CÓ THỂ BẠN MUỐN DOWNLOAD