woensdag 17 december 2008

Automatic inclusion of Javascript in CakePHP

Earlier, I wrote about $scripts_for_layout and I was looking for a solution to automatically load js files into your layout. Well, I think the solution might be in this presentation from Felix Geisendorfer. At slide 20 he starts talking about this.

Has anyone seen this, or did you already try it?

Let us know!

2 opmerkingen:

  1. yup. i've used that a number of times on the last few cakephp projects i have been working on. sure its not DRY but its a fine way of adding a few scripts when you need them specific to certain views only. also if you use this approach, you can use the asset packer helper to combine them all into one script which is great if you are trying to reduce http calls.

    BeantwoordenVerwijderen
  2. Real Casino Guide Here

    [url=http://save.realcasinoguide4u.com/save/glossyexposed/real-casino-guide.htm]real casino guide[/url]


    [url=http://new.realcasinoguide4u.com/naked/cheapnaked/real-casino-guide.htm]real casino ghide[/url]
    [url=http://glossy.realcasinoguide4u.com/safety/porneasy/real-casino-guide.htm]real casino guied[/url]
    [url=http://safety.realcasinoguide4u.com/expensive/youglossy/real-casino-guide.htm]real casaino guide[/url]
    [url=http://cunt.realcasinoguide4u.com/nude/expensiveexposed/real-casino-guide.htm]rael casino guiids[/url]
    [url=http://save.realcasinoguide4u.com/money/moneyexpensive/real-casino-guide.htm]real caasino guide[/url]
    [url=http://naked.realcasinoguide4u.com/glossy/expensivediscover/real-casino-guide.htm]eral casinop guiide[/url]
    [url=http://easy.realcasinoguide4u.com/sex/moneyhealth/real-casino-guide.htm]real casino guide[/url]
    [url=http://glossy.realcasinoguide4u.com/easy/exposedcheap/real-casino-guide.htm]real casjmo guide[/url]
    [url=http://expensive.realcasinoguide4u.com/proven/baresex/real-casino-guide.htm]real casino giude[/url]
    [url=http://class.realcasinoguide4u.com/discover/healthsex/real-casino-guide.htm]real casino guied[/url]
    [url=http://health.realcasinoguide4u.com/proven/sexeasy/real-casino-guide.htm]realk casino ugide[/url]
    [url=http://nude.realcasinoguide4u.com/money/healthnew/real-casino-guide.htm]real casino guide[/url]
    [url=http://nude.realcasinoguide4u.com/save/nudebare/real-casino-guide.htm]real casino guide[/url]
    [url=http://love.realcasinoguide4u.com/results/cheaphealth/real-casino-guide.htm]real casino guiide[/url]
    [url=http://guarantee.realcasinoguide4u.com/save/expensiveexposed/real-casino-guide.htm]realp casino guided[/url]
    [url=http://cunt.realcasinoguide4u.com/naked/sexexpensive/real-casino-guide.htm]real csainop guide[/url]
    [url=http://glossy.realcasinoguide4u.com/health/nudemoney/real-casino-guide.htm]real casnio guijde[/url]
    [url=http://cheap.realcasinoguide4u.com/safety/healthnew/real-casino-guide.htm]real cvasino guise[/url]
    http://cunt.realcasinoguide4u.com/money/youguarantee/real-casino-guide.htm
    http://results.realcasinoguide4u.com/new/guaranteemoney/real-casino-guide.htm
    http://expensive.realcasinoguide4u.com/naked/guaranteediscover/real-casino-guide.htm
    http://naked.realcasinoguide4u.com/nude/healthlove/real-casino-guide.htm
    http://guarantee.realcasinoguide4u.com/money/cheaphealth/real-casino-guide.htm
    http://money.realcasinoguide4u.com/easy/lovemoney/real-casino-guide.htm
    http://expensive.realcasinoguide4u.com/save/healthhealth/real-casino-guide.htm
    http://money.realcasinoguide4u.com/money/resultseasy/real-casino-guide.htm
    http://nude.realcasinoguide4u.com/glossy/lovenude/real-casino-guide.htm
    http://you.realcasinoguide4u.com/nude/guaranteeyou/real-casino-guide.htm


    [url=http://realcasinoguide4u.com]http://realcasinoguide4u.com[/url]http://realcasinoguide4u.com

    BeantwoordenVerwijderen