I would probably do this on index instead of show. Also, your code to create the gallery should be

<div class="images">

    <?php foreach ($gallery_pics as $pics): ?>

        <?php $picUrl =  image_tag('../uploads/assets/picturegal/' .
$pics->getImage()) ?>
<?php echo $picUrl ?>

    <?php endforeach; ?>

</div>

Disable the the script to see if the images are actually loading on the page.

On 06/15/2010 10:18 AM, el-sid wrote:
hi all,

i am trying to integrate this jquery script into symfony found at:
http://galleria.aino.se/ . however i am coming up with a blank
screen.

i put the javascripts inside /js/galleria folder

then in the showSuccess of my module, i put this

<?php use_javascript('jquery-1.4.2.min.js') ?>
<?php use_javascript('galleria/galleria.js') ?>


<div id="body">


     <?php foreach ($gallery_pics as $pics): ?>

         <?php $picUrl =  image_tag('../uploads/assets/picturegal/' .
$pics->getImage()) ?>

     <div class="images"><?php echo $picUrl ?></div>


     <?php endforeach; ?>
     <script>
             Galleria.loadTheme('../galleria/themes/
galleria.classic.js');
         </script>
<script type="text/javascript">
             $('.images').galleria();
         </script>
</div>


the path in the url is like this: 
http://mydomain:8080/portal_dev.php/gallery/show/id/1

is there a better way to integrate external jquery into symfony??

Thanks..


--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to