The new hotness of 3.1 beta 1 is the concept of Asset Template Engines (ATE if you condense that) which basically allows you to not have to deal with piles-o-files with javascript, css, images, etc. You can still have tons of them, but now you don’t have to figure out how to include them all. [...]
So, I love the ethereal sense of awesome I get from CodeIgniter. It seems to cut out both the convolution (4 letter word) of CakePHP with excellent documentation, and slaughters RubyOnRails by installing to my server sans the brain damage and muscle memory of the command line. CodeIgniter doesn’t force me to use models, which [...]
photo credit: Vagabond Shutterbug If there are things you want to appear on every page of your website, built in CakePHP, you will want to use a layout. I generally use one layout for header, footer, search, and other static elements. You can use multiples, but most of the time you won’t need more than [...]
The HTML helper is pretty useful, here’s how you write a link in a view file: <?php echo $html->link(’click me’, array( ‘controller’=>’users’, ‘action’=>’index’ ) ); ?> The parameters in this are: title (what you actually click on) link location array(controller, action, id (if needed for edit)) (optional) attributes array
$this->set(’posts’,$this->Post->find(’all’)); Typically for an index action, like this (in the controller context): Location: /app/controllers/posts_controller.php <?php class PostsController extends AppController{ var $name = ‘Posts’; function index(){ $this->set(’posts’,$this->Post->find(’all’)); } } ?>