make a element that has the admin menu. in your view check the session echo
the element if logged in
dont if not (you could check the user role also)
I can add prefix admin but how than I can access admin
> page...
>
if I understand what your attempting:
to access /admin/pages/index you'd have to make a custom pages controller
with an
admin_index action - and the corresponding view
- S
2008/6/29 maxi <[EMAIL PROTECTED]>:
>
> In core.php I uncomment line "define('CAKE_ADMIN', 'admin');"
> and If I try loading some script I get message "You are seeing this
> error because the private class method admin_index should not be
> accessed directly", becouse I can not access I thing default in
> admin_index, admin_delete, but if I call admin/posts/ view/ I get
> this scripts...I can add prefix admin but how than I can access admin
> page...
> I have menu in admin page fot poll, posts,spotrs, comment, gallery...
>
> How I can setup password for admin menu?
>
> Thank you!!!
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---