Solar Framework Shorts - Using Jquery with Solar
Submitted by richard on December 8, 2009 - 2:33amWhen appropriate I will be publishing any code related to these shorts at sfer Solar Framework Extension Repository, all code and examples for this short can be found here.
When it comes to Jquery integration you have 2 main uses. Calling a php function from a website or calling Jquery functions from php both are done through an XMLHttpRequest
Solar Framework Shorts - Replicated MySQL for performance
Submitted by richard on December 4, 2009 - 12:19amYou want to scale your Solar Framework application with minimal amount of work, one way to do this is to use Solars MysqlReplicated adapter. This adapter directs all SELECT related queries to the configured slaves, all other queries and transactions go the the master server.
Frameworks are like Hammers
Submitted by richard on November 23, 2009 - 11:49amWhat Framework is the best? What Framework is the fastest? What Framework is the easiest? All of these questions have been asked or answered by pretty much any programmer that exists but what is the true correct answer?
Solar Framework Shorts - Model to Form the quick way
Submitted by richard on November 15, 2009 - 12:33amOne of the great features of solar concerns auto creation of forms. Not only will Solar auto build a form based on a model record but it will also do basic formatting depending on filters.. For example if $item->states is validation using a list of states then the form generator will create a select box with that list of states to choose from.
Ok, so you now you know how great it is, lets get to the "Short" part of things
Solar Framework Shorts - Talk with the Solar Gods
Submitted by richard on November 11, 2009 - 4:05pmThis is one will be really short..
Solar Gods hang out on IRC – chat channel: #solar-talk at freenode.org
More ways to talk to them can be found
Solar Framework Shorts - Top 10 reasons to use Solar
Submitted by richard on November 9, 2009 - 10:20amHere is a community built list with the top 10 most popular reasons to use Solar Framework, maybe if your not currently using Solar Framework one or two of these items will perk your interest up and get you to take a look.
Solar Framework Shorts - Basic Sql Profiling
Submitted by richard on November 7, 2009 - 11:21pmThis one is really short and simple
require 'Solar.php';
Solar::start('/path/to/config/Solar.config.php');
// configure
$config = array(
'adapter' => 'Solar_Sql_Adapter_Mysql',
'host' => '127.0.0.1',
'user' => 'username',
'pass' => 'password',
'name' => 'database_name',
);
// instantiate
$sql = Solar::factory('Solar_Sql', $config);
$sql->setProfiling(TRUE);
// Do a whole lot of SQL
print_r($sql->getProfile());
Using anything but php to test your new possible hires
Submitted by richard on October 22, 2009 - 12:23amMost companies tend to have some sort of process they go through when hiring php programmers that involve some sort of php code challenge but have you ever considering using other languages to vet your new possible php programmers?
Take a look through your possibles resume and find a language they don't have listed, during the interview carefully verify they don't know this language then ask them to program a extremely simple task in this language! The only resources they can use are online docs for that language.
Do you know were your data is?
Submitted by richard on October 11, 2009 - 7:54pmUnless you have been hiding under a rock lately you have heard that all Sidekick data is currently MIA. You can read a bit more about this here http://www.hiptop3.com/archives/what-caused-the-sidekick-fail/
How can a company that size not have a working backup? Even an OLD backup doesn't seem to exist, they have nothing at all they can use to even semi-restore peoples data!
Solar Framework Shorts - Extending Solar's Page Controller
Submitted by richard on October 5, 2009 - 6:25pmSolars manual has a getting started section that walks you through setting up a basic app, This app extends "Solar_Controller_Page" which handles a lot of the backend work for you.
As you get into your project you will find that pretty much every controller you have needs access to some basic structures and information, how can you ensure these are always available?

