On Thu, Aug 9, 2012 at 1:41 PM, Lightee <lightai...@gmail.com> wrote:
> Dear Cakephp gurus,
>
> <?php
> Router::resourceMap(array(
>     array('action' => 'index', 'method' => 'GET', 'id' => false),
>     array('action' => 'view', 'method' => 'GET', 'id' => true),
>     array('action' => 'add', 'method' => 'POST', 'id' => false),
>     array('action' => 'edit', 'method' => 'PUT', 'id' => true),
>     array('action' => 'delete', 'method' => 'DELETE', 'id' => true),
>     array('action' => 'update', 'method' => 'POST', 'id' => true)
> ));
>
> What does 'id'=>false or true means? I cannot find sufficient documentation
> in the API documentation.
>

The id bit probably means that an id is being sent to the method. A
view method needs an id to return the single thing that is being
viewed whereas the index doesn't need one as it returns a list of all
things.

The same for each of the other methods.

Hope this helps.
Mike.

-- 
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+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.


Reply via email to