I figured it out. I needed to exclude 'users/captcha' from my
__validateLoginStatus method, that's all.
On Jun 26, 11:23 am, skoggins <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I am trying to use the phpcaptcha component with Cake 1.1. and I find
> that it works
Hi All,
I am trying to use the phpcaptcha component with Cake 1.1. and I find
that it works fine when a user is logged in but the image does not
appear when no one is logged into the site. THis makes me think it is
an issue with phpcaptcha needing a Session to be started before it can
appear but
Finally found the answer. Cake caches your queries unless you tell it
not to.
$this->Account->Note->Document->cacheQueries = false;
Hope this saves someone else a headache.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Hi all,
I have a method which loops through an array of ids and deletes the
corresponding Note record. Upon deleting, it also checks whether the
associated Document is still associated with other Notes. If it
isn't, it should be deleted.
The problem I'm having is that even though I am calling
Hi all,
I fixed this problem and wanted to share the solution.
After reading other posts I realized this issue is similar to the one
talked about in SWFobject.swf posts on this board. After reading
those threads fixed this by adding some text to
app/config/bootstrap.php to use an existing sessi
Hmm... looking at core.php I see everything starts with define(...);
Do I need a different syntax then just plopping
Configure::write('Session.checkAgent', false); in there?
On Feb 8, 4:49 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On Feb 8, 2008 7:31 P
er
so I'm assuming I have access to the class.
Any ideas why this is? Thanks for the help, this is driving me
insane.
On Feb 8, 4:49 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On Feb 8, 2008 7:31 PM, skoggins <[EMAIL PROTECTED]> wrote:
>
>
>
&g
Hi guys,
Quick question. Where is Configure::write('Session.checkAgent',
false); supposed to go? In config/core.php or in the controller
action?
Thanks.
On Feb 4, 3:48 pm, skoggins <[EMAIL PROTECTED]> wrote:
> Ok. Thanks!
>
> On Feb 4, 2:20 pm, "Troy Gilb
My apologies--I tried and received an error of "Undefined class
constant 'referer'" and assumed it was a 1.2 fcn. The problem though
was I wasn't including the parentheses.
So if it helps anyone else out you can use $refer =
Controller::referer(); in your controller to get the referring url.
--~
ent that out (no idea, I'm using 1.2beta).
>
> Troy.
>
> On Feb 4, 2008 3:53 PM, skoggins <[EMAIL PROTECTED]> wrote:
>
>
>
> > I found out some more info about the problem. It only logs me out
> > when I do a "POST" from Flash. "
I found out some more info about the problem. It only logs me out
when I do a "POST" from Flash. "Get" works fine. I haven't been able
to upgrade to 1.1.19 yet so I can't try:
Configure::write('Session.checkAgent', false);
Troy, my flash player is version 8,0,22,0 and I am running XP.
Does t
Hi all,
I need some help on this. I checked out the most recent version of
cake using https://svn.cakephp.org/repo/trunk/cake/1.1.x.x/
When I copy in my app folder from my previous version I get this error
on my localhost:
"The connection was reset.
The connection to the server was reset while
uys have experienced but it sounds like yours was fixed
after checking out from the repo.
Is there something I'm missing?
Thanks.
On Jan 31, 12:23 pm, skoggins <[EMAIL PROTECTED]> wrote:
> I'm having a problem upgrading from 1.1.18 to 1.1.19 also. I
> downloaded the 1.1.19.63
I'm having a problem upgrading from 1.1.18 to 1.1.19 also. I
downloaded the 1.1.19.6305 archive from the homepage. Is this the
most recent version? If not, how do I access the most recent? A
checkout from a svn repository?
I tried unpacking the entire cake directory and then copying my app
fo
rote:
> Yes, I had the same issue. I traced the problem to the CakeSession
> component and hacked the core to fix mine, however I think they have
> fixed this in newer builds. I *think* this should work.
>
> Configure::write('Session.checkAgent', false);
>
> Adam
>
Hi all,
I have a problem with a Flash file calling a function in my controller
using send and load. After the fcn is called and the database is
updated the Session no longer exists for some reason. Has anyone had
a problem like this?
Thanks.
--~--~-~--~~~---~--~
Is there a solution for 1.1?
On Jan 4, 5:03 am, krr <[EMAIL PROTECTED]> wrote:
> That worked. Thanks a lot Daniel.
>
> On Jan 4, 5:10 pm, Daniel Hofstetter <[EMAIL PROTECTED]> wrote:
>
> > Hi krr,
>
> > Controller::referer returns the referring url.
>
> > HTH
>
> > daniel
>
> > --
> > Daniel Hofs
Yeah sorry, typo. I fixed that and now am back to the original
problem. It updates the record but also saves 3 blank records. Could
this be because there are frames on the page?
$this->Account->Note->Sentmessage->AllowedView->recursive = -1;
$conditions = "AllowedView.note_id = '$id' AND Allow
Actually, it looks like it is just generating a new record and is not
updating the existing one. So this must be an issue with setting the
id, right? What am I doing wrong?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Gr
Hi all,
In my controller I am trying to update a single field in my
allowedviews table. Not only is the record updating but a new record
is generated which is empty except for 'date_viewed'. Could someone
check the below code and let me know if they see something wrong?
Thanks!
Accounts Contr
Hi All,
I am trying to use PHPMailer according to the tutorial here:
http://bakery.cakephp.org/articles/view/phpmailer-with-native-api-for-php-5-x
but keep getting errors.
The error I get on my local machine is:
"There was a problem sending mail: Language string failed to load:
instantiate"
On
Thanks, I figured out that I was trying to use vhosts incorrectly. I
removed that info and now it is working.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to c
Correction. My
C:\xampp\htdocs\mynewapp\app\.htaccess file looks like:
RewriteEngine on
RewriteRule^$ webroot/[L]
RewriteRule(.*) webroot/$1 [L]
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
correction.
C:\xampp\htdocs\mynewapp\app\.htaccess:
RewriteEngine on
RewriteRule^$ webroot/[L]
RewriteRule(.*) webroot/$1 [L]
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
T
Help! I've had cake running successfully but now and trying to set it
up on a new computer localhost and cannot for the life of me figure
out how to set the htaccess so I don't get 403 errors. My main
probalme is probably that I really don't understand what is supposed
to be going on.
I've insta
should I just create my own table and not try for the HABTM
association?
--~--~-~--~~~---~--~~
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 unsubscrib
Hi All,
I assumed that you could use variables set in an action in a
beforeRender function because it is called after the controller action
but I guess I am wrong. is there a way to pass a variable to
beforeRender? Here is my code:
function beforeRender()
{
if($id){
$cu
Hi all,
I have an HABTM relationship between tables named Users and Notes. I
only want to populate the join table when a note is sent to a user.
The join table will be used to determine which users have permission
to view which notes. Because both the note record and the user record
are already
Hi all,
I have a Flash message that doesn't seem to be displaying across
controllers. It is called in the beforeFilter of my accounts
controller:
function __validateLoginStatus()
{
//no exceptions for this controller
if($this->Session->che
Hi all,
Quick question--my password2 field isn't validating in the edit
function. I even tried setting the invalidate fcn in the controller
but no go. I feel like it has something to do with this section fo
the manual:
"If you want to invalidate a piece of data that is outside of the
Model its
Hi all,
My client would like her website to have support for multiple
languages. Does anyone know the best way to do this? Is there any
CakePHP functionality I should be looking at?
Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscrib
Hi all,
I am trying to use RosSoft's cookie component and it uses Mcrypt so I
downloaded it but can't figure out what I'm supposed to do with it
now. Put files in the vendor folder I guess. Can anyone help?
Thanks
--~--~-~--~~~---~--~~
You received this message
Hi All,
I am trying to use the RosSoft cookie component to implement a
"Remember Me" functionality but it uses the Mcrypt engine and I am
unclear how to add this module to cake. Can anyone help me out?
Thanks!
--~--~-~--~~~---~--~~
You received this message becau
Just what I was looking for! Thanks!
Here's my login fcn so it may help someone down the road:
function login()
{
if(empty($this->data) == false)
{
if(($user =
$this->User->validateLogin($this->data['User'])) ==
true)
Sorry, I'm a newbie. I tried the code like this:
App Controller
function beforeRender() {
if($this->Session->check('User')){
$this->set('user',
$this->User->findById($this->Session-
>read('User.id')));
Config::writ
How do I set the $user variable in the app controller so it is
accessible in other controllers ?
Tried $user = $this->User->findById($this->Session-
>read('User.id')); but that didn't work.
--~--~-~--~~~---~--~~
You received this message because you are subscri
if they are the primary model for the
> controller, and there is no $uses).
>
> http://manual.cakephp.org/chapter/controllers
>
> On Nov 29, 12:11 pm, skoggins <[EMAIL PROTECTED]> wrote:
>
> > Thanks. The first solution worked. Can anyone help me out with why
> > t
=
> array('User'); or in the beforeRender() do an App::import('Model',
> 'User');
>
> On Nov 28, 3:35 pm, skoggins <[EMAIL PROTECTED]> wrote:
>
>
>
> > Thanks! beforeRender works but now I get this error:
>
> > Notice: Undef
Thanks! beforeRender works but now I get this error:
Notice: Undefined property: AppController::$User in C:\accounts
\placeholder\app\app_controller.php on line 48
Fatal error: Call to a member function findById() on a non-object in C:
\accounts\placeholder\app\app_controller.php on line 48
39 matches
Mail list logo