I got error message like :
Warning: Missing argument 1 for UsersController::view() in D:\Program
Files\xampp\htdocs\ck\app\controllers\users_controller.php on line 65
Notice: Undefined variable: username in D:\Program
Files\xampp\htdocs\ck\app\controllers\users_controller.php on line 67
The
I got it!
Thanks...
Cause the sequence of the route.php. I should put the following in
the last line.
$Route-connect('/*', array('controller' = 'users', 'action'=
'view'));
Loving Cake!!
--~--~-~--~~~---~--~~
You received this message because you are
Hi, everybakers
I am quite new to use CAKE.
As the title mentioned, I want to make a blog like the rdBloggery. I
download the code for rd.
It do the way like www.example.com/posts/by/usersname. When You type
like, www.example.com/eric. It will show a default page for eric. Like
normal blog
If you already have users_controller. Define new method view.
in routes you will need something like:
$Route-connect('/:username', array('controller' = 'users', 'action'
= 'view'));
and than in your view method, you can get username from url, if
someone go to htt://www.yoursite.com/eric:
What if you have 20 different controllers? Do still want to create 20
routes for each of the controller? How do you add a static page for example:
yoursite.com/eric - dynamic page
yoursite.com/contact - static page
Matt
[EMAIL PROTECTED] wrote:
If you already have users_controller. Define
Check out this article http://bakery.cakephp.org/articles/view/86
Be sure to read the comments to that article. Someone placed an
alternative route example, and that worked better for me, because I had
admin routes enabled. Couldn't get the method in the article to work
with admin routes.