On 10/21/06, Robert <[EMAIL PROTECTED]> wrote:
...

1) What exactly is "baking" a application? I have follow the Blog
tutorial and setup my first blog, but then I downloaded the "Building
the Bakery" screen cast and it involves doing something totally
different (like running bake.php, creating folders (the tutorial only
creates files).

What is the difference?

Just creating the files manually (like the blog tutorial) is the long way to get started.  Using bake.php as described in the screen cast automates much of the initial code generation based on your database and your input.  Basically a quick way to get some of the repetitious items that you most likely do when starting all new projects.

The tutorial doesn't use bake.php because well, it is good to learn what is going on first.  Either way can get you to the same place when actually coding the application.
 

2) I was to create an app that has 3 parts (a blog, a guestbook and a
newsletter), users can can view the first two, but only admin can
create new ones). My question is, what exactly is CAKE_ADMIN? Is it
only security through obscurity? I read in one article that you could
password protect /admin/ folder (perhaps using .htaccess, which would
be perfect), was that article correct?

Admin routing is separate from  actually protecting the  admin actions and authentication.  Chapter 4 of the manual  on configuration explains how admin routing works.

http://manual.cakephp.org/chapter/configuration

To get started on actually protecting the  admin methods you can look at the  simple user authentication section in the manual.

http://manual.cakephp.org/appendix/simple_user_auth

To customize this auth system specifically for admin use you can check for the admin parameter being passed to the controller and change your layout, menus, etc.. accordingly.

Once you realize that admin routing and authentication are completely separate it becomes a lot clearer.

HTH



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to