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

2009-05-24 Thread Roman Brunnemann
Ricky Paz wrote: > If I were you, I would use $this->Auth->allowedActions(' * ') instead > of $this->Auth->allow. It works > > > Hi, thanks for your answer, but I got a *Fatal error*: Call to undefined method AuthComponent::allowedActions() in when calling $this->Auth->allowedActions(' * ');

Auto Increment ID in Form

2009-05-24 Thread fungied.cheese
Hello, I'm fairly new to CakePHP and I had a question which someone could hopefully answer. I'd like to create a form for my website where users can fill out the information and submit it to the an email (done through the form-handler.cgi). My problem is, on my form, I want each submission to s

Getting weird 404's when trying to access a model with no auth

2009-05-24 Thread calder0n
Hey everyone, I've got this app that I started by coding the backend so afterwards when I was going to add the website funcionality I noticed I'm not able to access some non-admin models' at all. All the admin models work fine. But if I try to access some of these non admin models I get a 404 er

Re: how to abort save?

2009-05-24 Thread cakephp101
thanks for the reply but the thing is it's ok for the field to be empty but it should not be saved in the database. i'm using foreach loop for my saveAll for each of the fields so i want to know how to abort the save for the empty ones. On May 22, 11:12 pm, forrestgump wrote: > Just follow the

Unable to remove app folder from displayed urls while using htaccess.

2009-05-24 Thread Chickenhen
I have a site set up with the following structure -cake -app -www ---webroot1 ---webroot2 --- ... ---webrootn with the www folder exposed to the internet. I have a .htaccess in "www" which handles wildcard subdomaining: RewriteEngine On RewriteBase / RewriteCond %{ENV:REDIRECT_SUBDOMAIN} =""

RSS feed not validating

2009-05-24 Thread Miles J
So I have an RSS setup and it works. It can be found here: http://www.sc2armory.com/feed/index.rss But when I validate it, it outputs HTML and not the RSS feed. Example: http://validator.w3.org/feed/check.cgi?url=http%3A%2F%2Fwww.sc2armory.com%2Ffeed%2Findex.rss The weird thing is that the cod

RE: Database Record deletion problem

2009-05-24 Thread lakers fan
Is it because my controller name is : AdminsController that things are not working?. Right now addition of records to database works but not deletion. Will the deletion of records work if I change the controller to say ManageController?.I just want a controller to add, edit and delete records

cookie stays empty on production server

2009-05-24 Thread CheshirePuss
I'm trying to implement a voting system, and I want to use a cookie to store the items that the current user already voted for, thus going against multiple voting. function vote($dir,$id,$type) { $votes = $this->Cookie->read('votes'); /*process data, adding or subtracting id's and stuff from the

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: Routes not finding .xml extension

2009-05-24 Thread Dr. Loboto
Router::connect( '/sitemap', array ('controller' => 'sitemaps', 'action' => 'index', 'ext' => 'rss') ); On May 22, 7:35 pm, paulinthought wrote: > Hi, > > I'm trying to create an xml sitemap as described in the > articlehttp://bakery.cakephp.org/articles/view/automatically-gener

RE: add WWW to url - IGNORE

2009-05-24 Thread Dave Maharaj :: WidePixels.com
Will do. Thanks for letting me know. Good looking out! Dave -Original Message- From: Miles J [mailto:mileswjohn...@gmail.com] Sent: May-24-09 11:55 PM To: CakePHP Subject: Re: add WWW to url - IGNORE Make sure your forms work. I tried this before and all my forms would not post beca

Re: add WWW to url - IGNORE

2009-05-24 Thread Miles J
Make sure your forms work. I tried this before and all my forms would not post because the htaccess messed it up. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to c

Re: Question about Security component

2009-05-24 Thread Miles J
The security component will blackhole (white page) if the form is incorrect or has been altered by a bot. All your form inputs MUST be created with $form->input(). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cak

Re: $ajax->editor help

2009-05-24 Thread double07
Works like a charm, thank you for suggesting that link. I might put a comment in the manual as it doesn't seem to mention: $this->params['form']['value'] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" grou

Re: Question about Security component

2009-05-24 Thread joshua
Is there a cake developer can give me a reply? Thanks in advance. On Sun, May 24, 2009 at 5:09 PM, Joshua wrote: > Hi All, > The Security component was enabled in UserController of my app.There > is a sing up page. Every time when I click continue button , there > will be a blank page shown. But

Re: DB Session Issue 1.2.3.8166

2009-05-24 Thread trav
FYI: i can't explain it but the issue was to have NO new lines after the close php tag "?>" On May 25, 7:39 am, trav wrote: > bump...can anyone help me? > > even if you have db sessions working in 1.2.3.8166 can you just let me > know? > > thanks > trav. > > On May 24, 5:47 pm, trav

Getting Tidy

2009-05-24 Thread Kyle Decot
I'm trying to implement HTML Tidy into my project using the code at: http://bakery.cakephp.org/articles/view/getting-tidy I had to modify it a little to get it to work with 1.2 but I'm now having a new problem. The problem is that when a JSON page is requested on my site, Tidy is wrapping the JS

Re: DB Session Issue 1.2.3.8166

2009-05-24 Thread trav
bump...can anyone help me? even if you have db sessions working in 1.2.3.8166 can you just let me know? thanks trav. On May 24, 5:47 pm, trav wrote: > Hi, > > I can't seem to get DB session to work in 1.2.3.8166. I have used DB > sessions many times before in the eariler versions. > > This is

Re: Aggregating child field

2009-05-24 Thread Teh Treag
jakobip, What do you have $this->Event->recursive set to? Are the associations done correctly? -teh On May 24, 9:12 am, jakobjp wrote: > Hmm, I'm not sure I follow the example. At least it didn't help we to > resolve this - probably because of lacking skills on my part :-( > > When I add the

how to integrate openID with Auth component?

2009-05-24 Thread Andrei Thomaz
dear forum, I am developing a very simple admin with CakePHP. I want the user be able to login using OpenID, so he/she can use the same username/ password from a WordPress site (this part is done). I could install the openid component (http://cakebaker.42dh.com/ 2008/02/06/new-version-of-the-ope

Re: controller condition find :: only retrieving one record? :: foreach :: should be printing many

2009-05-24 Thread fain182
> But for some reason, only one record is printing that meets the criteria, > but there are many more that should be. there are a lot of errors > Here is my code: > > tasks_controller.php > function index() { >                $this->Task->recursive = 0; >                $this->set('tasks', $this->

Re: Objects vs. arrays

2009-05-24 Thread jakobjp
Thanks for your help guys :-) On May 24, 7:34 pm, mark_story wrote: > You can still do this with models as well.  Using read(), create(), > and set() your model methods can access the 'active record' and > manipulate it. so for example > > $this->Apple->id = 1; > $this->Apple->read() > if ($thi

Re: Objects vs. arrays

2009-05-24 Thread mark_story
You can still do this with models as well. Using read(), create(), and set() your model methods can access the 'active record' and manipulate it. so for example $this->Apple->id = 1; $this->Apple->read() if ($this->Apple->isRed()) { //do something } And your isRed method could look like fu

Re: RFC 6160

2009-05-24 Thread Braulio José Solano Rojas
Hi. Sorry for the very late response. On 17 mar, 12:11, brian wrote: > You go first. Please provide some context instead of just dumping a link. You are right, I apologize. I thought people would just read the RFC. On 18 mar, 02:10, WebbedIT wrote: > Thirded: if you want cake to behave as i

tree behavior

2009-05-24 Thread Meisam Ganjeali
Hello, How I can move one tree node after one node or before one node in tree behavior? Regards meisam --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@go

RE: add WWW to url - IGNORE

2009-05-24 Thread Dave Maharaj :: WidePixels.com
Sorry to bother Got it if anyone else ever needs .htaccess RewriteEngine On RewriteCond %{HTTP_HOST} ^sitename\.com$ RewriteRule (.*) http://www.sitename/$1 [R=301,L] From: Dave Maharaj :: WidePixels.com [mailto:d...@widepixels.com] Sent: May-24-09 1

add WWW to url

2009-05-24 Thread Dave Maharaj :: WidePixels.com
Not sure if this is so much cake or more an htacess issue but I ask just incase some has knowledge of this. How would I add the www. to the url so if user typed in http://sitename it would automaticaly add the www to the address? Thanks, Dave --~--~-~--~~~---~--~--

Re: displaying records in index through specific field content

2009-05-24 Thread programguru
Hello, I was curious if you had any idea why I am having this issue? http://www.nabble.com/controller-condition-find-%3A%3A-only-retrieving-one-record--%3A%3A-foreach-%3A%3A-should-be-printing-many-to23690573.html#a23690573 I realized after I made the post, I had some unnecessary code "$allStat

Re: Aggregating child field

2009-05-24 Thread jakobjp
Hmm, I'm not sure I follow the example. At least it didn't help we to resolve this - probably because of lacking skills on my part :-( When I add the following afterFind() function to my Event method... function afterFind($events) { foreach ($events AS $event) { pr($event); } } ... I wo

Re: Model with Dynamic Data Fields

2009-05-24 Thread oliver.pra...@googlemail.com
@DanielMedia Why not just ad the field document_number [INT] to documents (with maybe NUL as possible value). Its just one more field, and your setup would require a join etc. (a lot more db querying than needed) With the fact being a Document only can have 1 number ... which would sound sane to

Re: Aggregating child field

2009-05-24 Thread Teh Treag
jokobjp, Here is an example from one of my first cakephp projects. My models are similar, in that Projects hasMany Tracts, Tracts have an "acres" field. When I query for Projects, the projects include a 'total_acres' field which is a summation of the Tract acres. http://bin.cakephp.org/view/18

Aggregating child field

2009-05-24 Thread jakobjp
I have a model Event that hasMany Ticket. Ticket has a field called "price". I would like to accomplish that Event gets an attribute "total_ticket_price", which is the sum of "price" for all of Event's Tickets. I have been trying to looking into the afterFind() method, but I have been unable to

Re: copying cakeapp from windows to linux

2009-05-24 Thread forrestgump
Thnx jsteini did just tht...and is working alrightalso turned out the core.php files was troubling.:) On May 24, 5:06 pm, jstein wrote: > On May 24, 1:29 pm, forrestgump wrote: > > > i should also mention i downloaded and installed the latest version of > > cakephp (CakePHP 1.2.3.81

Re: copying cakeapp from windows to linux

2009-05-24 Thread jstein
On May 24, 1:29 pm, forrestgump wrote: > i should also mention i downloaded and installed the latest version of > cakephp (CakePHP 1.2.3.8166) , and it seems to be working fine on my > ubuntu box. When you have a working installation of Cake, try to copy the content of your "app" folder from the

encrypted Cookies problem - value of cookie

2009-05-24 Thread ar2oor
Hello, i have problem with encrypted cookies. Here i use encrypted cookie, and after writing cookie i hit f5 and i get strange random string.. if($this->Cookie->read('name')){ echo $this->Cookie->read('name'); }else{ $this->Cookie->write('name','Larry'); } when im not using encr

Re: copying cakeapp from windows to linux

2009-05-24 Thread forrestgump
i should also mention i downloaded and installed the latest version of cakephp (CakePHP 1.2.3.8166) , and it seems to be working fine on my ubuntu box. Can somone help me with the shifting app from windows to ubuntu thing, i donot want to have tot code the whole thing again...it is very laborious.

copying cakeapp from windows to linux

2009-05-24 Thread forrestgump
hey guys, I developed a laborious cake app on windows xampp...the application is called "invoice" i now wish to move it onto ubuntu xampp...i have installed xampp and tested it, it is working fine...i copy pasted the invoice folder to the ubuntu xamppand the visited locahost/invoice on my bro

Re: I don't know which association for my project.... please help me

2009-05-24 Thread Avandgard
Thank you VM, i'll try it. --~--~-~--~~~---~--~~ 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 this group, send email to cake-php+uns

display blob Content-Type always text/html no matter what header('Content-Type: image/jpeg') I've set.

2009-05-24 Thread Kev
display blob Content-Type always text/html no matter what header ('Content-Type: image/jpeg') I've set. in controller: function download($id = null) { $id = 1; Configure::write('debug', 0); $this->layout=false; $this->autoRender = false; $this->autoLayout=

Question about Security component

2009-05-24 Thread Joshua
Hi All, The Security component was enabled in UserController of my app.There is a sing up page. Every time when I click continue button , there will be a blank page shown. But if I disable the Security component in my user controller, it will work fine. I have no idea of what's wrong. Can someone

Question about Security component

2009-05-24 Thread joshua
Hi All, The Security component was enabled in UserController of my app.There is a sing up page. Every time when I click continue button , there will be a blank page shown. But if I disable the Security component in my user controller, it will work fine. I have no idea of what's wrong. Can someone h

find list distinct

2009-05-24 Thread fain182
hello, i have a table 'posts' like: id, author, subtitle, text, other fields.. i want to make a search with some select(one for author, one for subtitle, ecc.), what is the best way? it's possible to use distinct in combination with find('list',..) ? thank you -- pietro --~--~-~--~

DB Session Issue 1.2.3.8166

2009-05-24 Thread trav
Hi, I can't seem to get DB session to work in 1.2.3.8166. I have used DB sessions many times before in the eariler versions. This is what i've done: 1. download version 1.2.3.8166 2. set db and salt and cake sessions to point to cake_sessions table 3. verified table exists 4. open site and make

Re: Making multiple ajax requests at once give 403 error...

2009-05-24 Thread nurvzy
Glad you got it all figured out. =) On May 23, 5:55 pm, Andrew Koebbe wrote: > Ah ha! It was the Security.level = high in the core settings. As the > comments say... > > CakePHP session IDs are also regenerated between requests if > 'Security.level' is set to 'high'. > > I set it to medium and

Since when did google stop us replying to older posts?

2009-05-24 Thread WebbedIT
I've just got an email from someone who started the following post which is only a few months old because he can't continue the conversation within the forum. http://groups.google.com/group/cake-php/browse_thread/thread/19cbc5dc4b49d357 Surely some conversations do go dead after a few months and