Re: how to include new actions in ACL?

2010-07-23 Thread matsakaw
many thanks to both of you. follow up question : after i re-ran build_Acl, i noticed that both build_Acl and initDB are now records in the acos table (although i am not sure if those were already there even before the re-run). is that ok? i mean, i shouldn't be worried from a security

adding additional jquery functionality on cake 1.3

2010-07-23 Thread Jon Chin
I followed the tutorial for getting Jquery set up on Cake 1.3, but now I'm having trouble getting Jquery plugins to work. I haven't been able to find any webpages or tutorials for this, so I'm asking here. I think what I need to do is somehow get the code for the plugin to get added to the

unbindModel not working

2010-07-23 Thread lazlo2019
Hi I'm trying use unbindModel() as per below inside a Basket model (which hasMany BasketItem) $this-unbindModel(array('hasMany' = array('BasketItem'))); return $this-find('first', array('conditions' = array( 'Basket.id' = $this-_getBasketID() ))); The result of the find() I would not expect

Re: Models, joins and forms

2010-07-23 Thread Joachim Nyqvist
No need to apologize about language. I was just lazy, so I didn't translate, I just wanted to show which columns where corresponding. Thanks for the answer. I will certainly look into this in detail when I have a little more time over. You're definitely right about dropping the join-table. As

Re: Catch Debug Messages

2010-07-23 Thread keymaster
The right approach, I think, might be to ask Mark Story to include a debug info panel in his debugKit toolbar, or alternatively use fireCake to send it to the firefox console. Here is the debugKit lighthouse page. You may want to open an enhancement ticket (or develop it yourself and submit it).

Re: contain param ignored

2010-07-23 Thread Alex Payne
You probably just need to set the model to be containable. i.e. $this-ModelName-Behaviors-attach('Containable'); var $paginate = array( 'limit' = 10, 'page' = 1, 'order'=array('Site.sort_order' = 'ASC'), 'fields' = array('*'), 'contain' = array(

Baking models with prefixes

2010-07-23 Thread Andrei Mita
Hello, I was wandering if it's possible to bake models with prefixes. I searched on Google but nothing relevant came up. In the same db I have tables starting with app_, mer_, hd_ and many more. Is it possible to bake models with the appropriate prefixes or should I bake them and then manually

ACL and find all

2010-07-23 Thread marco.rizze...@gmail.com
Hi I use ACL to control access to model Post made by User. Now I have to find all or paginate all posts that are accessible by a specific user. How can I use ACL inside find operation to do this? Many Thanks Marco Check out the new CakePHP Questions site http://cakeqs.org and help others with

Re: Multiple login forms submitting to one login action

2010-07-23 Thread tersmitten
I already found the solution myself. It was because of the stupid pages controller :-( http://stackoverflow.com/questions/3302798/multiple-login-forms-submitting-to-one-login-action On 22 jul, 19:05, cricket zijn.digi...@gmail.com wrote: On Wed, Jul 21, 2010 at 3:02 PM, tersmitten

Re: Models, joins and forms

2010-07-23 Thread Joachim Nyqvist
I figured it out. I'm suppose to put the belongsTo in the models not the controllers. On 23 Juli, 13:10, Joachim Nyqvist joac...@jnyqvist.se wrote: Ok. I have changed the tables and these are my files: ?php /**  * @property Merit $Merit  */ class Merit extends AppModel {     var $name =

Re: adding additional jquery functionality on cake 1.3

2010-07-23 Thread Norman Paniagua
I dont know what exactly you want, but maybe this can help you http://snipt.net/chrisyour/cakephp-content_for-capture-html-block-for-layout/ Its the content_for function of rails for cake, its very useful to add content to the head of the layout or maybe other thinks to the layout itself ---

HABTM and foreign keys on delete cascade

2010-07-23 Thread Mariano C.
I have the usual example about books and authors. I have followed CakePHP naming convention and I'm on MySQL without InnoDB so I can't write foreign key constraints directly on db. I have 3 tables authors, books and authors_books. The last table has 3 fields: id as PK, author_id and book_id. Two

string validation roll(i need some idea)

2010-07-23 Thread hoss7
i have 4 user kind user 1: can only enter 400 character user 2: can only enter 1600 character user 3: can only enter 1 character user 4: no validation roll i need some best idea to create validation roll Check out the new CakePHP Questions site http://cakeqs.org and help others with their

CakePHP 1.3 Multiple checkbox setting div to false not working

2010-07-23 Thread spheroid
I am using the Tree behavior successfully but need to output to checkboxes. When I set the 'div' to false, there are still divs wrapped around each item. I've even set a form default to have the div's as false. That works for other fields in my form but not the checkboxes! Not sure why? Goal:

Validate against two models from one controller

2010-07-23 Thread Papa_Gateau
Hi I'm using cake 1.1 and am fairly new to it - I've inherited a fairly complex application which I have been tasked with updating. My problem/situation is this: I have a registration form which takes input and updates a User table. However, there are certain fields that need to be captured

Re: cake_1.2.3.8166 and AdminAuth

2010-07-23 Thread simon...@terra.com.br
I did find the solution: http://book.cakephp.org/view/172/Authentication simon...@terra.com.br escreveu: Good Night, I'm trying to make the AdminAuth component work on cake_1.2.3.8166. I did uncomment Configure::write('Routing.admin', 'admin'); on line 67 of the file app/config/core.php.

Re: ACL and find all

2010-07-23 Thread marco.rizze...@gmail.com
Have anyone some suggestions about this? On 23 Lug, 13:58, marco.rizze...@gmail.com marco.rizze...@gmail.com wrote: Hi I use ACL to control access to model Post made by User. Now I have to find all or paginate all posts that are accessible by a specific user. How can I use ACL inside find

Re: CakeFest 2010 - Last chance for cheap tickets!

2010-07-23 Thread Graham Weldon
Just a reminder that today is the last day of Early Bird ticket sales for the CakeFest 2010 conference. If you want to take advantage of these prices, you need to purchase your tickets today! If anyone has any questions about the event or needs some more information about ticket purchase, please

Re: contain param ignored

2010-07-23 Thread cricket
On Fri, Jul 23, 2010 at 7:12 AM, Alex Payne alex.morese...@gmail.com wrote: You probably just need to set the model to be containable. i.e. $this-ModelName-Behaviors-attach('Containable'); No, Containable is set in AppModel. Thanks. Check out the new CakePHP Questions site http://cakeqs.org

Re: CakeFest 2010 - Last chance for cheap tickets!

2010-07-23 Thread mike karthauser
hi graham on the cakefest site it says 1st of august for the end of the early bird tickets. http://cakefest.org/ticket-info seems a bit cruel having cut off today when its it looks like theres another week? btw whats the prices going up to? mikek On 23 Jul 2010, at 17:50, Graham Weldon

Re: adding additional jquery functionality on cake 1.3

2010-07-23 Thread cricket
On Fri, Jul 23, 2010 at 3:13 AM, Jon Chin port23u...@gmail.com wrote: I followed the tutorial for getting Jquery set up on Cake 1.3, but now I'm having trouble getting Jquery plugins to work.  I haven't been able to find any webpages or tutorials for this, so I'm asking here.  I think what I

Re: Validate against two models from one controller

2010-07-23 Thread cricket
On Fri, Jul 23, 2010 at 8:35 AM, Papa_Gateau stu...@notoriety.co.uk wrote: Hi I'm using cake 1.1 and am fairly new to it - I've inherited a fairly complex application which I have been tasked with updating. First thing: consider upgrading the app immediately, rather than adding even more

Re: string validation roll(i need some idea)

2010-07-23 Thread cricket
On Fri, Jul 23, 2010 at 10:14 AM, hoss7 hoss...@gmail.com wrote: i have 4 user kind user 1: can only enter 400 character user 2: can only enter 1600 character user 3: can only enter 1 character user 4: no validation roll i need some best idea to create validation roll Are you checking

Re: ACL and find all

2010-07-23 Thread cricket
On Fri, Jul 23, 2010 at 7:58 AM, marco.rizze...@gmail.com marco.rizze...@gmail.com wrote: Hi I use ACL to control access to model Post made by User. Now I have to find all or paginate all posts that are accessible by a specific user. How can I use ACL inside find operation to do this? Many

Re: CakeFest 2010 - Last chance for cheap tickets!

2010-07-23 Thread Kirk
Free iPad?! It sounds like spam but it's not! :-) On Fri, Jul 23, 2010 at 1:40 PM, mike karthauser mi...@brightstorm.co.ukwrote: hi graham on the cakefest site it says 1st of august for the end of the early bird tickets. http://cakefest.org/ticket-info seems a bit cruel having cut off

Again, the v 1.3.3 rocks but...

2010-07-23 Thread Abraham Boray
I'm working on a project, which requires to do some file upload, this last task works fine (I included a plugin) But when it comes to the callback function after a delete for example of a record, it doesn't work for some unknown reasons! Example. After a delete of an image record from the

Re: Again, the v 1.3.3 rocks but...

2010-07-23 Thread Abraham Boray
OOOps sorry guys, i have done a mistake Actually the beforeSave function is like this, I was just testing it that way(we never know, if it will work :D ) function beforeSave() {// Correct one, but not working as well :( exit();//stop the execution, just 2 see if the callback is called, :(

can't get after delete callback method to work!!

2010-07-23 Thread Abraham Boray
can't get before save callback method to work My code is simple: in my controller I added this : function afterDelete(l) { exit();//stop the action to see if the callback function works !!! } it's not working, I triend everything :( My cakePHP version

Re: CakeFest 2010 - Last chance for cheap tickets!

2010-07-23 Thread Graham Weldon
No lies! We're going to make one happy baker with this give-away! Cheers Graham On 23/07/2010, at 12:25 PM, Kirk k...@kirkkahn.com wrote: Free iPad?! It sounds like spam but it's not! :-) On Fri, Jul 23, 2010 at 1:40 PM, mike karthauser mi...@brightstorm.co.uk wrote: hi graham on the

Re: How could controller inform about layout or view existing?

2010-07-23 Thread saidbakr
You are right! the layout that I talked about is found in a theme not in the master theme ( app/view/layouts ) so as a solution I may add it to the master theme and then I need not to add it to other themes because Cake will search for it in the master theme if it is not found in the current

Re: $validate Does not work as expected!

2010-07-23 Thread saidbakr
The form does not contain any hidden fields for mdate. I just want the controller to be able to supply the model with the mdate value instead of the user input. Hence the mdate value is already empty because there is no any value for it in the form. I think that Cake applying an automated data

How to organize common/shared lookup functions? A component?

2010-07-23 Thread geste
A few days ago I asked how to best create a read-only interface from our Drupal intranet instance to our CakePHP business app (on the same host). Galymzhan was nice enough to steer me to the CakePHP REST interface and that is the path I am following. I foresee a *lot* of simple functions that

Re: Inflections + Naming Conventions Generator?

2010-07-23 Thread euromark
I never really had the time to continue this project from 2008: http://cakephp.dereuromark.de/ so I guess this would be the change to make it open source and let someone who is interested in it work on it. the idea was to use actual cakephp code to display examples and live cakephp modules

Re: login generates malformed sql query

2010-07-23 Thread markatto
On Jul 22, 1:03 pm, cricket zijn.digi...@gmail.com wrote: This is in UsersController or AppController? I would put allow() (pass it an array, not a string, btw) in the former and the other two in the latter. And it should be loginRedirect, not redirectLogin. I made these changes, but I am

Re: CakePHP not getting my CSS background ( body { } ) tags from css file but getting everything else

2010-07-23 Thread Rick Dane
You're right, it has something to do with a jquery plugin that I didn't realize was overriding my default css file.. sorry for the trouble, I should have thought of using firebug before posting here On Jul 22, 5:10 pm, Rick Dane r.dane1...@gmail.com wrote: I will try that, but I was able to use

Unknown column ' ' in 'field list'

2010-07-23 Thread Rick Dane
Warning (512): SQL Error: 1054: Unknown column 'asg5' in 'field list' [CORE/cake/libs/model/datasources Query: UPDATE `uiemails` AS `Uiemail` SET `Uiemail`.`colorborder` = asg5 WHERE `divid` = 'fahk' Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP

Re: HABTM and foreign keys on delete cascade

2010-07-23 Thread DCrews
Because you chose HABTM, you've said that an Author can write many books, and a book can have many Authors. If you delete the author, it won't delete the book because other Authors have written that book, too. I think you're looking for a hasMany / belongsTo association. Author - hasMany Book

Re: ACL and find all

2010-07-23 Thread DCrews
I'm not sure what exactly you're trying to do. What I've done in a situation where I need to determine a user's posts, I define an owner field in the posts table in the database. In that case, I can find all where 'owner' = $user_id. If you're setting permissions on individual posts in a separate

Help building a dynamic form

2010-07-23 Thread Leandro
I have three tables in my database: product, product_description and product_description_item. The product_description_item table stores a lot of detail items about my product like: color, price and etc.. The product_description table stores the product_description_item_id and the value that the

Re: string validation roll(i need some idea)

2010-07-23 Thread hoss7
thanks Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from