Solar Framework Shorts - Replicated MySQL for performance

You 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

What 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

One 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

This 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

http://solarphp.org/discussion

Solar Framework Shorts - Top 10 reasons to use Solar

Here 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

This one is really short and simple

// load the Solar environment
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

Most 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.

Solar Framework Shorts - Extending Solar's Page Controller

Solars 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?

How often do you recompile php?

For what ever reason you compile php from source, or maybe you run pecl/other extensions..

How often do you recompile? Only for major php releases? Or maybe only if a major security issue pops up?

While recompiling during major releases or to cover known security issues in php, these issues don't always track security issues in the libraries that php compile against! How often do you update your OS? When updating do you pay any attention at all to what packages are being updated?

Solar Framework Shorts - Deleting caches

This one is simple but sweet, In your Models directory you define your Models and the basic rules they follow but do you know you can also make changes at the record level..

Syndicate content (C01 _th3me_)