Notes

Jan
19th
10

Integrating a file browser into ckeditor & CakePHP

Although there isn’t a  file browser built into CKEditor, they do have a tool you can download. Unfortunatly they charge for it. Boo.

There are a few alternatives on the web however, so I have selected the best, and integrated it with CkEditor in my cakePHP powerd CMS.
(more…)


Jan
8th
10

aSecondSystem CMS Version 1

dashboardThe new CMS has been built over the last 12 months to provide a robust, powerful content management platform. It primarily focuses on delivering a CMS that imposes no restrictions on design and enabling a competent developer to focus on building the site to the clients requirements and designers dream. not the CMS manufacturers preconceptions.

The admin area of the CMS starts with a dashboard displaying system data including the integrated google Analytics data.
(more…)


Nov
16th
09

Requiring a checkbox to be ticked in ZendFramework

Zend Framework “documentation” dosn’t say much about validating single checkboxes. If you need to do this, say for a terms ang conditions agreement or something, you have to check that the value is greaterthan zero.

To do this, add a validator like this:

 $e =new Zend_Form_Element_Checkbox('tnc');
$e->addValidator('GreaterThan', false, array(0));

And validate your form in the controller as usual

 if ($form->isValid($request->getPost())) {

Thanks to Rob Knight for adding how to do this in the bug tracker. http://framework.zend.com/issues/browse/ZF-5920


Oct
3rd
09

On The Horizon: Frameworks to Watch out for. Recess! Framework Review

kick-assWhilst reading the comments on an article listing the virtues of some of the more known PHP frameworks (Zend, CakePHP, CodeIgnitor and SeaGull) I clicked on a few of the links that are invariably posted by devotees of frameworks i had never even heard about. One that stood out was Recess! built by Chris Jordan, CEO of New Media Creations and former Microsoft employee.
(more…)


Oct
2nd
09

Sub Domains in your Mac / Apache Development Enviroment

If you are like me and work on lots of different sites localy through the day, changing Apache’s path and restarting a can get a little tedious.

Follow these steps to set up subdomains for your local sites.

1. Open httpd.conf found in, for eg, /Applications/Mamp/conf/

Add these lines to the bottom of the file changing the path to your sub domains.

NameVirtualHost *

DocumentRoot /Users/WillBarker/Sites/smbu
ServerName smbu.localhost
 


DocumentRoot /Users/WillBarker/Sites/recess
ServerName recess.localhost

Open up /etc/hosts (its a system file so it is hidden by default in finder, i just open the file in Coda) and add these lines

127.0.0.1 recess.localhost
127.0.0.1 smbu.localhost

Save the file, restart apache, and wamo, you can work on your site at http://recess.localhost