thanks for reply,
i took your advice and put the code on the index and the changed the
<div> tags..however, i notice that if i comment
out these statements:
<?php use_javascript('jquery-1.4.2.min.js') ?>
<?php use_javascript('galleria/galleria.js') ?>
the images show, i am thinking it has something to do with file
paths, especially on the javascript
<script>
Galleria.loadTheme('../galleria/themes/
galleria.classic.js');
</script>
but i dont know how to set it. i have tried ../../../../ on several
levels but nothing
On Jun 15, 9:17 pm, Richard D Shank <[email protected]> wrote:
> 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