On Fri, Aug 10, 2012 at 9:58 AM, Lightee wrote:
> Thanks for your patient replies. Yes, I did read it even a few times but
> cannot be sure if I understand correctly. The problem is there is no sample
> code to test one's understanding.
>
> Router::connect(
> "/:controller/:id",
> array("
Thanks for your patient replies. Yes, I did read it even a few times but
cannot be sure if I understand correctly. The problem is there is no sample
code to test one's understanding.
"edit", "[method]" => "PUT"),
array("id" => "[0-9]+"));
I am guessing that what it means is that the actio
On Thu, Aug 9, 2012 at 4:38 PM, Lightee wrote:
> What if the wanted data to be returned is based on data fields other than
> the id? It is restricting to get data based on id only. Is there some way to
> get data based on other fields of the table?
>
Did you look here:
http://book.cakephp.org/2.0
What if the wanted data to be returned is based on data fields other than
the id? It is restricting to get data based on id only. Is there some way
to get data based on other fields of the table?
The id bit probably means that an id is being sent to the method. A
> view method needs an id to re
On Thu, Aug 9, 2012 at 1:41 PM, Lightee wrote:
> Dear Cakephp gurus,
>
> Router::resourceMap(array(
> array('action' => 'index', 'method' => 'GET', 'id' => false),
> array('action' => 'view', 'method' => 'GET', 'id' => true),
> array('action' => 'add', 'method' => 'POST', 'id' => fals
Dear Cakephp gurus,
I am trying to build web services using CakePHP. The default REST routes
are not suitable for me as add, edit, update, delete are already taken up
for other purposes.
I need to modify the default rates. From
http://book.cakephp.org/2.0/en/development/rest.html,
'index',