Re: How do I create a variable in the view to use in the layout?

2006-04-05 Thread RosSoft
maybe $this->submenu='buymenu', but i think that's bad idea --~--~-~--~~~---~--~~ 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 g

How do I create a variable in the view to use in the layout?

2006-04-05 Thread brandags
I'm trying to get a site working with submenu navigation - when you click a main menu link, the submenus on the side change. Some of the pages are static (in /pages/) folder and some use controllers. I have tried assigning a variable in the view to tell it which submenu I wanted to use for this p

Re: hasAndBelongsToMany vs hasMany & BelongsTo..... (long and boring)

2006-04-05 Thread nate
Personally, I'd start by reorganizing your Areas into a tree hierarchy, i.e. have "Downtown" be the parent Area of "Business District". Then, just have each venue belong to one Area. --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

Re: Ajax -> Lightox

2006-04-05 Thread nate
It looks pretty, but the transitions are kinda lame. Could have done a better job on the UI with the Prev/Next buttons also. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group,

Re: Best way to set up multiple sites with one installation

2006-04-05 Thread Mihailo Stefanovic
> Pear is evil. If you want that kind of upgrade power, use SVN. I know ;) I'd like just the power of "pear upgrade cake", without Cake relying on any other Pear features of classes (if that is possible at all...) > Personally, I put the Cake core and the root vendor folder in one > place, i.e.

Re: Best way to set up multiple sites with one installation

2006-04-05 Thread nate
Pear is evil. If you want that kind of upgrade power, use SVN. Personally, I put the Cake core and the root vendor folder in one place, i.e. /usr/local/web/cake. Then, just go into app/webroot/index.php, and change the CAKE_CORE_INCLUDE_PATH define to '/usr/local/web/cake'. Simple as that. Hop

Re: Opera /AJAX issues.

2006-04-05 Thread nate
Yeah, I would definitely start by validating your pages. The other thing I'd recommend is using $ajax->submit, instead of $ajax->form, since it degrades better. (So just use html->form for generating the form.) Also, no offense of anything, but do people actually use Opera?? --~--~-~-

Interesting hasMany associations problem

2006-04-05 Thread josh southern
I have an app I'm trying to convert to Cake, which basically spits out a menu of products. Therefore, the Menu class (and others) needs to hold many different products in several fields. I do not have a lookup table, because the app written procedurally (sp?) didn't need one. I've tried to set up

Re: Should I use Smarty?

2006-04-05 Thread moto
Using smarty is like taking sand to the beach. Unless you need have inexperienced desiners, PHP is the best template system. brandags wrote: > Good comments. > > I still haven't figured out in Smarty how to use the {include file=""} > function, since templates are separated into separate "view

Re: French who works with cake??

2006-04-05 Thread [EMAIL PROTECTED]
Je regarde avec attention ce qui se passe autour de Cake PHP. J'ai du mal parfois à suivre les échanges en anglais. Il est vrai que cela pourrait sans doute être utile d'avoir un forum dédier aux francais. JY --~--~-~--~~~---~--~~ Vous avez reçu ce message, car v

Re: cake-php-de

2006-04-05 Thread Siegfried Hirsch
Great idea Fabian, Just created: * Gruppenname: CakePHP-de für deutsche CakePHP Entwickler * Gruppen-Startseite: http://groups.google.com/group/cakephp-de * Gruppen-E-Mail-Adresse [EMAIL PROTECTED] for all german speaking CakePHP developers. -- Siegfried --~--~-~--~~--

CakePHP Manual 0.10.x.2460

2006-04-05 Thread Gustavo Carreno
Hi there! New release of your packaged manuals. Grab it at: http://cakeforge.org/frs/?group_id=53&release_id=77 That's all, Gustavo Carreno aka [Batch] -- < If you know Red Hat you know Red Hat, If you know Slackware you know Linux > --~--~-~--~~~---~--~~ You r

New group: cake-php-pt

2006-04-05 Thread Gustavo Carreno
Hy there guys and gals, Has this has becoming a really good fashion, here is the public announcement of a google group for portuguese speaking developers: http://groups.google.com/group/cake-php-pt [EMAIL PROTECTED] Olá pessoal, Como parece que está na moda, e ainda bem, aqui vai o anúncio pú

Re: hasAndBelongsToMany vs hasMany & BelongsTo..... (long and boring)

2006-04-05 Thread Gustavo Carreno
On 4/5/06, zis <[EMAIL PROTECTED]> wrote: > Oh.. and i didn't expect anyone to read the whole post.. i couldn't > even read it to check for mistakes ;) If there is a prize on reading the whole post, where do I claim it ? ;-) -- < If you know Red Hat you know Red Hat, If you know Slackware you kn

Re: Best way to set up multiple sites with one installation

2006-04-05 Thread Mihailo Stefanovic
> I'd still like to hear some opinions, does everyone else do it the > above way? I find it easiest to put cake (#1 on the picture) and vendors folders into pear folder, because it is usually set as default include folder in php.ini (/usr/share/pear on Fedora). That way you don't have to change

French who works with cake??

2006-04-05 Thread tylerfab
It seems to be interesting to create a french group about cakePHP if there are numerous french persons who work with cake Come talk me thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To

Re: Advanced relationships and recursiveness

2006-04-05 Thread Vinicius Pinto
Ok, when I do findAll() it works, but if I specify the fields (passing an array), I get this error: "1054: Unknown column `Request`.user in 'field list'". It seems that Cake make a separated query to request table... On 4/5/06, Vinicius Pinto <[EMAIL PROTECTED]> wrote: > I need some help with ass

cake-php-de

2006-04-05 Thread Fabian Schächter
Hi all,is anyone interesting in an [EMAIL PROTECTED] for german bakers?Greetz  Fabian --~--~-~--~~~---~--~~ 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 T

Re: Flash Movie in Layout Problem

2006-04-05 Thread hydra12
Thanks! That was almost perfect. Here's what worked: $this->base.'/img/banner.swf'; That extra slash at the beginning threw things off. Thanks, gwoo! You're awesome. hydra12 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G

Re: Flash Movie in Layout Problem

2006-04-05 Thread gwoo
'/'.$this->base.'/img/flashmove.swf'; --~--~-~--~~~---~--~~ 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 [EM

Flash Movie in Layout Problem

2006-04-05 Thread hydra12
I'm trying to put a flash movie into my layout. I've put my layout code into views/layouts, and my movie is in webroot/img. Here's the code in my layout: http://www.macromedia.com/go/getflashplayer"; /> The problem seems to

Re: Best way to set up multiple sites with one installation

2006-04-05 Thread spacedz
Thanks. I skimmed through that before and didn't think it was very clear. It would be helpful for them to include a screenshot afterwards instead of before. I'd still like to hear some opinions, does everyone else do it the above way? --~--~-~--~~~---~--~~ You re

Advanced relationships and recursiveness

2006-04-05 Thread Vinicius Pinto
I need some help with associations. My tables: categories: id, name softwares: id, category_id, name features: id, name features_softwares: id, feature_id, software_id, software_version requests: id, feature_software_id, user My models and associations: Category hasMany Software Software belon

Re: Opera /AJAX issues.

2006-04-05 Thread [EMAIL PROTECTED]
Well first of all you should validate your page. You don't even have a doctype !! You also have some tag not closed, etc. Maybe this won't help you, but my main browser is Opera and i have never seen anything in ajax not working, so I don't think this have to do with it. --~--~-~--~~

Re: Creating zip file on the fly

2006-04-05 Thread RosSoft
http://cakephp.org/pastes/show/7a7daf633bc8c502cc98b56f2641c41a --~--~-~--~~~---~--~~ 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 th

Make Money Fast and Easy $$$

2006-04-05 Thread Salty
HOW TO MAKE MONEY INTO $6000 WITH JUST $6 INVESTMENT. REALLY, IT'S NOT A JOKE!! I found this on a bulletin board and decided to try it. A little while back, I was browsing through newsgroups, just like you are now, and came across an article similar to this that said you could make thousands of do

Re: hasAndBelongsToMany vs hasMany & BelongsTo..... (long and boring)

2006-04-05 Thread zis
Thanks AD7six. Nate's reply is exactly the answer i was looking for.. i guess i must have tried searching.. Oh.. and i didn't expect anyone to read the whole post.. i couldn't even read it to check for mistakes ;) zis --~--~-~--~~~---~--~~ You received this mess

Re: hasAndBelongsToMany vs hasMany & BelongsTo..... (long and boring)

2006-04-05 Thread AD7six
Hi Zis, I have to admit that I didn't read your whole post ;o). If you need to add extra data to the link table, then it isn't 'just' a link table any more, and HABTM doesn´t describe the relationship (in a way that cake will automatically undertstand it, anyway). I think Nate's reply in this t

Re: Ajax -> Lightox

2006-04-05 Thread gobblez
I use his lightbox script too, it's great :-) It's got quite a cult following. --~--~-~--~~~---~--~~ 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 uns

Re: Creating zip file on the fly

2006-04-05 Thread Jon Bennett
> Thanks for the feedback guys. Great improvements to the code RosSoft > and Jon Bennett! cheers > Do you want me to update the wiki? I think the > improvements are definately better than the initial code. yeah, please do - though the paste has no expired :( RosSoft, hope you have a local copy

Re: Ajax -> Lightox

2006-04-05 Thread spacedz
Great job, very slick. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED]

Ajax -> Lightox

2006-04-05 Thread Hershel Robinson
> Check this site: http://www.huddletogether.com/projects/lightbox2/ > And download lightbox (using prototype...) Very nice. Really. -- Gallery Robinson Web Services http://web.galleryrobinson.com/ --~--~-~--~~~---~--~~ You received this message because you are s

hasAndBelongsToMany vs hasMany & BelongsTo..... (long and boring)

2006-04-05 Thread zis
Hi, I am currenlty building a directory with cake and have a fairly complex architecture. I'dd like to have your opinion for the best model setup. Here are two of my tables: venues: is the table who holds the list of venues and has the following fields: id, name, description areas: holds the l

Ajax -> Lightox

2006-04-05 Thread [EMAIL PROTECTED]
It's not a question, it's info for all who love to use AJAX technology ;-))) Check this site: http://www.huddletogether.com/projects/lightbox2/ And download lightbox (using prototype...) And you have a very sympatics image preview ;-))) It's so easy, and I think not nessesary to write additiona

Re: Best way to set up multiple sites with one installation

2006-04-05 Thread Daniel Hofstetter
See http://wiki.cakephp.org/tutorials:alternative_installation_locations -- Daniel Hofstetter http://cakebaker.wordpress.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group,

Re: Dynamic swiching of layout in controller

2006-04-05 Thread [EMAIL PROTECTED]
Try use: $this->render('',$layout_name); This - work, and In my case ->layout = $layout_name - does not work too ;( But render work --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to thi

Best way to set up multiple sites with one installation

2006-04-05 Thread spacedz
Hi I'm considering using Cake in a professional environment and we typically have a new site going up every 3-4 weeks. Most will have quite basic functionality and are not very big applications. What's the best way to structure the cake files for this? I assume there's an optimal way to store ea