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
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()
{
}
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 =