0
我想爲登錄用戶自定義背景圖片。是可以更改動作文件中的bg圖像?是否可以在Symfony 1.4操作文件中設置背景圖像?
$bg_image = $this->getUser()->getBgImage();
/* and here function to change body background image */
???
我想爲登錄用戶自定義背景圖片。是可以更改動作文件中的bg圖像?是否可以在Symfony 1.4操作文件中設置背景圖像?
$bg_image = $this->getUser()->getBgImage();
/* and here function to change body background image */
???
在您的佈局文件(/apps/frontend/templates/layout.php),你可以改變背景圖像的CSS屬性,例如:
<body style="background-image:url ('<?php echo $sf_user->getBgImage(); ?>');">