[Solar-talk] Bookmarks example

Rodrigo Moraes rodrigo.moraes at gmail.com
Thu Jun 7 16:37:45 PDT 2007


On 6/7/07, anselm bradford wrote:
> Could someone send me the SQL schema (showing field datatypes) for the
> Bookmarks example app, it does not auto-create it all for me when I
> run the example. Also, is there a username/password set up with that
> example.

This is strange, but I've been using a trick to auto-create the
tables. Put this temporarily in your bootstrap, instead f calling the
front controller:

        $sql = Solar::register('sql', 'Solar_Sql');
        $model = Solar::factory('Solar_Model_Areas');
        $model->fetch(1);
        $model = Solar::factory('Solar_Model_Nodes');
        $model->fetch(1);
        $model = Solar::factory('Solar_Model_Tags');
        $model->fetch(1);

On the first fetch, the tables will be created. I guess there is an
cleaner method, but this is the quick one I used some time ago.

> Also, does anyone know of an example blog and/or wiki app made with
> Solar that has source available?

I don't know of any, although I use a blog app made with Solar which
is evolving to a collaborative system. But it's not public, not
because I don't want, but because it is still a mess. :) Hope we'll
see it and more Solar apps soon. :)

-- rodrigo


More information about the solar-talk mailing list