[Solar-talk] new to solar

Rodrigo Moraes rodrigo.moraes at gmail.com
Thu Nov 2 07:10:04 PST 2006


On 11/2/06, s_m_t at libero.it wrote:
> I'm new to solar, and love it by the first sight,
> but I'm missing how the M in MVC is implemented and how it works... can you give me a little clue and point me to the right docs?
> a simple application to inspect is also useful.

Hi,
I'm afraid there are not specific docs for this subject, but here are
some clues:
- Solar has a generic set of database tables (areas, nodes, tags) to
be used by models. A working example is in the Bookmarks app bundled
with Solar.
- 'Models' are, in this implementation, an object that carries the
table scheme definition and helper methods to manipulate the tables -
Solar_Model_Areas, Solar_Model_Nodes, Solar_Model_Tags.
- Solar_Content_Abstract deals with these specific models.
Solar_Content_Bookmarks is a example.

It's very "table-centric", but ready for use.

> solar seems to miss some kind of automated code generator for new projects and "scaffolding" stuff, please let me know if I'm right and the roadmap for such features, if any.

I never saw plans for this, and to be honest  I don't mind because
starting a new Solar app is simple enough already.

I observe some users working to add some flexibility to the model
scheme. I've been working in a a base class to deal with
Row/Rowset/Table and deliver results depending on the needs -
basically because I need to deal with different table schemes than the
ones provided by Solar, and I want to avoid the load of full rows, to
save database resources.

I hope this helps.

rodrigo

---------------------------------------------------------------------
Solar has now a Community Wiki: solarphp.org
---------------------------------------------------------------------
Join the #solarphp IRC channel on freenode.org
---------------------------------------------------------------------


More information about the solar-talk mailing list