Hi,
I am connecting an API which provides values that are intended to instruct
the consumer on how long to cache a result for. Different API calls have
different cache times (and these cache times may be variable, so setting up
a config for each possible outcome is out of the question).
Give each company a slug so that they're all normalised to lowercase
and sort on that.
This would also allow you to have routes like '/companies/:slug'
On Sat, Oct 13, 2012 at 6:35 PM, Advantage+ movepix...@gmail.com wrote:
I have :
$all[$key] = Set::sort( $master[$key], '{n}.name', 'asc');
Hello i am using 1.3
I am trying to get this format from my array.
array(
'Response' = array(
'Sms' = 'Thank you!',
)
)
response
SmsThank you!/Sms
/response
but after trying (see below) I can't get that output. Is there a way to do
this?
?php
echo $this-Xml-header();
echo
What's the problem exactly? Is it the CDATA block? The ?xml tag?
On Sun, Oct 14, 2012 at 3:08 PM, Robert Gravel rockb...@gmail.com wrote:
Hello i am using 1.3
I am trying to get this format from my array.
array(
'Response' = array(
'Sms' = 'Thank you!',
)
)
response
I do not need the extra CDATA markup . I only need the Response and
Sms open and close tags along with my text
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups
Great suggestion!
Added a slug in the db and made all lower case, sorted that then used
thename to display.
Thanks,
Dave
-Original Message-
From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf
Of lowpass
Sent: Sunday, October 14, 2012 3:21 PM
To:
if we declare a variable inside a model then we are unable to fetch its
value in controller
e.g.
Model M code:
class M extends AppModel
{
var $x;
function setX(){
$this-x = hello;
}
function getX(){
return $this-x;
}
}
controller M code
class M_controller extends AppController{
controller M code
class M_controller extends AppController{
$this-M-setM(); This is wrong. $this-M-setX();
$c = $this-M-getX();
}
On Mon, Oct 15, 2012 at 12:57 AM, Ashish Mahana ashish.mah...@gmail.comwrote:
if we declare a variable inside a model then we are unable to fetch its
value
He's right seems like you made a mistake calling your method with the wrong
name :)
VM
Sent from iPhone smartphone
On 2012-10-14, at 9:54 PM, sutikno sofjan sutikno.sof...@cic.ac.id wrote:
controller M code
class M_controller extends AppController{
$this-M-setM(); This is wrong.