Re: Session lost using kcaptcha, after upgrading to new 1.2.0.6311

2008-01-09 Thread francky06l
Just a hint (maybe you tried already) .. If you have a "vendors" type class for your captcha, check if there is a "start_session" in it. If so try to remove it .. On Jan 10, 3:54 am, Alberto <[EMAIL PROTECTED]> wrote: > Hello, I upgraded to the new beta version and I can't validate the > captcha.

Ajax Helper multiple actions

2008-01-09 Thread seacloud9
I would like to call multiple actions on an ajax form? Below are two action but the last action is the only action that is rendered the first action is not? //form(array('action'=>'/surf/showresult'), array('action'=>'/surf/showresult2'), 'post', // array('update'=>'questionID','loading'=>"Toggle

bakery search fixed!!

2008-01-09 Thread Adam Royle
Well, not quite, but here is a suggestion that I think will tie everyone over until the bakery is truly fixed. https://trac.cakephp.org/ticket/2734 --- Something needs to be done about searching the bakery. It's not working for me most of the time. I usually just end up searching google, so my

HABTM foreignKey and associationForeignKey

2008-01-09 Thread leveille
When I bake my models using 1.2beta the rules stated at tempdocs (see below) for #foreignKey and #associationForeignKey are not valid. Instead, after my bake, foreignKey is populated with the current model, and aFK is populated with the "other" model. The following has been taken from http://temp

Session lost using kcaptcha, after upgrading to new 1.2.0.6311

2008-01-09 Thread Alberto
Hello, I upgraded to the new beta version and I can't validate the captcha. The problem is in the sessions, I tested all 3(php, cake and database) but same result. I changed security level to low and tested some changes... but it doesn't work. sessions are lost after changing page. Anyone knows

Re: I'm having some trouble configuring cache

2008-01-09 Thread x-height
Okay, I managed to get it to work (sort of). I'm using Apc for my cache engine (more on that in a bit) and it turns out the php_apc.dll over at pecl4win.php.net seems to be incomplete(!). I googled around a bit and came across someone who was kind enough to post the complete files for anyone else

Re: How to focus an invalid

2008-01-09 Thread Adam Royle
document.getElementsByClassName('form-error'); http://wiki.script.aculo.us/scriptaculous/show/Document.getElementsByClassName On Jan 10, 10:28 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > just tried this out and it only works if your input has name="form- > error" not if the form class="

specify field instead of string in conditions array

2008-01-09 Thread blange
$conditions = array( 'Post.id' => 'Post.thread_id', How to I make cake interpret Post.thread_id as the field instead of a string. Thanks. -Brian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

Re: How to focus an invalid

2008-01-09 Thread [EMAIL PROTECTED]
just tried this out and it only works if your input has name="form- error" not if the form class="form-error". I'm sure there's a way to do this though, either by keying off of the class label or setting the inputs name to something when it fails validation On Jan 9, 5:22 pm, "[EMAIL PROTECTED]"

Re: How to focus an invalid

2008-01-09 Thread [EMAIL PROTECTED]
well, you can use javascript in the body tag to set the cursor on a given field: OnLoad="document.nameofyourform.nameofyourfield.focus();" and I believe when the form errors out it sets the class of the form tag to "form-error" so try: OnLoad="document.nameofyourform.form-error.focus();" On Ja

Re: Validation successful every time, even when it shouldn't be

2008-01-09 Thread [EMAIL PROTECTED]
I've resolved this, nevermind =) On Jan 10, 10:13 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > This is an odd one, and I can't for the life of me figure out what's > going on. Below is the code: > > if (!empty($this->data)) > { > // set the user id

Re: Model::invalidate() not working with Model::save()

2008-01-09 Thread [EMAIL PROTECTED]
I figured this out, so don't worry about it. In my beforeValidate() method in the model, i wasn't actually returning anything, so the invalidFields() method was returning false, but no error string was set, so it would still go on to save. Problem solved, as I added "return true;" to my beforeVal

Re: Model::invalidate() not working with Model::save()

2008-01-09 Thread [EMAIL PROTECTED]
hi francky. This is my code: $this->Project->invalidate('title'); if ($this->Project->save($this->data)) Yet the validation still passes, thereby creating the record. In fact, none of the validation is working. On Jan 10, 10:50 am, francky06l <[EMAIL PROTECTED]> wrote: > In the title I do not

Re: Model::invalidate() not working with Model::save()

2008-01-09 Thread francky06l
In the title I do not understand "with Model::save()" ...Do you do a save ? If so when (after / before invalidate) ? On Jan 10, 12:40 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Okay, this is really starting to annoy me. > > I have specifically (in cakephp 1.2) set $this->modelname- >

Making a video screenshot from wmv

2008-01-09 Thread Aria Rajasa Masna
Hi everyone, I wanted to take a screenshot from an user uploaded video, any links and references I can follow regarding that matter? Owh and I was wondering on how to make a animated gif screenshot like the one displayed here: http://cakephp.org/screencasts Any help would be greatly appreciated -

Model::invalidate() not working with Model::save()

2008-01-09 Thread [EMAIL PROTECTED]
Okay, this is really starting to annoy me. I have specifically (in cakephp 1.2) set $this->modelname- >invalidate('fieldname') and yet the validation still passes. What am I missing here? --~--~-~--~~~---~--~~ You received this message because you are subscribed t

Validation successful every time, even when it shouldn't be

2008-01-09 Thread [EMAIL PROTECTED]
This is an odd one, and I can't for the life of me figure out what's going on. Below is the code: if (!empty($this->data)) { // set the user id to the person whom is logged in $this->data['Project']['user_id'] = $this->Session- >read

How to focus an invalid

2008-01-09 Thread pvilas
How can I focus the first invalid field in a form? Thanks. --~--~-~--~~~---~--~~ 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: possibile integrazione con Joomla

2008-01-09 Thread LaTorta
I converted the blog example into a Joomla/Mambo component a while back. You can get it here: http://forum.mambo-foundation.org/showthread.php?t=6701&highlight=cakephp&page=2 I am not sure what the performance implications of running a cake app within Joomla are, but it's something you should co

Re: Do I develop user authentication or the site itself first?

2008-01-09 Thread [EMAIL PROTECTED]
I agree with Chris, it really doesn't matter which you do first, using functions like beforeRender and beforeFilter you can easily add your authentication in one place after your site is complete. But then again there's not reason not to do it first either. Just whatever you're preference is I gue

Re: Tracking my CakePHP progress: Blog

2008-01-09 Thread [EMAIL PROTECTED]
That's a really good idea, I'll keep checking it out. On Jan 9, 2:49 pm, 703designs <[EMAIL PROTECTED]> wrote: > I'm publishing a blog using Blogger (yes, I could make a CakePHP blog > first, but my focus is on the task at hand, and Blogger is a good > tool) so that others can learn from my experi

Tracking my CakePHP progress: Blog

2008-01-09 Thread 703designs
I'm publishing a blog using Blogger (yes, I could make a CakePHP blog first, but my focus is on the task at hand, and Blogger is a good tool) so that others can learn from my experience. Here's a link: http://cakephprecipe.blogspot.com/ I'm posting here not to advertise for the blog, but to hope

Re: Do I develop user authentication or the site itself first?

2008-01-09 Thread Robby Anderson
I used some of Chris's links, so I can recommend them. :) Personally, I'm building out user security, authentication, access control, session management, logging and testing first. They're all pretty important elements, and I want to make sure they're right (or at least working) before I move on

Re: How can one access session data from a model function?

2008-01-09 Thread [EMAIL PROTECTED]
Nevermind I figured this out, there was a problem with how I defined my model class. Thanks, Dave On Jan 9, 1:42 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Okay, I guess I'll stop trying, thanks ;). On a slightly related note. > I just realized that I can't access a child's model funct

Re: How can one access session data from a model function?

2008-01-09 Thread [EMAIL PROTECTED]
Okay, I guess I'll stop trying, thanks ;). On a slightly related note. I just realized that I can't access a child's model functions. Example, I have a User that hasMany calendars and the following works from the User controller: $this->User->Calendar->find() I assume find() is a model function,

Re: Rendering a different main page

2008-01-09 Thread Chris Hartjes
On Jan 9, 2008 3:24 PM, Greg Baker <[EMAIL PROTECTED]> wrote: > > How can I get the root of my site to display a different page, without > using a redirect? > > For example.. www.example.com/registration should in fact actually > render www.example.com/registrant/add but the URL should not change

Rendering a different main page

2008-01-09 Thread Greg Baker
How can I get the root of my site to display a different page, without using a redirect? For example.. www.example.com/registration should in fact actually render www.example.com/registrant/add but the URL should not change. --~--~-~--~~~---~--~~ You received thi

Re: Do I develop user authentication or the site itself first?

2008-01-09 Thread Chris Hartjes
On Jan 9, 2008 3:28 PM, 703designs <[EMAIL PROTECTED]> wrote: > > I'm building my first site in CakePHP. It will involve a few different > sections that users will need to log in to post on, and I'm uncertain > about in which order I should be developing the site. This is the > first large-scale w

Do I develop user authentication or the site itself first?

2008-01-09 Thread 703designs
I'm building my first site in CakePHP. It will involve a few different sections that users will need to log in to post on, and I'm uncertain about in which order I should be developing the site. This is the first large-scale web app I've ever built; all prior PHP experience has been for brief task

Re: How can one access session data from a model function?

2008-01-09 Thread Pablo Viojo
You shuldn't try to access session information from within a model, instead try passing it from the controller as a parameter. Example: Model User: function getUserInfo($user_id){ ... } Controller: User->getUserInfo($this->Session->read("logged_user_id")); Regards, -- Pablo Viojo [EMAIL PRO

Re: session doesn't work if model file begins with blank line ?!

2008-01-09 Thread [EMAIL PROTECTED]
I just had a problem with CakePHP 1.2 and Firefox sessions, which could possibly be the same as the problem you are having. The answer was in an older post here, and weirdly enough I fixed it by fully qualifying favicon in default.ctp (app/views/layouts/ default.ctp) example: http://www.fluffyca

How can one access session data from a model function?

2008-01-09 Thread [EMAIL PROTECTED]
I have a model function that is dependent on data retrieved from the session and I can't figure out how to retrieve it. Using $this- >Session->read('User') results in: Undefined property: User:: $Session. Anyone know? --~--~-~--~~~---~--~~ You received this messag

getting 404 error unexpectedly

2008-01-09 Thread befidled
I've set up my site so that both the home page and internal pages use the same navigation. The navigation accesses the articles_controller.php to dynamically generate the navigation for the entire site. when a visitor clicks on a link to an internal article which should take them to the /abouts d

Re: session doesn't work if model file begins with blank line ?!

2008-01-09 Thread [EMAIL PROTECTED]
Have you tried setting your security level to low in app/config/ core.php? If you tried that and are still having problems, I suggest upgrading, I think it will fix your problems ;) On Jan 9, 3:53 am, beetlejuice <[EMAIL PROTECTED]> wrote: > @David : > @ Martin : > many thanks for your precious a

Re: possibile integrazione con Joomla

2008-01-09 Thread Aria Rajasa Masna
Here's the link: http://dev.sypad.com/projects/jake/ Since the last post is on February, I am not really sure if this project would still continue On Jan 9, 2008 11:16 PM, Raimon Esteve <[EMAIL PROTECTED]> wrote: > 2008/1/9, aldojavascript <[EMAIL PROTECTED]>: > > > > > > In che modo Cake PHP si

Re: How combine CakePHP + ExtJS?

2008-01-09 Thread hydra12
I'm working on a new version of my tutorial that works with 2.0. I'll try to get it done soon, depending on my work schedule. hydra12 http://www.ntatd.org/mark On Jan 9, 12:23 pm, DjZoNe <[EMAIL PROTECTED]> wrote: > Hi inma, > > I started to write here a little help, but it became bigger as I >

Re: How combine CakePHP + ExtJS?

2008-01-09 Thread DjZoNe
Hi inma, I started to write here a little help, but it became bigger as I expected. So I rather posted into my blog: http://djz.hu/blog/posts/689 -- DjZoNe > Hi, > > I'm newbie in CakePHP and ExtJS. I'm developing a new application with > CakePHP, and I want to integrate the ExtJS forms into th

Re: possibile integrazione con Joomla

2008-01-09 Thread Raimon Esteve
2008/1/9, aldojavascript <[EMAIL PROTECTED]>: > > > In che modo Cake PHP si può integrare con Joomla? jake? ;) http://dev.sypad.com/projects/jake/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. T

Re: othAuth looses session - upgrading to new 1.2.0.6311 (2008)

2008-01-09 Thread Siebren Bakker
I'm not sure how it works so far. I just installed othAuth with 1.2 beta, and have been having issues with the login form, specifically because 1.2uses the FORM helper instead of the HTML helper to create forms, and I think somewhere along that line something isn't working out. Glad I'm testing thi

Re: othAuth looses session - upgrading to new 1.2.0.6311 (2008)

2008-01-09 Thread luke BAKING barker
Hi I am running Cake build from August, I have an app using database sessions and othAuth. I want to try and upgrade my app to the new beta - I was just wondering then what other problems/issues might I face? I saw the red frog blog comments about the pre-beta...so can anyone advise me? I take

Re: How combine CakePHP + ExtJS?

2008-01-09 Thread foxmask
I'd like it too As the example provided concerned extjs1.1 and does not work anymore with extjs 2.0. Kind regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email

Aros and users ...

2008-01-09 Thread NilsR
Hi there, I have to create some sort of User-Management with permissions and all that stuff. I think i understood the ACL-System but i can't yet quite work with it. I have a users table. Aros for the User are created automaticaly using the AclBehaviour (requester) and they are assigned to the gro

possibile integrazione con Joomla

2008-01-09 Thread aldojavascript
In che modo Cake PHP si può integrare con Joomla? Aldo --~--~-~--~~~---~--~~ 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,

Re: Auth component and testAction()

2008-01-09 Thread Robby Anderson
Gwoo be da man. He pointed me in a much better direction on this. I defined a CAKE_UNIT_TEST setting in test.php (and bootstrap.php), used Configure for some test options to decide if the test (when using testAction()) should bypassSSL, bypassAuth and spoof an Auth User (so all those functions c

Acl->check without alias?

2008-01-09 Thread Andreas
Hi, bit new to ACL and having some problems when I want to check for permissions before deleting a post using the ACL setup from http://bakery.cakephp.org/articles/view/how-to-use-acl-in-1-2-x. Is it possible to check permissions using the foreign_key if no alias is present? In the Post/view act

Re: How to implement "Export to CSV" link in cake-php

2008-01-09 Thread nate
On Jan 9, 1:32 am, bhushan A <[EMAIL PROTECTED]> wrote: > Hi all, > >    Can anybody help me how to write code for "Export to CSV" link? Or > there is any provision in cake php for that.? http://us3.php.net/fputcsv >    please reply me on [EMAIL PROTECTED] No. The point of this mailing list is

Re: Auth component and testAction()

2008-01-09 Thread Robby Anderson
Hmm. Well, I looked to override the startController() method and write a user record to the Session based on the Auth->sessionKey, but that didn't work. Following the chain of events, it looks like this happens: dispatcher created does a bunch of magic creates the components creates the cl

Re: add form in index.ctp

2008-01-09 Thread jboberg
Some more info about how forms are handled in 1.2 compared to previous versions: http://cake.insertdesignhere.com/posts/view/15 On 9 Jan, 13:00, jboberg <[EMAIL PROTECTED]> wrote: > I've noticed this behaviour too but think it is intended. > The problem is, as you said, the messages variable. > >

Re: add form in index.ctp

2008-01-09 Thread jboberg
I've noticed this behaviour too but think it is intended. The problem is, as you said, the messages variable. If you have a variable in your view with the same name as the pluralized version of one of your model fields $form->input(...) will create a drop-down list and populate it with the values

Re: New to Cake, questions about a document building website

2008-01-09 Thread dr. Hannibal Lecter
Hi, as far as Cake is concerned, good place to start would be The Bakery (http://bakery.cakephp.org/) and screencasts on the official site (http://cakephp.org/screencasts). Points of reference: if you're using 1.1 stable then the manual (http://manual.cakephp.org/), otherwise the temp docs for th

Fatal error: require() [function.require]: Failed opening required 'config/core.php'

2008-01-09 Thread J_Zar
I saw a lot of similar messages in this group, but no solution yet. I set up cake 1.1.19 and I have this *random* error message: Fatal error: require() [function.require]: Failed opening required 'config/core.php' (include_path='.:.:') in /home/httpd/vhosts/ */httpdocs/index.php on line

Re: session doesn't work if model file begins with blank line ?!

2008-01-09 Thread beetlejuice
@David : @ Martin : many thanks for your precious answers. it is obvious now :) I have another pb now ! Now, with my cakephp 1.1.19.6305, sessions work with IE6, :-) but not with Firefox 2.0.0.11 !!! :-( i may try with cakephp 1.2 otherwise, if you have any idea ? best regards

Re: session doesn't work if model file begins with blank line ?!

2008-01-09 Thread beetlejuice
@David : @ Martin : many thanks for your precious answers. it is obvious now :) I have another pb now ! Now, with my cakephp 1.1.19.6305, sessions work with IE6, :-) but not with Firefox 2.0.0.11 !!! :-( i may try with cakephp 1.2 otherwise, if you have any idea ? best regards

Re: session doesn't work if model file begins with blank line ?!

2008-01-09 Thread beetlejuice
@David : @ Martin : many thanks for your precious answers. it is obvious now :) I have another pb now ! Now, with my cakephp 1.1.19.6305, sessions work with IE6, :-) but not with Firefox 2.0.0.11 !!! :-( i may try with cakephp 1.2 otherwise, if you have any idea ? best regards

How combine CakePHP + ExtJS?

2008-01-09 Thread inma
Hi, I'm newbie in CakePHP and ExtJS. I'm developing a new application with CakePHP, and I want to integrate the ExtJS forms into this application. I was looking some posts about it. Nevertheless, I don't know how to match Cake model, controller and view with ExtJS exactly. :-( Can someone pos

Re: cakephp 1.2 Translations

2008-01-09 Thread [EMAIL PROTECTED]
The original content (spanish) is stored in the Page Model and the translations are stored in the i18n table. How can I show the content stored in the Model (spanish). How can I make the Translation behaviour not to look in the i18n and instead look in the original Model. On Jan 8, 9:25 pm, "[EMA

echo $content_for_layout;

2008-01-09 Thread Unite
Can someone direct me to code that will always put this statement in a ajax type format so that the whole page doesnt refresh but only the $content_for_layout and if JS is disabled loads the interface normally. Thanks --~--~-~--~~~---~--~~ You received this message

Re: How to implement "Export to CSV" link in cake-php

2008-01-09 Thread R. Rajesh Jeba Anbiah
On Jan 9, 11:32 am, bhushan A <[EMAIL PROTECTED]> wrote: > Hi all, > >Can anybody help me how to write code for "Export to CSV" link? Or > there is any provision in cake php for that.? Search for "parseExtensions" http://groups.google.com/group/cake-php/web/frequent-discussions -- E

Re: Session being dropped

2008-01-09 Thread Beno
Thanks, changing the security level to low helped On Jan 8, 11:31 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > This sounds exactly like what I was seeing groups.google.com/group/cake-php/browse_thread/thread/a693d39c621591de/ > 73c0121fc3f02306?lnk=gst&q=dorks#73c0121fc3f02306>here. > >