# |
Sep 11th 2009, 17:40 |
NetTalk |
<CakeBot> hi, could u please help me out |
# |
Sep 11th 2009, 17:39 |
jjwdesign |
!cakebook |
# |
Sep 11th 2009, 17:39 |
jjwdesign |
!noob |
# |
Sep 11th 2009, 17:38 |
biscazziere |
I have a simple problem when writing a test for my behavior: there is a case when I use trigger_error in the behavior. How can I test if this error is triggered? I tried with $this->expectError('My error msg') but it doesn't seem to work, even if I see the error displayed |
# |
Sep 11th 2009, 17:36 |
NetTalk |
plz help me out if anyone has an idea |
# |
Sep 11th 2009, 17:36 |
NetTalk |
Is there any other way around which let me handle through admin panel |
# |
Sep 11th 2009, 17:35 |
NetTalk |
I have seen the cakephp core way in which webcontents handle through locale folder |
# |
Sep 11th 2009, 17:34 |
NetTalk |
thanks in advance |
# |
Sep 11th 2009, 17:33 |
NetTalk |
how to manage multilanguage web contents through admin panel in Cakephp? just me any reference article about it or suggest me the best way |
# |
Sep 11th 2009, 17:33 |
Valiant64 |
NoReGreT: if it works it works |
# |
Sep 11th 2009, 17:32 |
Valiant64 |
NoReGreT: but, then again. i could list off 5 other ways to read data |
# |
Sep 11th 2009, 17:32 |
NoReGreT |
Valiant64: http://book.cakephp.org/view/336/Creating-Post-Views, i was wondreing about $this->Post->id = $id; |
# |
Sep 11th 2009, 17:32 |
Valiant64 |
NoReGreT: I'd feel more comfortable with just having the id in the read function, and you save a line of code |
# |
Sep 11th 2009, 17:31 |
NoReGreT |
Valiant64: it goes like this $this->set('post', $this->Post->read()); |
# |
Sep 11th 2009, 17:30 |
Valiant64 |
NoReGreT: $this->Post is your static model |
# |
Sep 11th 2009, 17:30 |
Valiant64 |
NoReGreT: where would the data then go |
# |
Sep 11th 2009, 17:29 |
NoReGreT |
so point taken |
# |
Sep 11th 2009, 17:29 |
NoReGreT |
well, i'm following the tutorial to learn |
# |
Sep 11th 2009, 17:29 |
Valiant64 |
NoReGreT: because you are referencing the model |
# |
Sep 11th 2009, 17:29 |
Valiant64 |
NoReGreT: I'm not sure if $this->Post->id = $id is the right way |
# |
Sep 11th 2009, 17:29 |
Valiant64 |
NoReGreT: http://api.cakephp.org/class/model#method-Modelread |
# |
Sep 11th 2009, 17:28 |
NoReGreT |
Valiant64: where i could read more about read() ? where i can find it in api.cakephp.org |
# |
Sep 11th 2009, 17:28 |
NoReGreT |
Valiant64: yeah, since that's what's used in the blog tut. |
# |
Sep 11th 2009, 17:28 |
Valiant64 |
that might work |
# |
Sep 11th 2009, 17:27 |
NoReGreT |
so $this->Post->id = $id ; $var = $this->Post->read(); is the same, right ? |
# |
Sep 11th 2009, 17:26 |
Valiant64 |
NoReGreT: $var['Post']['vargoeshere'] |
# |
Sep 11th 2009, 17:26 |
Valiant64 |
NoReGreT: yup. so then you have ur multi-dim array |
# |
Sep 11th 2009, 17:25 |
NoReGreT |
Valiant64: so it puts that record in $var ? |
# |
Sep 11th 2009, 17:23 |
Valiant64 |
$var = $this->Post->read(null, $id); |
# |
Sep 11th 2009, 17:21 |
NoReGreT |
$this->Post->id = $id just selects that record with the $id, right ? |
# |
Sep 11th 2009, 17:08 |
Scotto |
anyone? |
# |
Sep 11th 2009, 17:03 |
Scotto |
and $params['mimeType'] = 'application/pdf' |
# |
Sep 11th 2009, 17:03 |
Scotto |
its sending the browser text/html |
# |
Sep 11th 2009, 16:53 |
Scotto |
i checked the param settings and made sure the file exists |
# |
Sep 11th 2009, 16:52 |
Scotto |
why would i be gettign a blank page for a media view? |
# |
Sep 11th 2009, 16:41 |
ifunk |
il_padrino: look at the source code for App::import like i have suggested |
# |
Sep 11th 2009, 16:41 |
ifunk |
il_padrino: for every folder |
# |
Sep 11th 2009, 16:41 |
ifunk |
il_padrino: cake does not modify your include path |
# |
Sep 11th 2009, 16:40 |
il_padrino |
/home/stefano/public_html/MT/cake:/home/stefano/public_html/MT/cake/app/:.:/usr/share/php:/usr/share/pear |
# |
Sep 11th 2009, 16:40 |
il_padrino |
but in the output of include_path i don't see vendors in include |
# |
Sep 11th 2009, 16:39 |
il_padrino |
this is my __construct |