Hi Fabio,
I've tried your link, but it is invalid.
Could you please try to posting it again?
thanks
On 28 ago, 08:51, fabiox <3bi...@gmail.com> wrote:
> Hi DeFranco, i'm a CakePHP newbie and i'm handling on a quite similar topic
> for
> which i've op
Here follows my dirty solution I've created:
app_controller.php:
function _beforeScaffold($method) {
$this->_HABTM_scaffold_preserve($method);
return parent::_beforeScaffold($method);
}
function _HABTM_scaffold_preserve($method){
no ideas? :(
--~--~-~--~~~---~--~~
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
cake-php+unsubscr...@googlegr
More details about the tables:
columns
--
id
name
columns_panels
--
id
column_id
panel_id
width <-- This is the additional join table data, that get lost
when I edit any columns fields.
panels
--
id
name
The problem is that when I update column using scaffold (e
no ideas?
--~--~-~--~~~---~--~~
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
cake-php+unsubscr...@googlegroup
Hi,
My join table additional data get lost when I update any of the 2
models that has HABTM relation:
I have 2 models that has HABTM relation and the join table between
these has additional data.
The problem is that when I edit and update any record on first model,
it will delete and insert joi
On Nov 20, 11:33 am, "Renan Gonçalves" <[EMAIL PROTECTED]> wrote:
> Defranco,
>
> Should report if you are in development mode (debug more than 0).
> That is what that condition does.
>
> So, just increase the debug level and the E_NOTICE's will be showed.
&
Hi,
I've tried several different nightly build versions (November/2008
versions) after RC3 and were unable to run test suites for my
project.
Looks like fixtures are not working properly and several tests drops
due missing table issues.
Have you experienced these problems with fixtures for the
On Nov 19, 10:12 pm, mark_story <[EMAIL PROTECTED]> wrote:
> To resurrect this threadcodecoveragewas broken for me on my new
> computer. But by changing line 115 of /cake/tests/lib/
> code_coverage_manager.php to
>
> xdebug_start_code_coverage(XDEBUG_CC_UNUSED);
>
> it started to work! Hope it s
}
Configure::write('log', LOG_NOTICE);
} else {
// removed by defranco: error_reporting(0);
Configure::write('log', LOG_NOTICE);
}
Hi,
Regarding controller testing using Test Suite on 1.2.RC3:
How do I test resulting data after I run testAction and
fixturize=true? The problem is that all all tables are dropped after
testAction routine.
For example if I run a simple testAction:
$this->testAction( "/mycontroller/index"
no one?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options,
Same problem here.
The problem is that not only the documentation is suggesting this test
case layout, but also bake when generating test case files (I think).
rgds
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"C
On Oct 6, 5:38 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> I had that. Thought the problem was all me. I am still a bit fuzzy on
> a lot of the testing stuff.
> Try this:
> var $import = array('model' => 'Foo', 'connection' => 'default');
>
> I noticed that one of the examples in the Cook
Hi,
I just downloaded 1.2.RC3 and noticed that $import is not working on
RC3 as it was on RC2:
Foo_fixture.php:
'Foo', 'records' => false);
}
?>
It should import the existing table foos from model Foo, but it is not
working on RC3 and was working on RC2.
I get an error:
Missing database ta
Hi,
Is possible to debug console shell execution using xDebug or Zend
Debugger?
I managed to debug any standard cake execution except console commands
due looks like my eclipse IDE only allow debug using browser not by
using CLI - but I'm not sure.
kind regards
Erico
--~--~-~--~~
On Sep 3, 6:06 pm, mark_story <[EMAIL PROTECTED]> wrote:
> Erico,
>
> I will look into this tonight, and get it fixed. I'm not sure why the
> buffering is there, perhaps someone else on the team knows why it is
> there. But as far as I can see there is no need for it to be there.
Thank you!!
--
bug set to 1
kind regards
defranco
--~--~-~--~~~---~--~~
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
no ideas?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more option
Hi,
I'm trying to import a Joining table on a fixture:
var $import = array('model' => 'Model1Model2', 'records' => true);
But when importing the table to test_suite database it is creating a
table with just 1 primary key instead of 2 primary keys as original
table has (model1_id or model2_i
Solved!
It was my mistake, not a bug: I had a user permission problem so it
returned null for [Create Procedure]
Thanks for your help Clark
/defranco
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
On 17 abr, 17:26, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> is it returning something that cake should be able to understand? try
> debugging out the data in your *sql_dbo file before it gets put into
> an array
Its a nice idea, but what is sql_dbo file? I tried to Google it but it
just po
no ideas?
--~--~-~--~~~---~--~~
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 optio
Should I report the fact that $model->setDataSource($dbConfig) do not
affect related models as a bug or as an enhancement?
Actually, if I set
$model->setDataSource('test_suite');
Related model like $model->Model2 will still have $dbConfig='default'
not $dbConfig='test_suite' as the main model
Bug reported:
https://trac.cakephp.org/ticket/4488
--~--~-~--~~~---~--~~
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
On Mar 31, 8:48 am, Defranco <[EMAIL PROTECTED]> wrote:
> On 27 mar, 16:16, Sliv <[EMAIL PROTECTED]> wrote:
>
> > I haven't tried this, but you may want to check it out:
>
> >http://lemoncake.wordpress.com/2007/06/24/cakephp-test-suite-shell/
looks like it d
no ideas?
--~--~-~--~~~---~--~~
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 optio
On 14 abr, 19:24, Sam DeVore <[EMAIL PROTECTED]> wrote:
> My guess is that it is related to the fact that php is loosely typed
> and the ambiguity in something like '0'
It looks like that cakephp is checking if $model->id is false to check
if it has an id or not during save operation (if it do no
On 14 abr, 18:48, Stephen Orr <[EMAIL PROTECTED]> wrote:
> MySQL specifically disallows an ID of 0. I've tested this manually by
> inserting a test row with an ID of 0 into an auto_incremented column.
> It ignores it, and gives it an ID of 1 instead.
Ok,
I agree with you regarding numeric PKs.
nobody?
/erico
--~--~-~--~~~---~--~~
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
Hi,
I noticed that cakephp will not allow to update registers with primary
key with 0 or '0' :
for example:
$this->data->id = '0'; // or ->id = 0
$this->save($this->data);
Will not work if a register with id=0 already exists due it will
understand it as id = false (new register) and will pr
Hi all,
Is possible to limit the number of results in a habtm association
query?
I have a model1 that has a habtm with model2 - when i query $model1-
>find(), an item of model1 has 50,000 model2 items and is crashing
php
Is possible to limit the number of items of model2 when I query for
model
Hi,
I'm running some routines on my applications via custom console
scripts (shell);
It is working fine, but when a php errors occurs, it is not generating
any kind of message (it do not prints the error on console screen nor
generate error on logs files like web interface does).
So I checked a
Hi,
I'm attempting to read a stored procedure contents (its code) by
issuing the following sql command:
SHOW CREATE PROCEDURE my_stored_procedure
That would return a table like:
procedure | sql_mode | Create Procedure
---
my_
On 27 mar, 16:16, Sliv <[EMAIL PROTECTED]> wrote:
> I haven't tried this, but you may want to check it out:
>
> http://lemoncake.wordpress.com/2007/06/24/cakephp-test-suite-shell/
Hi Sliv,
Thank you very much,
This is exactly what I'm looking for - I'll give a try and provide a
feedback here,
Is there a standard way to run Test Suite 1.2 cases using a script
(like console) or the only way is via web interface?
I'm running it trying to run unix commands like:
php webroot/test.php | lynx -stdin -dump
but I want to know if there is a better way to do it.
thanks
Erico
--~--~
Hi all,
I'm running test suite 1.2 and I'm getting some core test cases fails
on 1.2 beta.
Is there a standard test report for the core test cases that core
people got while released cake 1.2 beta so I could compare fails
results to check if cake is working fine on my system.
regards
Erico
--~
No ideas?
Also I found this bug on Trac that I think that is related with my
issue:
https://trac.cakephp.org/ticket/4224
/Erico
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this grou
Hi all,
I'm having multiple problems using non numeric index with Mysql and
CakePHP 1.2, specifically when it reaches a index that is a pure
number -- AFAIK, cakephp supports non numeric index.
Example: I have this table using a non numeric index:
id* (varchar) | foo (varchar)
xpt
Hi Dardo,
Very interesting this article.
Thanks for the reply.
--~--~-~--~~~---~--~~
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 thi
Hi
thank you for the clarification and for the nice tips!
regards
Erico
--~--~-~--~~~---~--~~
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 unsubscr
Hi,
What is the best method on turning off temporally associations for a
model on determined operations?
I have a model that has too many associations and this is causing
performance issues.
If I could turn off certain associations for this model for specific
finds cases that some association i
Hi all,
Is acceptable to use a sql view table (a virtual sql table based on
predefined permanent queries) instead a using a controller logic for a
specific case?
I have a complex query between several tables and looks like that
would be too hard to do it using models relations and controller log
;
>
> ?>
Hi dardosordi,
This is exactly what I'm looking for!
thanks for your help
/defranco
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email
ables from it instead of just a
string that it normally returns -- is it possible? -- is there some
workaround that I can use to return a collection of variables (array
for example) from a single render element?
thanks
DeFranco
--~--~-~--~~~---~--~~
You received
On Apr 25, 10:09 pm, Defranco <[EMAIL PROTECTED]> wrote:
> include("../../cake/libs/model/model.php");
> include("../../cake/app_model.php");
> include("../models/MyModel.php"); //my model php file
Latter I discovered that these includes on rout
no ideas?
defranco
--~--~-~--~~~---~--~~
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
hp");
include("../models/MyModel.php"); //my model php file
thank you
/defranco
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-ph
no answers? its so difficulty like that?
/defranco
--~--~-~--~~~---~--~~
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
is a basic question - I'm new in Pagination.
regards
Defranco
--~--~-~--~~~---~--~~
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 unsubscri
Hi,
Is possible to call a specific controller function from Routes.php to
retrieve data?
I want to do this due I would like to retrieve Database data to use on
route configuration. How would I do this?
regards
/defranco
--~--~-~--~~~---~--~~
You received this
51 matches
Mail list logo