How to specify layout once

2007-02-08 Thread Mark Steudel
So I have admin functions in my controller. I can change the layout used by doing: $this-layout = 'admin'; But instead of adding that line in for each of my admin actions I was wondering if there was a way to do it just once. Mark --~--~-~--~~~---~--~~ You

RE: For basic page_controller what is the typical setup

2007-02-05 Thread Mark Steudel
Ok so make my own dynamic page controller. So how about if I want the urls to be: Domain.com/home Domain.com/about Domain.com/projects Etc ... So would I create specific methods in my controller for each of those: e.g. function home() { } function about() { } function projects() { }

Help with associations and scaffolding

2007-02-05 Thread Mark Steudel
So I have a cookbook application with recipes and categories: Recipes id:title:recipe:created_on:category_id Categories id:name I am trying to use bake to setup the associations between the categories and recipes: CATEGORY MODEL class Category extends AppModel { var $name =