This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

integrating galleria into symfony 1.4

Forum to discuss ExtJS and other JS plugins

integrating galleria into symfony 1.4

by el-sid » Tue Jun 15, 2010 8:06 pm

hi all, ok admittedly this is not a plugin but i gather guys here have a lot of experience with jquery:

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
Code: Select all
<?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:
Code: Select all
http://mydomain:8080/portal_dev.php/gallery/show/id/1

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

Thanks..
el-sid
Senior Member
 
Posts: 104
Joined: Sat Sep 19, 2009 7:55 pm
Location: Nairobi, Kenya

Re: integrating galleria into symfony 1.4

by el-sid » Wed Jun 16, 2010 1:13 pm

solved it..it was a problem of paths here
Code: Select all
Galleria.loadTheme('../galleria/themes/galleria.classic.js');



Took me a day to see it with a little help and firebug :D~ :-D~ :grin:
el-sid
Senior Member
 
Posts: 104
Joined: Sat Sep 19, 2009 7:55 pm
Location: Nairobi, Kenya