Re: DreamHost and CakePHP?

2007-04-09 Thread neospirit
Hi, I'm really sorry, should've searched the group before posting, not the other way around. But thank you all for answering the question anyway. This is a great community indeed :). Thanks again. Regards, uwie --~--~-~--~~~---~--~~ You received this message bec

Re: DreamHost and CakePHP?

2007-04-05 Thread neospirit
Oops. I've found http://groups.google.com/group/cake-php/browse_thread/thread/306ba0d11463663 e/533102f4a1cc0d09?lnk=gst&q=DreamHost&rnum=1#533102f4a1cc0d09 about DreamHost and CakePHP. Still, if anyone like to share what's the "current situation" of CakePHP based site and DreamHost, please do.

DreamHost and CakePHP?

2007-04-05 Thread neospirit
Hi all, Anyone here currently host CakePHP site with DreamHost? Any issues on deploying CakePHP site? I'd really appriciate any info shared here. I plan to use their service. Regards, Uwie --~--~-~--~~~---~--~~ You received this message because you are subscrib

Re: How to handle multipe hasOne?

2007-01-22 Thread neospirit
Hi Well, sorry, it's me that don't use my sense correctly :). You're right, that's the way it should with the arrays (can't believe myself, wrong code, twice!). But that's assuming you have actual two classes to associate, that is Author, and AssistantAuthor. Check Larry's post. If you had maina

Re: How to handle multipe hasOne?

2007-01-22 Thread neospirit
No, I read it. It's just me. I don't know anything about aliasing in association. My simple understanding that multiple association always have different actual classes. I haven't had the need to use a class for multiple association. Or never realized I need to. Thanks. Nice to know, we can do th

Re: Setting a non "default.thtml" layout for a ''app/view/pages" .thtml file

2007-01-21 Thread neospirit
Hi Andrew, Thanks for the reply. I actually am trying to avoid messing with cake/libs/controller codes. Your way by overwriting pages controller is working fine, but if there's no current cake's elegant workaround on it I'm considering to mimic its functionality by creating a statics controller a

Re: Multiple hasOne in Model and Corresponding View

2007-01-21 Thread neospirit
Hi The code looks right to me. Have you tried print_r($products) - assuming you set your find in controller to 'products' - and see if there's anything beside $products['Product']? How's your db table? Why not having specs as a table with battery, build, etc as the fields and have the model asso

Re: How to handle multipe hasOne?

2007-01-20 Thread neospirit
My bad, I'm not good at fast reading after all. There's some unintentional awful mistakes in my previous post. Thanks to Larry for his post or there'll be a bigger problem for the small problem, never the solution because of me :(. The supposed code: var $hasOne = array('Author' =>

Re: How to handle multipe hasOne?

2007-01-20 Thread neospirit
> 'book' hasOne 'mainauthor' AND 'book' hasOne 'assistantauthor' > >var $hasOne = array('Author' => >array('className'=> 'Author', > 'dependent'=> false, > 'foreignKey' => 'mainauthor_id' >

Setting a non "default.thtml" layout for a ''app/view/pages" .thtml file

2007-01-20 Thread neospirit
Hi all. I need to set the layout for a static page in my "views/pages" to another layout already in my "views/layouts" so it's not going to use the default.thtml one. I've searched the group and found none, and I believe I've missed the part about "views/pages" in manual if there's any. So, is i