[Solar-talk] HelloAjax
Paul M Jones
pmjones at solarphp.com
Sat Aug 26 14:10:16 PDT 2006
Hi Ben, good to see you. :-)
> I'm am attempting to try the new Ajax HelloWorld demo and am
> running into a few problems. It looks like the browser can't load
> the javascript files.
>
> These files are not found:
> <style type="text/css" media="screen">@import url("/public/Solar/
> styles/default.css");</style>
> <script src="/public/Solar/scripts/prototype/prototype.js"
> type="text/javascript"></script>
> <script src="/public/Solar/scripts/scriptaculous/effects.js"
> type="text/javascript"></script>
> <script src="/public/Solar/scripts/scriptaculous/controls.js"
> type="text/javascript"></script>
>
> Am I supposed to copy the Solar/App/Public/* folder to htdocs/
> public/Solar/ ?
Aliasing or symlinking is the preferred method; e.g.:
$ mkdir /path/to/docroot/public
$ ln -s /path/to/Solar/App/Public /path/to/docroot/public/Solar
This helps two ways:
1. When you upgrade Solar you don't need to re-copy the files.
2. If/when you add your own top-level Vendor directory, you can link
your public resources the same way.
$ ln -s /path/to/Vendor/App/Public public/Vendor
> It looks like the language links are linked to the non-ajax
> version. If I click on one of the languages It redirects to the
> Non-Ajax hello world demo.
I'll check on that, thanks.
--
Paul M. Jones <http://paul-m-jones.com>
Solar: Simple Object Library and Application Repository
for PHP5. <http://solarphp.com>
Savant: The simple, elegant, and powerful solution for
templates in PHP. <http://phpsavant.com>
More information about the solar-talk
mailing list