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 [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
-~----------~----~----~----~------~----~------~--~---