Cakephp App::import() broken

2011-02-10 Thread RLR
I am struggling with a strange bug regarding cakephp´s App::import function. cakephp version 1.3.6 php 5.3 I have a working cake app. Auth login and redirecting to home page works fine. As soon as I App::import('Vendor', 'DateCalc', array('file' = 'date_calc.php')); -- Our newest site for

Cakephp App::import() broken

2011-02-10 Thread RLR
I am struggling with a strange bug regarding cakephp´s App::import function. cakephp version 1.3.6 php 5.3 I have a working cake app. Auth login and redirecting to home page works fine. As soon as I App::import('Vendor', 'DateCalc', array('file' = 'date_calc.php')); -- Our newest site for

Re: Cakephp App::import() broken

2011-02-10 Thread RLR
Sorry for the broken post. I prematurely hit return. I am struggling with a strange bug regarding cakephp´s App::import function. cakephp version 1.3.6 php 5.3 I have a working cake app. Auth login and redirecting to home page works fine. As soon as I put the following line in app_controller

Re: Cakephp App::import() broken

2011-02-10 Thread RLR
I thought that was the problem to... the file only contains: ?php $str = hello world; ? no echo, no trailing return or whitespace. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help

Re: Cakephp App::import() broken

2011-02-10 Thread RLR
As soon as I take the App:Import statement out everything works.I suspect it has to do with php 5.3. I have a machine running 5.2.x and this does not happen. The debugger shows this: 'level', 'error', 'code', 'helpID', 'description', 'file', 'path', 'line', 'context' );

p28n infinite redirect cake 1.2 rc2

2008-09-09 Thread RLR
I have started working on a new app with cakephp 1.2.0.7296 RC2. I would like to use the p28n controller/component which works great with my other apps (1.2.0.5427alpha). As soon as I plug in the code and routes my app crashes. I get an infinite redirect error. I have the following setup:

Re: p28n infinite redirect cake 1.2 rc2

2008-09-09 Thread RLR
The problem seems to be with the routes. When I comment them out I can manually call /P28n/change/eng It seem to be that the Auth component is interfering... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP

Re: p28n infinite redirect cake 1.2 rc2

2008-09-09 Thread RLR
The first routing rule is faulty. (I do not know why) When I uncomment it P28n works. On Sep 9, 4:30 pm, RLR [EMAIL PROTECTED] wrote: The problem seems to be with the routes. When I comment them out I can manually call /P28n/change/eng It seem to be that the Auth component is interfering

Cakephp 1.2 RC2 update

2008-09-04 Thread RLR
I felt very adventurous today and decided to update my app which was running on cakehphp 1.2.0.5427alpha to cakephp 1.2.0.6311 beta I fixed the deprecated warnings for vendors() and loadModel() but now I have no clue on why my app will not run anymore. I get a Too many redirects occurred trying

Re: HABTM Find by membership question

2008-01-16 Thread RLR
Ok I found the information in the list. I can just call $this-Person-AbookGroup-findAll() and it returns the people associated with the group... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To

Re: HABTM Find by membership question

2008-01-16 Thread RLR
with the group should be in $results['Person'] Dave On Jan 16, 6:19 am, RLR [EMAIL PROTECTED] wrote: Hi I am working on an addressbook app with two basic models: people and groups They are related via a HABTM relationship and a join table Tables: people   `id`   `firstname`   `lastname

Prevent Cake 1.2 from auto inserting 0000-00-00 00:00:00 in datetime field

2007-11-08 Thread RLR
Cake 1.2 keeps auto inserting -00-00 00:00:00 into my datetime field even though the table field is defined as: `recurring_date` datetime default NULL, When I save the form I see in the sql debug query that the value from recurring_date is set to ''. In the db it is still being saved as

Re: Prevent Cake 1.2 from auto inserting 0000-00-00 00:00:00 in datetime field

2007-11-08 Thread RLR
I found out why this is happening. Mysql seems to be responsible for this and not cake. sorry. Anyway the solution is to set the recurring_date = NULL in beforeSave as mentioned by sensor. My code was setting recurring_date = Now it works.

Re: Prevent Cake 1.2 from auto inserting 0000-00-00 00:00:00 in datetime field

2007-11-08 Thread RLR
Thanks for your suggestions. I double checked everything (db structure) and cake still behaves this way for me :( Even when I use beforeSave to replace -00-00 00:00:00 with null the database row ends up the same. I also tried using a different table that is scaffolded. Could it be the

Re: Prevent Cake 1.2 from auto inserting 0000-00-00 00:00:00 into input fields

2007-10-19 Thread RLR
Thanks for your reply Nate but the default value is defined as NULL e.g. `recurring_date` datetime default NULL, Any other suggestions? On Oct 19, 9:32 pm, nate [EMAIL PROTECTED] wrote: Change the default value of the column to NULL. On Oct 19, 3:10 pm, RLR [EMAIL PROTECTED] wrote: I

Prevent Cake 1.2 from auto inserting 0000-00-00 00:00:00 into input fields

2007-10-19 Thread RLR
I recently started using cakephp 1.2 branch. The problem I am having is that a date field in my app is always saved/ reloaded with -00-00 00:00:00. I would prefer to use a NULL value when no date has been entered. How can I change/fix this behavior? Thanks

Re: SoftDelete Behavior not working

2007-10-12 Thread RLR
Thanks grigri alot for pointing that out! I spent several hours trying to find whats wrong. Have a great day! On Oct 11, 1:17 pm, grigri [EMAIL PROTECTED] wrote: it's $actsAs, not $actAs On Oct 10, 8:46 pm, RLR [EMAIL PROTECTED] wrote: I am trying to use the SoftDelete behavior

SoftDelete Behavior not working

2007-10-10 Thread RLR
I am trying to use the SoftDelete behavior as described at the bakery but nothings is happing other than the records are being deleted as usual. cake version 1.2.0.5427alpha Installed the soft_delete.php in /app/models/behaviors I added the fields to the db table: CREATE TABLE `contacts` (

CakePHP Testing Suite v 1.2

2007-09-17 Thread RLR
Hi, I have just tried to complete the testing tutorial http://bakery.cakephp.org/articles/view/testing-models-with-cakephp-1-2-test-suite from the bakery but it does not work for me. Basically i have followed everthing exactly as in the article with the exception that I use my model Document

Implementation question - dependant data

2007-08-29 Thread RLR
for a Courseregistration - the Person, the Course or both??? Thanks RLR --~--~-~--~~~---~--~~ 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

Re: Safari 3 and Firefox do not understand the urls my cake app is generating...

2007-06-29 Thread RLR
of ideas. Thanks RLR --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] For more

Safari 3 and Firefox do not understand the urls my cake app is generating...

2007-06-28 Thread RLR
using cake 1.1.13.4450 Can someone confirm this behavior and how can I fix this? Thanks! RLR --~--~-~--~~~---~--~~ 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

Re: Cakephp Firefox Redirect Error

2007-05-10 Thread RLR
Thanks for your reply AD, I will try that. --~--~-~--~~~---~--~~ 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, send email

Cakephp Firefox Redirect Error

2007-05-09 Thread RLR
for this address in a way that will never complete. * This problem can sometimes be caused by disabling or refusing to accept cookies. All other browsers work fine (IE6, Safari etc.). I double checked cookies and javascript settings both are enabled. Thanks! RLR

Calling cake actions via cli or cron

2007-04-18 Thread RLR
I would like to call a controller action with cron that checks and processes new registrations at regular intervals. I have created a test file: cron.php ?php $_GET['url'] = 'favicon.ico'; define('CRON_DISPATCHER',true); require_once 'webroot/index.php'; $cake_dispatcher=new

Re: Calling cake actions via cli or cron

2007-04-18 Thread RLR
Thanks for your reply. I have read that article and almost solved my problem with gwoos cli code from the bakery. The session problem still remains though. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP

Building an admininstration area

2007-04-12 Thread RLR
I would like to create an administration area in my application where an admin user can edit the preferences, administrate users and groups, edit access controls and so forth. The settings are stored in the database and I have baked controllers and models for each of the db tables. Due to the

Url parameters implementation question

2007-03-27 Thread RLR
In my addressbook application I have several paged addresses and a search form. When I edit an address and save it I redirect the browser and loose all parameters (search words etc.) Is there a cakephp way or best practice to store and retrieve these url parameters application wide? Thanks!

Update from 1.1 to 1.2 question

2007-03-21 Thread RLR
I just upgraded to cake 1.2.x.x today. Two things are driving me nuts and I can´t find out what is different. 1. Cake echos the controller name called and messes up my layout. Where is the code that is doing this? 2. I get errors about undefined properties for a helper (pdf helper from bakery)

Are Cakephp queries being cached that interfere with my batch import function?

2007-03-20 Thread RLR
Im trying to import online registrations into my cakephp application. The registration data is stored in a db table. Currently my application queries the pending registration data and loops through the result set. Splits the data into relevant pieces that are inserted into cakephp db tables via

Re: Are Cakephp queries being cached that interfere with my batch import function?

2007-03-20 Thread RLR
I found the answer myself... I disabled caching in the model by setting $this-Person-cacheQueries = false; now the app behaves as expected... Have a nive day! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake

naviation by categories

2007-03-06 Thread RLR
I am working on an course registration application. It is my first project with cakephp. The courses are organized in hierarchial course_categories via a category_id. The scaffolding and DB structure work fine but I am a little stumped on how to proceed with the interface. I intend to navigate