Re: Linking to the admin area?

2008-09-26 Thread mbavio

Or just...

echo $html->link("Admin", array("controller" => "users", "action"
=>"accnt", "admin" => true));

Cheers,
mbavio

On Sep 26, 12:19 pm, "Gabriel Kolbe" <[EMAIL PROTECTED]> wrote:
> S'ok, found the answer..
>
> echo $html->link('Admin Area', '/admin/users/accnt');
>
> On Fri, Sep 26, 2008 at 4:14 PM, gabriel <[EMAIL PROTECTED]> wrote:
>
> > Hi, I have to functions in the user_controller.
> > One is admin_accnt, the other is accnt.
> > How do I link to the admin_accnt ?
> > My link
> > echo $html->link("Admin", array("controller" => "users", "action" =>
> > "admin_accnt"));
>
> > IF I just do
> > echo $html->link("Admin", array("controller" => "users", "action" =>
> > "accnt"));
>
> > I go the the accnt function/view
>
> > IF I go the the admin_accnt I get
> > Error: UsersController::admin_accnt() cannot be accessed directly.
>
> > Help will be appreciated!!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Linking to the admin area?

2008-09-26 Thread Gabriel Kolbe

S'ok, found the answer..

echo $html->link('Admin Area', '/admin/users/accnt');




On Fri, Sep 26, 2008 at 4:14 PM, gabriel <[EMAIL PROTECTED]> wrote:
>
> Hi, I have to functions in the user_controller.
> One is admin_accnt, the other is accnt.
> How do I link to the admin_accnt ?
> My link
> echo $html->link("Admin", array("controller" => "users", "action" =>
> "admin_accnt"));
>
> IF I just do
> echo $html->link("Admin", array("controller" => "users", "action" =>
> "accnt"));
>
> I go the the accnt function/view
>
> IF I go the the admin_accnt I get
> Error: UsersController::admin_accnt() cannot be accessed directly.
>
> Help will be appreciated!!
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Linking to the admin area?

2008-09-26 Thread gabriel

Hi, I have to functions in the user_controller.
One is admin_accnt, the other is accnt.
How do I link to the admin_accnt ?
My link
echo $html->link("Admin", array("controller" => "users", "action" =>
"admin_accnt"));

IF I just do
echo $html->link("Admin", array("controller" => "users", "action" =>
"accnt"));

I go the the accnt function/view

IF I go the the admin_accnt I get
Error: UsersController::admin_accnt() cannot be accessed directly.

Help will be appreciated!!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---