<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://solarphp.org/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://solarphp.org/feed.php">
        <title>Solar Wiki tutorials</title>
        <description></description>
        <link>http://solarphp.org/</link>
        <image rdf:resource="http://solarphp.org/lib/images/favicon.ico" />
       <dc:date>2010-09-07T07:46:25-05:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://solarphp.org/tutorials:generating_models?rev=1219672102"/>
                <rdf:li rdf:resource="http://solarphp.org/tutorials:model_relationship_recipes?rev=1262650282"/>
                <rdf:li rdf:resource="http://solarphp.org/tutorials:model_relationship_reference?rev=1262650004"/>
                <rdf:li rdf:resource="http://solarphp.org/tutorials:router?rev=1219672102"/>
                <rdf:li rdf:resource="http://solarphp.org/tutorials:setting_up_models?rev=1219672102"/>
                <rdf:li rdf:resource="http://solarphp.org/tutorials:solar_app_from_scratch_1?rev=1219672102"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://solarphp.org/lib/images/favicon.ico">
        <title>Solar Wiki</title>
        <link>http://solarphp.org/</link>
        <url>http://solarphp.org/lib/images/favicon.ico</url>
    </image>
    <item rdf:about="http://solarphp.org/tutorials:generating_models?rev=1219672102">
        <dc:format>text/html</dc:format>
        <dc:date>2008-08-25T08:48:22-05:00</dc:date>
        <title>tutorials:generating_models</title>
        <link>http://solarphp.org/tutorials:generating_models?rev=1219672102</link>
        <description>Solar provides a command line interface for generating models from existing database tables. This tutorial will show how to do this, as well as how to automate the process for several tables or an entire database.

Motivation

Solar provides automatic transparent table generation from model classes, however some times it is necessary to generate models from tables. For example, one such circumstance is legacy databases.</description>
    </item>
    <item rdf:about="http://solarphp.org/tutorials:model_relationship_recipes?rev=1262650282">
        <dc:format>text/html</dc:format>
        <dc:date>2010-01-04T18:11:22-05:00</dc:date>
        <title>tutorials:model_relationship_recipes</title>
        <link>http://solarphp.org/tutorials:model_relationship_recipes?rev=1262650282</link>
        <description>These are examples of Solar_Sql_Model relationships. They serve as extractable “recipes” to be combined in different model schemes.

See also: 

	*  Setting up Models and working with them
	*  Model Relationship Reference

Basic ''HasMany'' / ''BelongsTo''


&lt;?php
class Vendor_Model_Layout extends Solar_Model
{
    /**
     *
     * Model setup.
     *
     * @return void
     *
     */
    protected function _setup()
    {
        $this-&gt;_table_name = 'layout';

        $this-&gt;_table_cols =…</description>
    </item>
    <item rdf:about="http://solarphp.org/tutorials:model_relationship_reference?rev=1262650004">
        <dc:format>text/html</dc:format>
        <dc:date>2010-01-04T18:06:44-05:00</dc:date>
        <title>tutorials:model_relationship_reference</title>
        <link>http://solarphp.org/tutorials:model_relationship_reference?rev=1262650004</link>
        <description>See also: 

	*  Setting up Models and working with them
	*  Model Relationship Recipes

`BelongsTo`, `HasMany`, `HasOne` options

 Basic options for all relationships are: 
 'option'   'description'  foreign_name   The name of the related model, eg: user  foreign_key    The name of the foreign join key, eg: user_id 
`HasManyThrough` added option
 'option'         'description'  through_key          The name of the “through” table column for the foreign records.</description>
    </item>
    <item rdf:about="http://solarphp.org/tutorials:router?rev=1219672102">
        <dc:format>text/html</dc:format>
        <dc:date>2008-08-25T08:48:22-05:00</dc:date>
        <title>tutorials:router</title>
        <link>http://solarphp.org/tutorials:router?rev=1219672102</link>
        <description>Router Tutorial

(this is a work in progress)

This tutorial explains basic usage of Tipos_Controller_Router, an extended front controller with built-in flexible routing mechanism. 

Introduction

Tipos_Controller_Router, or the “router controller”, is a class that extends Solar_Controller_Front to provide more flexibility and control for URI's. It allows virtually any URI scheme to be used in Solar apps, “routing” to the right controller and action. Also, it abstracts URI building and f…</description>
    </item>
    <item rdf:about="http://solarphp.org/tutorials:setting_up_models?rev=1219672102">
        <dc:format>text/html</dc:format>
        <dc:date>2008-08-25T08:48:22-05:00</dc:date>
        <title>tutorials:setting_up_models</title>
        <link>http://solarphp.org/tutorials:setting_up_models?rev=1219672102</link>
        <description>See also: 

	*  Model Relationship Reference
	*  Model Relationship Recipes

 Some advice on how to setup models, layout the files, and use them in your application.  I hope this saves you some time in figuring out how the Model and Record classes interact and can make coding a little easier.  First thing to keep in mind is that a Model describes a Table in your database, while a Record is used to describe a single row in your database.</description>
    </item>
    <item rdf:about="http://solarphp.org/tutorials:solar_app_from_scratch_1?rev=1219672102">
        <dc:format>text/html</dc:format>
        <dc:date>2008-08-25T08:48:22-05:00</dc:date>
        <title>tutorials:solar_app_from_scratch_1</title>
        <link>http://solarphp.org/tutorials:solar_app_from_scratch_1?rev=1219672102</link>
        <description>Solar App from Scratch - part 1

First words

This is intended to be a series of tutorials with tricks to work with Solar. At the end we should have a working app, built step by step. Although I may cover some basic Solar topics, it is expected that you have read the official manual and have setup Solar at least once, to see how it is done.</description>
    </item>
</rdf:RDF>
