Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class homeComponents extends sfComponents
- {
- public function executeRadomimage()
- {
- $pictures = glob(sfConfig::get('app_random_image') . '/*.jpg');
- $this->picture_name = $pictures[rand(0,count($pictures)-1)];
- }
- }
Add Comment
Please, Sign In to add comment