# |
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 |
# |
Sep 11th 2009, 16:39 |
il_padrino |
} |
# |
Sep 11th 2009, 16:39 |
il_padrino |
parent::__construct(); |
# |
Sep 11th 2009, 16:39 |
il_padrino |
debug(ini_get('include_path')); |
# |
Sep 11th 2009, 16:39 |
il_padrino |
App::import('Vendor', 'oauth', array('file' => 'OAuth'.DS.'OAuth.php')); |
# |
Sep 11th 2009, 16:39 |
il_padrino |
public function __construct() { |
# |
Sep 11th 2009, 16:39 |
il_padrino |
ifunk, |
# |
Sep 11th 2009, 16:38 |
ifunk |
il_padrino: look into App::import() it's cake way of handling include paths |
# |
Sep 11th 2009, 16:37 |
il_padrino |
this is my out of debug(ini_get('include_path')); |
# |
Sep 11th 2009, 16:36 |
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:36 |
il_padrino |
ifunk, |
# |
Sep 11th 2009, 16:36 |
ifunk |
il_padrino: look into App::import('Vendor', 'SomeLibrary', array('file' => 'some'.DS.'library.php')); |
# |
Sep 11th 2009, 16:35 |
ifunk |
and do something like this in your model's beforeSave: if (isset($this->data[$this->alias]['password_change'])) $this->data[$this->alias]['password'] = Security::hash($this->data[$this->alias]['password_change'], null, true); |
# |
Sep 11th 2009, 16:34 |
il_padrino |
any idea? |
# |
Sep 11th 2009, 16:34 |
il_padrino |
S |
# |
Sep 11th 2009, 16:34 |
il_padrino |
;( my cake isn't include my vendors folder |
# |
Sep 11th 2009, 16:34 |
il_padrino |
i have a problem with include_path |
# |
Sep 11th 2009, 16:34 |
ifunk |
Nathan547: alternatively bypass cake's hashing altogether |
# |
Sep 11th 2009, 16:33 |
il_padrino |
hello |
# |
Sep 11th 2009, 16:33 |
Nathan547 |
ifunk: That's too easy though |
# |
Sep 11th 2009, 16:33 |
jjwdesign |
Internet... I hope not. I don't know what else I'm good at. LOL |