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
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
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
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
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'
);
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:
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
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
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
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
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
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
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.
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
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
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
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
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` (
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
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
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
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
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
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
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
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
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
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!
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)
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
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
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
32 matches
Mail list logo