Re: Baffling blank screen problem

2010-11-23 Thread Jules
Using version 1.3.5, is working now with 'log' set to false in config.php. Not ideal, but is working for now. 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

Re: Baffling blank screen problem

2010-11-22 Thread Jules
Changed Configure::write('log', true); to Configure::write('log', false); in config/core.php. Hmm. 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

Re: Baffling blank screen problem

2010-11-21 Thread Jules
Ok, problem still occurring, this is what the Apache error log says; PHP Fatal error: Class 'CakeLog' not found in /var/www/vhosts/default/ api/cake/libs/cache/file.php on line 83 I will investigate! Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP

Re: Baffling blank screen problem

2010-11-18 Thread Jules
a blank screen, or just falling over, but not displaying the error? Toby On Nov 17, 1:00 am, Jules fattyju...@gmail.com wrote: I have a new CakePHP installation I'm fiddling around with. I've built a reasonably sophisticated CakePHP app before, so I like to think I know my way around

Baffling blank screen problem

2010-11-16 Thread Jules
I have a new CakePHP installation I'm fiddling around with. I've built a reasonably sophisticated CakePHP app before, so I like to think I know my way around CakePHP, but am by no means an expert. On my new installation, my test page (/pages/home) works fine. If I come back after a few hours and

Re: Can't get SimpleTest 1.0.1 working with CakePHP 1.3.5

2010-11-06 Thread Jules
Thanks Nick, tests working well from the shell! 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

Can't get SimpleTest 1.0.1 working with CakePHP 1.3.5

2010-11-04 Thread Jules
Ok, I have a fresh CakePHP 1.3.5 installation. When I run /test.php, I get a page telling me to install SimpleTest. So far so good. After I install SimpleTest 1.0.1 to /vendors, I can't load /test.php any more. Different browsers give different errors; Chrome: Error 330

Re: Can't get SimpleTest 1.0.1 working with CakePHP 1.3.5

2010-11-04 Thread Jules
Update: the root page says; PCRE has not been compiled with Unicode support. Recompile PCRE with Unicode support by adding --enable-unicode- properties when configuring Possibly connected? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related

Re: Can't get SimpleTest 1.0.1 working with CakePHP 1.3.5

2010-11-04 Thread Jules
Another update: I can run my unit tests from Opera (but all other browsers choke). While this is far from ideal, it will do for now. Still nervous about the PCRE problem though, I think that will haunt me later. Check out the new CakePHP Questions site http://cakeqs.org and help others with

Re: saving hasMany relation

2010-08-19 Thread Jules
You're overwriting previous values so the last one will be the only one saved. Try: $this-data['LinkAdditionalInformation'][] = array( 'title' = $this-Session-read('abc.contact.phone_title1'), 'content' = $this-Session-read('abc.contact.phone_number1') );

Re: New install not finding Js files

2010-05-26 Thread Jules
')); When viewing source correct script tag entered: script type= text/javascript src=/js/jquery.1.4.2.js/script Cheers Jules On 26 May 2010 04:22, nurvzy nur...@gmail.com wrote: Hi Jules,  Where are you storing your js files and how are you calling them? Nick On May 25, 1:49

New install not finding Js files

2010-05-25 Thread Jules
Installed CakePHP 1.3, all working fine css file being found but as soon as I try to add a js file I get a missing JsController error. I can't find any reason for this, mod_rewrite seems to be working or the css wouldn't be found. If anyone knows how to fix please help this error is driving me

Re: Weird problem with form that doesn't use model

2010-01-31 Thread Jules
Bingo! It's a beautiful thing. Thanks Miles J. On Jan 31, 9:27 pm, Miles J mileswjohn...@gmail.com wrote: Try null instead of false, see if that works. On Jan 30, 8:02 pm, Jules fattyju...@gmail.com wrote: Hi everyone, I'm experiencing extreme frustration with this problem! Luckily, it's

Weird problem with form that doesn't use model

2010-01-30 Thread Jules
Hi everyone, I'm experiencing extreme frustration with this problem! Luckily, it's easy to reproduce. In any controller, create this method; function test() { debug($this-data); } Then create a corresponding view called 'test'; ?php echo $form-create(false,array('action'='test')); echo

How do I force redirect after login

2009-11-16 Thread Jules
I need to force users to a particular url after they've successfully login. Currently if a non-logged-in user tries to access an authentication- protected page, the are sent to the login page - so far so good. However, after successful login, they are sent to the page they had previously tried to

Re: How do I force redirect after login

2009-11-16 Thread Jules
Thanks Lance, I've tried this, but the login() action in the users controller doesn't appear to fire after the user logs in... On Nov 17, 3:30 pm, Lance Willett nano...@gmail.com wrote: Jules, In order to force a specific redirect after login you'll need to specify that redirect in the login

Re: How do I force redirect after login

2009-11-16 Thread Jules
Wait, found it. I had to set $this-Auth-autoRedirect=FALSE in UsersController::beforeFilter(). Thanks! http://book.cakephp.org/view/395/autoRedirect -- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to

Re: Problem with fixtures and test data

2009-09-20 Thread Jules
Found a solution; http://www.sitepoint.com/forums/showthread.php?p=4381257 --~--~-~--~~~---~--~~ 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

Re: Problem with fixtures and test data

2009-09-17 Thread Jules
Anybody? Pretty please? --~--~-~--~~~---~--~~ 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

Problem with fixtures and test data

2009-09-15 Thread Jules
Hi, I've got a problem with a unit test retrieving REAL data, where I need to be using fixture data. I'll explain by way of example. - Model Widgets has a method abc(). - Widget-abc() retrieves data from another model, Shapes. The 2 models are NOT joined by any table relationships. The

How to suppress authorisation error

2009-06-16 Thread Jules
Can anyone help? I'd like to suppress the You are not authorized to access that location message when I try to visit a page that I'm not authorised for. I'm happy with the redirection to the login page, I'd just like to hide the error. I can't hide it with CSS, because the same CSS selector is

Re: How to suppress authorisation error

2009-06-16 Thread Jules
That's it! Thanks --~--~-~--~~~---~--~~ 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

Can I called CakeLog::write() like this?

2009-05-26 Thread Jules
I've written a panic() function which resides in config/bootstrap.php, and can be called from anywhere in my CakePHP app. The idea is that it is called when the site admin (me) needs to know that something has happened. I want it to fire and email and write to the log. To write to the log, I'm

Re: Can I called CakeLog::write() like this?

2009-05-26 Thread Jules
That's it Mark, thanks! --~--~-~--~~~---~--~~ 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

Weird login problem

2009-05-19 Thread Jules
Running CakePHP site with Auth. When I visit /users/login or /users/logout, I end up at /users/login. All fine so far. When I try to login, the login fails, and the SQL log shows; SELECT `User`.`id`, `User`.`email`, `User`.`password` FROM `users` AS `User` WHERE `User`.`id` IS NULL LIMIT 1

Re: Weird login problem

2009-05-19 Thread Jules
function beforeRender() { // make logged-in user's details available to ALL pages if($this-Session-check('Auth.User.id')) { $user = $this-Auth-User(); $this-set('logged_in_user', $user['User']); } }

Re: Weird login problem

2009-05-19 Thread Jules
Found it, thanks. I had some custom logout code in AppController::beforeFilter() which was causing the problem. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to

Repopulating a form after an error

2009-05-18 Thread Jules
When a submitted form fails a validation rule, the form is presented back to the user with their values intact. This is obviously a good thing, as the user doesn't have to fill the whole thing in again. I have a form where I need to compare two of the submitted values to make sure they're not

Re: Repopulating a form after an error

2009-05-18 Thread Jules
Thank you Brian, I wasn't aware that you could write a custom validation function. However, I've tried both methods, and am still having the same problem. In both cases, the form comes back with fresh data in it. I have confirmed that the custom validation rule is firing.

Special validation requirement - how do I preserve form values?

2009-05-13 Thread Jules
I have a form where, if the user enters the same value into two fields, they see an error message and have to fill in the form again. 1) I compare the two fields in the controller. Is there a way to create a validator in the model that can compare two fields in the same form? 2) If the answer

Re: Advanced relationships and recursiveness

2006-04-12 Thread Jules
Hi ! Did you manage to resolve your problem ? 'cos I have the same issue with a HasAndBelongsToMany relationship ... Herlp ;-) Jules --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post

$hasAndBelongsToMany, findAll and $fields ... I'm becoming crazy ... help !

2006-04-12 Thread Jules
Hi all ! I need help on a simple issue ... well not so simple for me Let's resume the situation : 3 tables : Categories , Products and categories_products. Categories and Products have a n,m relationship so we've got the following models : * Pour Category.php * class Category extends