Solar TipsAugust 5th, 2007 @ 1:28 am
I am using the Solar framework for my senior thesis project at school. I think the framework is great but the lack of documentation is extremely frustrating. Maybe once I am done with school I can help contribute to that. But until then, I’ve got 15 days to finish my project, and its not looking good when it takes me 4 hours to figure out what one line of configuration code I am missing. I am going to keep notes on this post of the issues I ran into and what I ended up figuring out. I’ll then try to work it in to some more formal documentation.
Mailing List
The mailing list archive has answered a lot of questions for me, but the link to the page is broken. The archive is here.
Extending Solar_Sql_Model
This class is the active record/ORM implementation in Solar. An abstract class which is extended by your application classes. Great implementation so far, but one little configuration quirk. Add this line to your bootstrap index.php file so it will stop throwing the exception “Solar::ERR_NOT_IN_REGISTRY”
$sql = Solar::register("sql", "Solar_Sql");
Solar_Sql is your database configuration info and it must be manually placed in the registry. Still trying to figure this one out. I’m going to try to check in with someone in IRC tomorrow. Nobody is around right now. Its like they’re sleeping or something…
php · school · solar
