Skitter Slideshow in quickapps cms

46 views
Skip to first unread message

Davide Passoni

unread,
Mar 5, 2013, 6:07:00 AM3/5/13
to quicka...@googlegroups.com
and if you wanted to use skitter helper?
I would like to put it on a page called photo book.
I rename skytter.php in SkitterHelper.php and put in this folder
QuickApps-1.1\QuickApps\View\Helper but after I don't know how to do.
Someone can I help me?

davide
(italy)

Christopher Castro

unread,
Mar 5, 2013, 8:24:01 AM3/5/13
to quicka...@googlegroups.com
There is no need to modify QACMS core, anything within "/QuickApps/*" should remain untouch,
you can easily "extend" the core and use any site-wide helper, component (or any class in general).
there are basically two solutions for this.

SiteApp


---

Site's Hooks

I think this is not in documentation, but you must simply place your Hook classes in the "Hooks" directory.

Site Hook classes are automatically loaded by QuickApps, so if you want your SkitterHelper.php to be loadad you must:
- rename "SkitterHelper.php" -> SkitterHookHelper.php
- move it to "ROOT/Hooks/Helper/"
- clear your cache files in "tmp/cache"

done!
now you can use your helper in any view
$this->SkitterHook->doSomething();




2013/3/5 Davide Passoni <davide...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "QuickApps CMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to quickapps-cm...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Christopher Castro.
Analista Programador Senior PHP/MySQL
Pamplona, España
QuickApps.es
https://github.com/QuickAppsCMS/QuickApps-CMS

Davide Passoni

unread,
Mar 9, 2013, 5:29:51 AM3/9/13
to quicka...@googlegroups.com
thank's. I choice the hook class solution but inside of helper there is a function like this

 function includeFiles() {
        // JS Files
        $out  = '';
        // $out .= $this->Javascript->link('jquery-1.6.3.min');
        $out .= $this->Javascript->link('jquery.animate-colors-min');
        $out .= $this->Javascript->link('jquery.easing.1.3');
        $out .= $this->Javascript->link('jquery.skitter.min');

        // CSS Theme
        $out .= $this->Html->css('skitter.styles');
       
        return $out;
    }

and when I call in my view $this->SkitterHook->includeFiles(); the output tell  me

Error: JavascriptHelper could not be found.

Error: Create the class JavascriptHelper below in file: QuickApps\View\Helper\JavascriptHelper.php

what is the best solution for this?
Where I put javascript e css file?

Thank's for help me!
davide 


2013/3/5 Christopher Castro <ch...@quickapps.es>

Christopher Castro

unread,
Mar 9, 2013, 8:36:23 AM3/9/13
to quicka...@googlegroups.com
Use this two hook callbacks instead:

stylesheets_alter($js_stack)
javascripts_alter($css_stack)



---

About your error:
You are trying to use a helper inside your helper. Check cake's documentation for more information


2013/3/9 Davide Passoni <davide...@gmail.com>
Reply all
Reply to author
Forward
0 new messages