Hi !

I have an app where user profiles can be found thanks to their username or 
hash as parameter :

public function view($username) { 
>         $user = $this->User->find('first', array(
>          'conditions' => array(
>          "or" => array(
>          'User.hash' => $username,
>          'User.username' => $username
>          )
>          ),
>         ));
>

> $this->set(compact('user')); 

    
>     }


This allows me to find an user with both :

app.com/users/view/username or
app.com/users/view/xdedweZDE654

The problem is that I found that if a user is for example USERNAME, if a 
second user is named UserName, the url app.com/users/view/UserName it will 
still display USERNAME profile... Is there a way to force cake to take into 
account parameter cases ?

Thanks a lot !

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to