Re: how tho show files with cakephp?

2009-06-19 Thread Ricky Paz
I've not understood. If I do that, how can i show the file's content inside browser like youtube or amazon? On 18 jun, 04:22, Kyo wrote: > If you set everything up with CakePHP correctly, all you need to do is > place the files into your "webroot" folder (I think the app/webroot/ > files folder

how tho show files with cakephp?

2009-06-17 Thread Ricky Paz
Hi, i have an repository of archives and i don't want that people have to download them to see the archives's content. How can i show in my browser pdfs, docs, txts, etc. Is there a way in cakephp to do this? --~--~-~--~~~---~--~~ You received this message because

Re: can't get data from multiple databases

2009-05-31 Thread Ricky Paz
If you want a 1-n relantionship, use $belongaTo, and not $hasOne, like you've done. But, i dont think that will correct your problem. Could you put the error's message, please? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Test table creation failing

2009-05-31 Thread Ricky Paz
In your model EventAdmin is there any relationship with some model matched with test_event_admins's table? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php

Re: user table with authenticate

2009-05-29 Thread Ricky Paz
If you use AuthComponent, you can get id from $this->Auth->user('id") as said above, but functions like edit, view or delete, they receive $id from URL. Make a simple application from bake and look at the URL after click in edit. You'll see something like this: http://address/ {controllerName} / e

Re: ACL denying access issues

2009-05-25 Thread Ricky Paz
Try to use this: $this->Auth->allowedActions = array('login','logout', 'register'). --~--~-~--~~~---~--~~ 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 un

Re: Using Auth: Access denied even when I allow everything

2009-05-25 Thread Ricky Paz
I'm sorry, I wrote wrong. The correct is $this->Auth->allowedActions = array('*'); In your case, $this->Auth->allowedActions = array('show'); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to

Re: ACL denying access issues

2009-05-24 Thread Ricky Paz
Hi, i've used ACL im my project and i have learned how to use that based on link given by Delberto above. It works. You probably made something wrong. Are you sure you deleted, in beforeFilter, the line $this->Auth- >allowedActions = array('*')? --~--~-~--~~~---~--~--

Re: Using Auth: Access denied even when I allow everything

2009-05-23 Thread Ricky Paz
If I were you, I would use $this->Auth->allowedActions(' * ') instead of $this->Auth->allow. It works --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@goog

Re: Problem with retrieving data with relationships

2009-05-23 Thread Ricky Paz
Hi, You have to use belongsTo and hasMany for 1-n relationship, and not hasOne and hasMany. In your PropertiesModel, put $belongsTo = 'Seller", and, inside SellerModel, put hasMany = 'Property'. --~--~-~--~~~---~--~~ You received this message because you are subscr

Re: how to work with different schemas?

2009-02-26 Thread Ricky Paz
I created schemas in postgreSql, and using cakephp, i created two different database configs, each one referenced one schema on postgres. I have three tables called users, profiles and profiles_users. The first table is on 'public' schema, in postgres, and the others are in 'portal' schema. When i

Re: Auth and ACL

2009-02-26 Thread Ricky Paz
Hello, the command is correct and, in this example, don't type it, because it is int the function buildAcl(), on second line. This example just shows you how to add acos, using that command, but the hard work of add all controllers is done by buildAcl. --~--~-~--~~~---