Re: How set value for root parents using tree recover

2009-11-24 Thread Aldo
I'm migrating a tree backend to cake. Unfortunately there are manay functions who depend from this value, as they look for "-1" to identify a root entry. On 24 Nov., 21:50, AD7six wrote: > On 24 nov, 21:48, Aldo wrote: > > > Hello, > > > When using recover t

How set value for root parents using tree recover

2009-11-24 Thread Aldo
Hello, When using recover the parent_id fields for root entries are empty. Is there a way to set a default value like "-1" as parent_id for root items? Thanks Aldo Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. Yo

Re: How set other fieldname for "parent_id" in Tree Behavior

2009-11-13 Thread Aldo
Thanks! That's what I was looking for. On 13 Nov., 16:19, AD7six wrote: > On 13 nov, 16:12, Aldo wrote: > > > I already did, but was not able to find an answer to my question. > > In the Tree behavior documentation there is only mentioned tu use the > > filed nam

Re: How set other fieldname for "parent_id" in Tree Behavior

2009-11-13 Thread Aldo
I already did, but was not able to find an answer to my question. In the Tree behavior documentation there is only mentioned tu use the filed name "parent_id", but not how to change this setting. On 13 Nov., 15:56, AD7six wrote: > On 13 nov, 13:46, Aldo wrote: > > > Hello

How set other fieldname for "parent_id" in Tree Behavior

2009-11-13 Thread Aldo
Hello, I have already a table structure for a tree, where the field "parent_id" has another name. As other functions depend on this name I need to tell Cakes's Tree Behavior in which field it has to look for the parend ID. Any idea how I can achive this? Thanks! Aldo -- Yo

hasMany foreignKey reset when using saveAll()

2009-02-01 Thread Aldo
Key' => 'document_id' ) ); ?> and Thanks for any help. Aldo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send

Bootstrap-technique with CakePHP 1.2.0.5146alpha

2007-06-25 Thread Aldo
o'; require_once 'sb/app/webroot/index.php'; $Dispatcher =& new Dispatcher(); $content = $Dispatcher->dispatch('/controller/action'); Thanks for any help! Aldo --~--~-~--~~~---~--~~ You received this message because you are subscr

Re: Show cake output in normal PHP page

2007-06-13 Thread Aldo
I'm trying with CURL now to get the contents. Is there something more simple? On Jun 13, 12:50 am, Aldo <[EMAIL PROTECTED]> wrote: > Any new idea on this? > > Thanks for any input! > > On Jun 12, 5:40 pm, Felix Geisendörfer <[EMAIL PROTECTED]> wrote:

Re: Show cake output in normal PHP page

2007-06-12 Thread Aldo
content = $Dispatcher->dispatch('/controller/action'); > > -- Felix > --http://www.thinkingphp.orghttp://www.fg-webdesign.de > > Aldo wrote: > > Hello > > > Does anybody know how to show the output from cakephp in a normal PHP > >

Re: Show cake output in normal PHP page

2007-06-12 Thread Aldo
(); > $content = $Dispatcher->dispatch('/controller/action'); > > -- Felix > --http://www.thinkingphp.orghttp://www.fg-webdesign.de > > Aldo wrote: > > Hello > > > Does anybody know how to show the output from cakephp in a normal PHP > &g

Re: Show cake output in normal PHP page

2007-06-12 Thread Aldo
http://www.thinkingphp.org/2006/08/15/the-ultimate-cakephp-bootstrap-... > > Then do: > > $Dispatcher =& new Dispatcher(); > $content = $Dispatcher->dispatch('/controller/action'); > > -- Felix > --http://www.thinkingphp.orghttp://www

Re: Show cake output in normal PHP page

2007-06-12 Thread Aldo
=& new Dispatcher(); > $content = $Dispatcher->dispatch('/controller/action'); > > -- Felix > --http://www.thinkingphp.orghttp://www.fg-webdesign.de > > Aldo wrote: > > Hello > > > Does anybody know how to show the output from cakeph

Show cake output in normal PHP page

2007-06-12 Thread Aldo
website, where this news come from cake. Thanks for any help! Aldo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe

CakePHP on shared hosting

2007-03-30 Thread Aldo Nievas
ow what is this error about? Thanks. Aldo. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group,

How call database from Component?

2007-03-20 Thread Aldo
le where to look $controllerName = $this->controller->name; $output = $this->controller->$controllerName->findAll('id=2'); return $output; } } Thanks for any help! Aldo --~--~-~--~~~---~--~~

Re: Strange findAll Result with complex query

2007-03-08 Thread Aldo
Yes, thats what I ended up with ;-) Thanks! On Mar 8, 2:29 am, "Sergei" <[EMAIL PROTECTED]> wrote: > Idea is simple: > > Use $this->query() to make custom sql queries. Don't mess with > findAll() if you need something complex with grouping, having, cases >

Re: Strange findAll Result with complex query

2007-03-07 Thread Aldo
"$controllerName.id" => "!= $id", "$controllerName.folder" => 0, "$controllerName.prev" => $fileData[0][$controllerName]["prev"]

Re: Strange findAll Result with complex query

2007-03-07 Thread Aldo
ename" => "skyline.jpg") So the problem is not getting the value of 'fullfilename', it's setting the filed 'fullfilename'. Any idea? Thanks! On Mar 7, 1:26 pm, "Sergei" <[EMAIL PROTECTED]> wrote: > You should access it like: > > $fil

Re: Strange findAll Result with complex query

2007-03-07 Thread Aldo
; $findOther = $this->controller->$controllerName- >findAll($queryArray, $fieldArray); I dont know how to access 'fullfilename', defined in the AS statement. Using it as showed in the example i dont get any result. Thanks Aldo On Mar 6, 10:58 pm, "Zoltan&quo

Strange findAll Result with complex query

2007-03-06 Thread Aldo
t; Array ( [id] => 15 [prev] => 1 [filename] => nyc_skyline.jpg [fileExtension] => 0 [folder] => 0 ) [0] => Array (

Re: Install Location / Path problem

2006-08-04 Thread Aldo
Thanks a lot! That works. Aldo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email

Re: Install Location / Path problem

2006-08-04 Thread Aldo
No, I would like to try it without. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMA

Install Location / Path problem

2006-08-04 Thread Aldo
stylesheets and images are not set or wrong. What should i change or set in my configuration? Thanks for any help Aldo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this g