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
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
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
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
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).
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(
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
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
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
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 =
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
---
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
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
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:
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
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.
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
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
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
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
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
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
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
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
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
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
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 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
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
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
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
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
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
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
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
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
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
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
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
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
40 matches
Mail list logo