Friday, September 26, 2008

Re: Linking to the admin area?

Or just...

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

Cheers,
mbavio

On Sep 26, 12:19 pm, "Gabriel Kolbe" <gko...@gmail.com> wrote:
> S'ok, found the answer..
>
> echo $html->link('Admin Area', '/admin/users/accnt');
>
> On Fri, Sep 26, 2008 at 4:14 PM, gabriel <gko...@gmail.com> 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 cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: