I'm not sure if I understand exactly what you want, but here goes: if
you want to scaffold your admin_ views but not any of your other
views, I don't think you can (officially). When you scaffold a
controller, it scaffolds everything (I think). What you can do is use
bake to create your basic controllers and views. This builds the
scaffolding for you, and you can then modify the code.
I hope that helps.
hydra12
On Apr 19, 12:07 pm, LLoBu <[EMAIL PROTECTED]> wrote:
> I´m using CAKE_ADMIN to protect admin scaffold.
>
> I don´t know how to use in, for example:
>
> class Travels_Controller extends AppController {
> function index(){
> // show all travels
> }
>
> function show_one($id){
> // controller to show one travel
> }
>
> function admin_travels(){
> // here i´d like scaffolding
> }
>
> }
>
> I´m wasting a lot of time trying to scaffold inside an admin method, I
> hope someone would help me to do this and other sections like fly
> tickets and another.
>
> That´s my opinion, but I´m openmind to other solutions, because it´s
> simple, I just need to show three sections and administrator to
> scaffold them.
>
> Thanks to everyone.
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---