Re: CakePHP Manual 0.10.x.2460

2006-04-06 Thread Mika
Hi Gustavo, I just tried, but GMail keeps giving me one of those "Oops can't perform" errors. Could you pick it up from the above links for now, and maybe ask phpNut to add me to the group. Webmain is very limited from my company and I only have access to GMail. If that doesn't work then I can't

Re: Creating zip file on the fly

2006-04-06 Thread Mika
Wouldn't this be in a better place as a CakeForge snippet? --~--~-~--~~~---~--~~ 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 gr

Re: A Special Invitation to Join abcphp.com

2006-04-06 Thread Mika
Hehe, good one. Maybe we should all go and bombard them with "if you are looking for a great network..." posts. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to

Re: Interesting complex associations problem

2006-04-06 Thread nate
Wow, that's a tough one. The only thing I can think of is removing three or four associations from $belongsTo, and doing them manually Menu::afterFind( ), which would look something like this (keep in mind, this code is off-the-cuff and completely untested): class Menu extends AppModel { /// ..

Interesting complex associations problem

2006-04-06 Thread josh southern
I have an app that is basically a menu of products. A user selects products in 34 drop-downs, and then it spits out a custom menu in PDF format. I have the associations set up as follows: ///Model 'Enhancement' (excerpt) var $hasMany = array( 'ProductOne' => ar

Re: beforeSave and validationErrors array

2006-04-06 Thread nate
No, beforeSave only runs before the data actually gets saved. If the data doesn't validate, the data doesn't save, and beforeSave isn't called. If you want something that's called regardless of whether or not the data validates, use beforeValidate. Btw, what are you doing with $validationErrors

beforeSave and validationErrors array

2006-04-06 Thread Robson
i set up validationErrors array from my controller $this->User->validationErrors['isCondition']="Check it!"; its done before save() and obviously before beforeSave() (declarewd in app_model) and my beforeSave() method doesnt run at all. Question is: why is that? Shouldnt beforeSave() run anyway?

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

2006-04-06 Thread AD7six
Hi Brandbags, I am SURE this contains errors, as I had to de-couple my own code integration, and after writing it for 3+ hours I thought it best to finish off another day ;). http://wiki.cakephp.org/tutorials:css_menus It is a generic answer which addresses (briefly) one approach on how to defi

Re: $displayField - Displaying multiple fields

2006-04-06 Thread nate
Whether or not $displayField is defined has nothing to do with afterFind. The 2 are completely unrelated. It must be something else you're doing. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. T

Re: $displayField - Displaying multiple fields

2006-04-06 Thread josh southern
I figured it out. The afterFind() only works if there is no $displayField defined. (Is that a bug?) Thanks for the help, Nate and Sam. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to thi

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

2006-04-06 Thread brandags
Thank you. That's what I was wanting to do. Strange that you have to use $this-> and set it from the controller. But it seems to be working fine now. That will simplify things a ton with this submenu stuff. Thanks again. --~--~-~--~~~---~--~~ You received this m

Re: $displayField - Displaying multiple fields

2006-04-06 Thread josh southern
I've got two models, Enhancement and Project, that are associated. I'm trying to get productTitle and productDescription from Enhancement to show in a select box in the views of Project (Yes, they both exist - remember I'm porting this app over, it's already in place): class Enhancement extends A

Re: problem of SQL error in Stage model...

2006-04-06 Thread tylerfab
thanks for your answer , it functions now with your code --~--~-~--~~~---~--~~ 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 grou

Re: Creating zip file on the fly

2006-04-06 Thread shaunster
Ok wiki page has been updated. For the other functionality perhaps its best to make seperate components for each format instead of packings it up into one. Any suggestions? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

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

2006-04-06 Thread Samuel DeVore
On 4/6/06, brandags <[EMAIL PROTECTED]> wrote: @Samuel: Does that mean that if I wanted a special title for my staticpages, I'd need to create an action for them in the pages controller?Or hard code the title into the display() function of the pages controller?  Is just seems that titles other stat

Re: dbacl setup revisited

2006-04-06 Thread Jon Bennett
> One thing I noticed about your paste: > It should be Acl->allow, not acl->Allow. > > Isn't it throwing all kinds of errors, or are those typos? it's not active code, it's all psuedo code to help me get to grips with acl, but it has a big effect on my overall project (well, users/admins etc are

Re: Creating zip file on the fly

2006-04-06 Thread shaunster
Thanks for the feedback gwoo, I'll put the corrections in the wiki file. Anyone interested in updating this component code to merge functionality from the pasted code below I found online? http://cakephp.org/pastes/show/4a5f8fd93141fb5ddec72270b1d75455 It not only supports the creation of zip,

Re: $displayField - Displaying multiple fields

2006-04-06 Thread nate
josh: Hint: the above was an *example*. I have no idea if that in any way reflects your actual data. That's why I asked you to post it. Hopefully that was clear. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cak

Re: problem of SQL error in Stage model...

2006-04-06 Thread nate
Oops --~--~-~--~~~---~--~~ 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] For more opti

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

2006-04-06 Thread brandags
@AD7six: Thanks for the good info. I'll see if I can get a component/element control working submenus. Are you thinking something like: pass in a controller/action combination, and get back the appropriate submenu? @Samuel: Does that mean that if I wanted a special title for my static pages, I'd

Re: problem of SQL error in Stage model...

2006-04-06 Thread nate
Try this: $this->Stage->findAll("Stage.entreprise_id = $id","id,intitule,description") or this: $this->Stage->findAll(array('Stage.entreprise_id' => $id),"id,intitule,description") --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: problem of SQL error in Stage model...

2006-04-06 Thread nate
Try this: $this->Stage->findAll("Stage.entreprise_id = $id","id,intitule,description") or this: $this->Stage->findAll(array('Stage.entreprise_id' => $id),"id,intitule,description") --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: problem of SQL error in Stage model...

2006-04-06 Thread nate
Try this: $this->Stage->findAll("Stage.entreprise_id = $id","id,intitule,description") or this: $this->Stage->findAll(array('Stage.entreprise_id' => $id),"id,intitule,description") --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: $displayField - Displaying multiple fields

2006-04-06 Thread nate
Okay... does your Person model actually have a last_name field?? Can you paste an array of your model data here so I can see what it looks like? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To

problem of SQL error in Stage model...

2006-04-06 Thread tylerfab
I have an error "SQL Error in model Stage: 1052: Column 'entreprise_id' in where clause is ambiguous" I have a stage model array('className' => 'Entreprise'), //'foreignKey' => 'entreprise_id'), 'Contact'

Re: A Special Invitation to Join abcphp.com

2006-04-06 Thread nate
Tell you what: we'll consider it, only if you let us advertise Cake all over your forum, since apparently it's no big deal to advertise your forum in Cake's mailing list. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

Re: dbacl setup revisited

2006-04-06 Thread nate
One thing I noticed about your paste: It should be Acl->allow, not acl->Allow. Isn't it throwing all kinds of errors, or are those typos? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to

Re: $displayField - Displaying multiple fields

2006-04-06 Thread josh southern
I've not ever used a scaffold, actually, as I'm trying to port over an app written procedurally a year ago. Nate, that's exactly what I've done. However, using fields from your example, the $result array doesn't have last_name at all. It throws an error for every record in the set: Notice: Undef

Re: $displayField - Displaying multiple fields

2006-04-06 Thread nate
Also, a note on scaffold: It's for *prototyping* apps, not *building* apps. Subtle difference. If scaffold doesn't natively do something you want it to, that's about the time you actually start building that part of the app. --~--~-~--~~~---~--~~ You received th

Re: $displayField - Displaying multiple fields

2006-04-06 Thread Samuel DeVore
I think he is using the scaffold version which limits the returned fields for the afterSave to look atOn 4/6/06, nate < [EMAIL PROTECTED]> wrote:It is quite simple.  Let's say you have a model called Person, and you want to set up a virtual field called "full_name", which will becomprised of the "f

Re: $displayField - Displaying multiple fields

2006-04-06 Thread nate
It is quite simple. Let's say you have a model called Person, and you want to set up a virtual field called "full_name", which will be comprised of the "first_name" and "last_name" fields. (I will assume you're using generateList to create the select list array.) class Person extends AppModel {

Re: $displayField - Displaying multiple fields

2006-04-06 Thread Samuel DeVore
my guess is that scaffold uses generateList or fields and that it limits the request in that way.  Seems like either you need to file a bug/ enhancement request or move past using scaffolding at this point.  I don't use scaffolding much after the initial pass through the model creation stuff  so I

Re: $displayField - Displaying multiple fields

2006-04-06 Thread josh southern
Sam, for some reason it's only spitting out two fields - the primaryKey and the displayField. I'm accessing it from an associated controller, but nowhere do I specify that I only want those two fields... --~--~-~--~~~---~--~~ You received this message because you

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

2006-04-06 Thread nate
You certainly could, that makes perfect sense. --~--~-~--~~~---~--~~ 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 em

Re: $displayField - Displaying multiple fields

2006-04-06 Thread josh southern
Nate, I've been trying to get two fields to display in a select element for over four hours now, with no success. That's not really simple either - or rapid. It's a common enough issue for me, anyway. Almost every app I've every written has a select box somewhere that displays multiple fields (no

Re: $displayField - Displaying multiple fields

2006-04-06 Thread Samuel DeVore
try doing a debug($results) inside the after find and see what pops outOn 4/6/06, josh southern <[EMAIL PROTECTED] > wrote:I still can't get the afterFind to work. All I want to do isconcatenate two fields into one so that they will be displayed as the $displayField in select boxes, allowing easy a

Re: $displayField - Displaying multiple fields

2006-04-06 Thread josh southern
I still can't get the afterFind to work. All I want to do is concatenate two fields into one so that they will be displayed as the $displayField in select boxes, allowing easy access via generateList. Heres' what I've got: function afterFind($results) { foreach($results as $key=>$Enhanc

Re: Creating zip file on the fly

2006-04-06 Thread gwoo
Nice work Shaun. The code looks vaguely familiar...haha...I use something similar in rdBaker. Your usage should be cleaned up though. var $components = array('Zip'); $this->Zip->addDirectory() Components and Helpers should be CamelCased in the property array. --~--~-~--~~---

Re: Creating zip file on the fly

2006-04-06 Thread shaunster
Ok, the wiki page has been updated. Thanks guys! http://wiki.cakephp.org/docs:components:custom:ziponthefly --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cak

A Special Invitation to Join abcphp.com

2006-04-06 Thread The abcphp.com team
Hello friends, We just wanted to inform you about the website abcphp.com that we have launched to support the PHP developer community. abcphp.com was launched on 1st April 2006 and through this website we hope to help developers who use PHP and its related technologies. Unlike many other PHP comm

Re: dbacl setup revisited

2006-04-06 Thread Jon Bennett
> If I had time to read your whole post, I would. Maybe I'll come back later. hey, cheers Nate - sorry my posts have been so long - quite a concept to get ya head around ACL :) I think I've got it now anyway, which is cool - take a look at http://cakephp.org/pastes/show/d6313ec217073f6d687cb794

Re: $displayField - Displaying multiple fields

2006-04-06 Thread nate
This is hardly a common issue. In fact, this is the first time it's ever come up from anyone. And if we start writing dozens of extra "features" for every random exception to the rule, this will very quickly take the "simple" out of the framework. --~--~-~--~~~---~-

Re: $displayField - Displaying multiple fields

2006-04-06 Thread Samuel DeVore
ok so here is an example of an after find that I havein the model class in question I have function afterFind($results) {        foreach($results as $key=>$Job) {            if (isset($Job['Job']) and ($Job['Job']['myob_id'] == ''))             {                $results[$key]['Job']['myob_id'] = 'n

Re: dbacl setup revisited

2006-04-06 Thread nate
If I had time to read your whole post, I would. Maybe I'll come back later. Hint: The third parameter of Acl->allow should be either create, read, update or delete. If you want to use alternate keys, go into your database and look at the aros_acos table. --~--~-~--~~~-

Re: $displayField - Displaying multiple fields

2006-04-06 Thread josh southern
Just submitted a ticket. Help on the afterFind would be greatly appreciated in the mean-time, though. --~--~-~--~~~---~--~~ 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@g

Re: $displayField - Displaying multiple fields

2006-04-06 Thread josh southern
I'm sorry Samuel, I'm very new to Cake (first app) and relatively new to Object-Oriented Programming. Can you show me how a afterFind function like you have described might look in the model? I've been trying for hours, and I can't get the aggregated field created. If I can't get this to work, I'l

Re: $displayField - Displaying multiple fields

2006-04-06 Thread Samuel DeVore
Is there an open ticket for this in http://trac.cakephp.org/  ?  If not I'd be glad to open one or you could.  This is the best way to get this stuff added or consideredSam D On 4/6/06, josh southern <[EMAIL PROTECTED]> wrote: This shouldn't have to be a work-around. This is a common enough issueth

Re: dbacl setup revisited

2006-04-06 Thread Jon Bennett
ADMIN_APPS Admin Apps (group) -> Users -> News -> Pages -> Store -> Orders ADMIN_USER_LEVELS Admin Users (group) -> browsers (view) -> -> contributors (inherits browsers + create) -> -> -> editors (inherits contributors + edit) -> -> -> -> managers (inherits editors + delete) FRONT_END_CONTENT_

dbacl setup revisited

2006-04-06 Thread Jon Bennett
I've started to make some headway with my dbacl setup, but I'm still somewhat confused (and would really appreciate a heads up as to whether I'm heading in the right direction) details are pasted now… http://cakephp.org/pastes/show/cd00fb524857fe85a2c5d6ce1359baee thanks, jb -- jon bennett

Re: Interesting hasMany associations problem

2006-04-06 Thread josh southern
I found it. Missed a semicolon in an unrelated association variable definition. Thanks for taking a look. This is actually a good example of how to do multiple associations between two models, for anyone browsing. It works great! --~--~-~--~~~---~--~~ You received

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

2006-04-06 Thread Jon Bennett
> Also, (if I didn't make it clear), you'd probably want to have one > Venue per physical location, especially if you're logging all that > information, which could easily vary by location. could you not have: Company hasmany branches area hasMany branches then only the specifics of each branch

Re: $displayField - Displaying multiple fields

2006-04-06 Thread josh southern
This shouldn't have to be a work-around. This is a common enough issue that the $displayField variable in the model definition should just accept multiple fields as it's value, much like the association variables do. Simple issues like this which require a work-around take the "rapid" out of "rap

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

2006-04-06 Thread Samuel DeVore
http://wiki.cakephp.org/faq:how_do_i_set_the_title_of_the_pagesamdOn 4/6/06, Armando Sosa <[EMAIL PROTECTED]> wrote: As far as I Know, views does render before layouts. At least in older versions of cake, I was capable of setting in my view the title for my layout. On 4/6/06, AD7six <[EMAIL PROTE

Re: French who works with cake??

2006-04-06 Thread tylerfab
Re salut a tous Ba ca y est jai creee le groupe cakephp en francais voici le lien venez nombreux pour sentraider http://groups.google.com.vn/group/Cakephp-fra --~--~-~--~~~---~--~~ Vous avez reçu ce message, car vous êtes abonné au groupe Groupes Google "Cake

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

2006-04-06 Thread nate
Also, (if I didn't make it clear), you'd probably want to have one Venue per physical location, especially if you're logging all that information, which could easily vary by location. --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

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

2006-04-06 Thread Armando Sosa
As far as I Know, views does render before layouts. At least in older versions of cake, I was capable of setting in my view the title for my layout.On 4/6/06, AD7six <[EMAIL PROTECTED]> wrote: Hi Brandbags,I don't hold all the answers, but here are my first thoughts:brandags wrote:> How do you> se

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

2006-04-06 Thread nate
My point about the hierarchy was to have a specific breakdown and clear separation between the areas. If there is no overlap between the Areas at the extremities of the tree, then each Venue could only belong to one Area. --~--~-~--~~~---~--~~ You received this m

Re: French who works with cake??

2006-04-06 Thread jeisc
je suis américain et habite à Paris et je suis le développement cakephp depuis un an. Mon français est assez bon. Je pense qu'un group en français pourrait être intéressant. --~--~-~--~~~---~--~~ Vous avez reçu ce message, car vous êtes abonné au groupe Groupes Go

Re: CakePHP Manual 0.10.x.2460

2006-04-06 Thread Gustavo Carreno
On 4/6/06, Mika <[EMAIL PROTECTED]> wrote: > Whoops - that would be 0.10.9.2460 and 0.10.9.2462. Mika, Could you mail me your versions all over so I can include them on the release? And could you do it on a regular basis ? I'll deal with the uploading and stuff, just get me the packages, o

Re: lurking for controler

2006-04-06 Thread AD7six
Hi Gobblez, The dumbed down version of this is in this google thread, 2nd post. The paste, which I now see does exist, is slightly obsolete in the way it is coded - but will still work. I'm not entirely sure where you questions begin :o), so I'll start where I can answer, If I say something you

Re: Cakephp-fra

2006-04-06 Thread [EMAIL PROTECTED]
Merci. JY --~--~-~--~~~---~--~~ 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] For more op

Re: Lang & variables in URL

2006-04-06 Thread AD7six
Hi Vladiq, Try this: http://groups.google.com/group/cake-php/browse_frm/thread/3fa7a83a82915e8e/37e1555b7ec5f07b?q=AD7six+route&rnum=3#37e1555b7ec5f07b Hope it helps, AD7six Looking for CakePHP info? Find it faster here: http://www.cakephp.org/search/ --~--~-~--~~~

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

2006-04-06 Thread AD7six
Hi Brandbags, I don't hold all the answers, but here are my first thoughts: brandags wrote: > How do you > set things like a page and keywords, etc., for specific pages? I added this to my app_controller, and call it in the beforeFilter method: function _setTitles () { $this->set('page', $thi

Lang & variables in URL

2006-04-06 Thread [EMAIL PROTECTED]
How get variables from URL... like this: http://site.com/en/controllers/view In this case, I can get "en" from URL. ($Route->connect ('/*/controllers/lang/*'... or $Route->connect ('/*/controllers/lang'... In case http://site.com/controllers/view/3/5 I get both params... but http://site.com

Re: DBACL aco aro group design

2006-04-06 Thread Jon Bennett
> $aco = new Aco(); > > //Create some access control objects: > $aco->create(1, null, 'Admin Apps'); > $aco->create(2, 'Admin Apps', 'Users'); > $aco->create(3, 'Admin Apps', 'News'); > $aco->create(4, 'Admin Apps', 'Pages'); > $aco->create(5, 'Admin Apps', 'Store'); > $aco->create(6, 'Admin Apps'

Re: acl.php doesnt seem to work

2006-04-06 Thread brandags
There are bugs in the latest release of acl.php Check out this post: http://groups.google.com/group/cake-php/browse_thread/thread/aa36201e1277f4cc --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. T

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

2006-04-06 Thread brandags
Wow, that's too bad. It would seem better if the view were rendered before the layout, and any variables set could apply to it. How do you set things like a page and keywords, etc., for specific pages? Do you have to set them in the controller? That doesn't seem right. And how would that work w

Re: Cakephp-fra

2006-04-06 Thread tylerfab
Oupsj'avais oublie de donner le lien c'est : http://groups.google.com.vn/group/Cakephp-fra Voila A plus Fab --~--~-~--~~~---~--~~ Vous avez reçu ce message, car vous êtes abonné au groupe Groupes Google "Cake PHP" groupe. Pour envoyer des messages à ce group

Cakephp-fra

2006-04-06 Thread tylerfab
Voici un groupe sur cakephp en francais ou tous les posts seront en francais. Ca peut etre sympa pour les anciens membres ou les nouveaux Venez nombreux sur ce groupe aider ou poser des questions Fab --~--~-~--~~~---~--~~ Vous avez reçu ce message, car vous ête

Re: DBACL aco aro group design

2006-04-06 Thread Jon Bennett
On 4/6/06, Jon Bennett <[EMAIL PROTECTED]> wrote: > hi, > > I'm hoping someone with more experience will be able to point me in > the right direction with how to layout my ACO/ARO groups etc. > > What I'm trying to do is use ACL to both control access to different > sections of my admin system (ne

Re: French who works with cake??

2006-04-06 Thread tylerfab
Ouais moi ca fait 8 semaines que jutilise cakephp dans mon stage et je pense que ca pourrait etre interessant de faire un groupe cake php en francais pour les anciens et nouveaux arrivants. je m'en occupe je vous passe le lien des que c'est bon! Fab --~--~-~--~~~---~

Re: lurking for controler

2006-04-06 Thread gobblez
I found it, the paste above got messed up because a ); on at the end of the link! I have a few questions... What does this mean? Can you tell me what it is doing? What is &$this? and where it says "name" below, what does that equal (and how did it get set)? You also used $beforeFilter. I co

Re: separate site and administrator

2006-04-06 Thread gakusei
thomas, You ever figure out how to get a admin route with scaffolding to work? --~--~-~--~~~---~--~~ 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: acl.php doesnt seem to work

2006-04-06 Thread kpanic
same behaviour here, teste on php4 and php5 under debian unstable and debian stable. https://trac.cakephp.org/ticket/640 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send

Re: CakePHP Manual 0.10.x.2460

2006-04-06 Thread Mika
Whoops - that would be 0.10.9.2460 and 0.10.9.2462. --~--~-~--~~~---~--~~ 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, se

Re: CakePHP Manual 0.10.x.2460

2006-04-06 Thread Mika
Updates mine too: * Manual 0.10.9.2640 http://www.box.net/public/felmnrhpsu * Api 0.10.9.2378 http://www.box.net/public/q2fynh1ef8 * Api 0.10.9.2642 http://www.box.net/public/7r2v6osf8l --~--~-~--~~~---~--~~ You received this message because y

DBACL aco aro group design

2006-04-06 Thread Jon Bennett
hi, I'm hoping someone with more experience will be able to point me in the right direction with how to layout my ACO/ARO groups etc. What I'm trying to do is use ACL to both control access to different sections of my admin system (news, products etc) and give a varying access level to a user ni

acl.php doesnt seem to work

2006-04-06 Thread Rehashed
I have successfully set up cake on my OSX workstation, and am able to do pretty much anything. However, the acl.php script doesnt seem to do anything. When i run it as per the guidelines it just appears to exit. I thought this may be due to the php as installed on OSX by default, so I tried the s

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

2006-04-06 Thread Gustavo Carreno
On 4/6/06, zis <[EMAIL PROTECTED]> wrote: > Gustavo, > lol. you win the most perseverant reader award. Thanks !! Could you fax it to my inbox ? ;) -- < If you know Red Hat you know Red Hat, If you know Slackware you know Linux > --~--~-~--~~~---~--~~ You received

Re: Interesting hasMany associations problem

2006-04-06 Thread Mika
Hmm, I've just tried this in PhpEclipse which usually shows syntax errors and it's seems fine. Maybe your best bet is to start taking out each association until it works and they you will be able to find the error? --~--~-~--~~~---~--~~ You received this message b

Re: Interesting hasMany associations problem

2006-04-06 Thread Mika
The error should tell you what line the error is happening on. Check that line out. --~--~-~--~~~---~--~~ 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

Re: Opera /AJAX issues.

2006-04-06 Thread Mika
Actually quite a few do. I know in percentages it looks small, but in numbers there are loads of people. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-ph

Re: Ajax -> Lightox

2006-04-06 Thread Mika
Yeah, the person would need to know that they are available so that they hover over the specified areas. No great usability. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, s

Re: Advanced relationships and recursiveness

2006-04-06 Thread Mika
That's because you have $recursive > 0 - which will load data from any tables associated with FeatureSoftware. The `user` column is probably a used keywork in mysql or something like that. --~--~-~--~~~---~--~~ You received this message because you are subscribed

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

2006-04-06 Thread AD7six
Hi Brandbags, If you are setting a variable in your view, It's too late to be used in your layout. It would be better (as in, it will work ;) ) to put this logic in the controller. Cheers, AD7six Looking for CakePHP info? Find it faster here: http://www.cakephp.org/search/ --~--~-~--

Re: lurking for controler

2006-04-06 Thread AD7six
Hi Gobblez, I'll create a snippet for this code, I didn't realise that pastes have a lifetime until recently. However, the code above already does what you are asking for (I think), just put it in your layout or in an element and call renderElement. Cheers, AD7six Looking for CakePHP info? Fin

Re: lurking for controler

2006-04-06 Thread gobblez
Hi, the cakebin paste is gone. Can anyone help? I need the same thing, add a class="active" to the correct menu item, depending on what the current page is. Or what was last clicked. --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: French who works with cake??

2006-04-06 Thread zis
Je suis bilingue et ca fait quelques semaines que je travaille avec cake.. je ne suis pas encore un expert mais je pourrais aider. zis --~--~-~--~~~---~--~~ Vous avez reçu ce message, car vous êtes abonné au groupe Groupes Google "Cake PHP" groupe. Pour envoyer

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

2006-04-06 Thread zis
Nate, actually, i do have a hierarchy.. i even have three levels: city, area, subarea The one level was to simplify things. But the reason i need to have each venue to be in multiple areas is for multiple branches.. as i said in my first post, there are many mcdonalds in one city.. so the venue mc