1.1.x Testsuite and Session

2008-05-09 Thread Davide
I'm browsing a bit api and google. Does someone has an idea on how reach the goal? I've also tried setting a local SessionComponent with loadComponent("Session"); $this->Session = new SessionComponent(); but it seems that the session I'm using in the testsuite is

Re: Alias?

2008-05-05 Thread Davide
Davide wrote: > unfortunly Router::connect() seems not to work for me. Cake > 1.1.18. It's simply ignored. But you gave me a hint and using > $Route->connect(...) I can achieve my goal. > > However I have to add a $Route->connect() for each action and it's not &g

Re: Alias?

2008-04-29 Thread Davide
18. It's simply ignored. But you gave me a hint and using $Route->connect(...) I can achieve my goal. However I have to add a $Route->connect() for each action and it's not beautiful and subject to errors. I'm thinking in a workaround solution. I will post it here. T

Re: Alias?

2008-04-28 Thread Davide
? Following the code. Bye and thanks Davide /* * app/error.php */ class AppError extends ErrorHandler{ function missingAction($params){ switch($params["className"]){ case "ProjectsController": loadModel("Project"); $model = ne

Re: Undefined variable: html

2008-04-24 Thread Davide
williamn wrote: > Notice: Undefined variable: html in D:\xampp\htdocs\sirusananda\app > \views\layouts\default.thtml on line 17 > > Fatal error: Call to a member function css() on a non-object in D: > \xampp\htdocs\sirusananda\app\views\layouts\default.thtml on line 17 > > But when I switch back,

Re: Ajax::observeField

2008-04-24 Thread Davide
ow everything is working out right. Thanks a lot Bye Davide -- Live life like you're gonna die. Because you're gonna. William Shatner --~--~-~--~~~---~--~~ You received this message because you are subscr

Re: Ajax::observeField

2008-04-23 Thread Davide
Chris Hartjes wrote: > You might have to change some stuff in your config/core.php file. > > Look for Session.checkAgent > > Often you have do > > Configure::write('Session.checkAgent', false); > > to preserve sessions when using Ajax Session.checkAgent is not defined in my core.php. I tried defi

Re: Ajax::observeField

2008-04-23 Thread Davide
A strange thing regarding this topic. I can't understand where's the problem. Everytime I call the method with the observeField, all my Session data is lost and so I'm disconnected. It's the first time I'm using Ajax+AjaxHelper+Cake, so I could do something wrong. When I remove the observeFiel

Re: Problem with ajax

2008-04-23 Thread Davide
mkaelkael wrote: > ... > > listlevel.thtml is a views and in the same directory than the > index.thml Don't know if it's right to refer directly to a thtml file, but try remove the initial slash from "/listlevel.." so linking to "listlevel..." Bye D

Re: Ajax::observeField

2008-04-23 Thread Davide
Davide wrote: > ... > everything "works" except that it's returned to me that is missing > argument 1 for the controller action. Solved at moment making the function argument as optional and testing for the existence of $this->data["Project"]["name&qu

Re: Getting the HTTP host ?

2008-04-23 Thread Davide
Neveldo wrote: > ... > Or must I simply use $_SERVER['HTTP_HOST'] ? Don't know, I always use the $_SERVER variable. Bye Davide -- Live life like you're gonna die. Because you're gonna.

Ajax::observeField

2008-04-23 Thread Davide
s:['X-Update', 'web']} ) } ) everything "works" except that it's returned to me that is missing argument 1 for the controller action. Maybe I'm missing some parameter to the observeField function. Bye Davide -- Live life like you'

Re: Alias?

2008-04-18 Thread Davide
Davide wrote: > ... > How can I render the correct page without doing a redirect? At the moment I've solved in this way. Don't know if it's the right way but it's working. Thanks a lot Bye Davide findByName($params["action"]);

Alias?

2008-04-18 Thread Davide
ion: is it possible to specify a different ErrorHandler for a controller? So it could be possible to avoid ugly switch. Something like setting the errorHandler variable inside the controller. Thanks a lot Davide findByName($params["action"]); echo $this->requestAction("/pr

Testsuite and 1.1

2008-01-22 Thread Davide
report any bugs or not. Thanks and bye Davide PS: I'm using 1.1.18 1. http://cakeforge.org/projects/testsuite/ -- Live life like you're gonna die. Because you're gonna. William Shatner --~--~-~--~~~---~-

Re: Version of cakephp

2008-01-21 Thread Davide
changed from the 1.1 and the 1.2. However, I remind, I've never used the 1.2 one and I may be wrong. Bye Davide -- Live life like you're gonna die. Because you're gonna. William Shatner --~--~-~--~~~---~--~

Re: session problems with cake 1.18 and CAKE_SECURITY=high?

2008-01-08 Thread Davide
Martin Schapendonk wrote: > > On 1/8/08, Davide <> wrote: >> I've also tried with security HIGH, MEDIUM and LOW but none of them >> works. When I get back to 1.1.18 everything is ok. > > This may be trivial, but the setting is case sensitive. Did you try >

Re: session problems with cake 1.18 and CAKE_SECURITY=high?

2008-01-08 Thread Davide
cedure I login in a controller setting some session variables, then redirect to another controller. In this last all checks of session variables are empty. I've also tried with security HIGH, MEDIUM and LOW but none of them works. When I get back to 1.1.18 everything is ok. Bye and th

Re: New To Cake PHP

2007-12-21 Thread Davide
ning this framework. Maybe something now it's deprecated. HTH Bye Davide 1. http://edivad.wordpress.com/2007/04/06/learning-cakephp/ -- Live life like you're gonna die. Because you're gonna.

Helper? Ajax? Which better?

2007-12-18 Thread Davide
set("data",$this->data); Now, I should have to load it in a div inside the homepage (/pages/home.thtml). I thought about using an helper that load the data using the previous function and render a div. How can I better reach this result? Using an Helper? Using Ajax? And how for both

Helper? Ajax? Which better?

2007-12-18 Thread Davide
sing the previous function and render a div. How can I better reach this result? Using an Helper? Using Ajax? And how for both of them? Thanks in advance Davide -- Live life like you're gonna die. Because you're gonna. William Sh

Re: Need a helpful tutorial

2007-06-12 Thread Davide
ber >> I am new in CakePHP. So i need a free Cake PHP >> tutorial. Please give me any tutorial or link. Thanks for yours help. >> I've summed up[1] some references for learning CakePHP on my blog. Bye Davide 1. http://edivad.wordpress.com/2007/04/06/lea

Re: Does cake cache plugins

2007-06-01 Thread Davide
person than me with caching. What if you try to cache an xml stream? Bye and thank Davide --~--~-~--~~~---~--~~ 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@goog

Re: Does cake cache plugins

2007-05-31 Thread Davide
Davide wrote: > ... > Which would be the best way to solve this? However I'm still > investigating. A quick solution to be tested. I've tested a bit but need to be tested more: in cake/libs/views/helpers/cache.php 260 ?>' ;//. $content; 26

Re: Does cake cache plugins

2007-05-31 Thread Davide
I got it! The problems was in the plugin. It force to use no layout and this make no cache. I've added /app/plugins/rss/views/layouts/rss.thtml with this simple code and then in /app/plugins/rss/controllers/rss_controller.php I've substituted line 86 from $this->layout = ''; to $th

Re: Does cake cache plugins

2007-05-31 Thread Davide
Davide wrote: > It comes in my mind: "Luke, use the source"... But if someone else has > an answer that can avoid me the source :) I was looking in the source and I found that at line 117 of cake/libs/view/helpers/cache.php[1] there's an If statement If I comment the test

Re: Understanding validator regex

2007-05-31 Thread Davide
" at start of regex > - Why there is a "/" at start > -What is the meaning of "\\z/i" at final of regex All of those because (always I think) because the preg_match() function is used for re checking. So a perl like syntax should be used. Bye Davide --~--~-

Re: Does cake cache plugins

2007-05-30 Thread Davide
Samuel DeVore wrote: > request the page once... (see if it shows up in the caches/view folder > in temp I thought that too and no page in app/tmp/cache/views. It comes in my mind: "Luke, use the source"... But if someone else has an answer that can avoid me the source :

Re: Does cake cache plugins

2007-05-30 Thread Davide
Chris Hartjes wrote: > As far as I know (I know I will be corrected if I am wrong) caching > will only occur if you have debug set to 0. Maybe right but there's no mention of that in the manual. If true, how can I check for cache working? Th

Does cake cache plugins

2007-05-30 Thread Davide
quot;+1 hour"; However, watching at the generated rss appened there's always the executed query (with different time of execution). So the question is: am I wrong with somethig or cake doesn't support cache for plugins? Thanks a lot D

Re: Why cake save to 0 value if you are editing a model ?

2007-05-23 Thread Davide
ENGINE=MyISAM DEFAULT CHARSET=latin1 mysql> insert into xyz (field2) value (1); Query OK, 1 row affected (0.00 sec) mysql> select * from xyz; +++ | field1 | field2 | +++ | NULL | 1 | +++ 1 row in set (0.00 sec) I had t

Re: learn cakephp and develop a system

2007-05-18 Thread Davide
rtanz wrote: > ... > an intermediate php user like me to learn how to use cake and develop > ... On my blog I've summed up some resources for learning CakePHP in a post[1]. HTH Davide 1. http://edivad.wordpress.com/2007/04/06/le

Re: Error while uploading files

2007-04-20 Thread Davide
but didn't work, and I can even understand why. Do you know a way to solve it, or should I have to contact the administrators in order to set the variable? Thank a lot Davide function beforeFilter(){ parent::beforeFilter(); //Configure::write("debug",1); $tmp_dir

Error while uploading files

2007-04-19 Thread Davide
[error] => 6 [size] => 0 ) ) ) Where can I get a translations of error field? I've done a search but without success. Thanks a lot Davide --~--~-~--~~~---~--~~ You received this message because you are subsc

Re: Problem with Model::afterSave() callback

2007-04-17 Thread Davide
lifecycle, then direct $model- >>execute('UPDATE blah, blah') calls will work. Hmmm i forgot this method :) Thank bye Davide --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP"

Re: Problem with Model::afterSave() callback

2007-04-17 Thread Davide
Davide wrote: > ... > I'm trying to use the afterSave callback in order to update a field of a > just inserted record. > > I have this code[1]. If I didn't comment the saveField() statement, the > browser (FireFox) will complain saying[2]. > ... Finally after

Problem with Model::afterSave() callback

2007-04-16 Thread Davide
Hello everybody. I'm trying to use the afterSave callback in order to update a field of a just inserted record. I have this code[1]. If I didn't comment the saveField() statement, the browser (FireFox) will complain saying[2]. What could it be? Thanks a lot Davide 1. //

Re: (HtmlHelper::submit) Deprecated: Use FormHelper::submit instead | switch off?

2007-04-16 Thread Davide
Schubidu wrote: > > I changed > submit('Save') ?> > to > submit('Save') ?> > > but it doesnt works. Did you include the form helper in your controller? $helpers = array(...,"form",...); What error it gives to you? Bye Davide --~--~---

Re: Cache?

2007-04-10 Thread Davide
jonatha wrote: > > I have had the same problem on an hosted server. > My solution was to disable caching on webserver via meta headers. Can you please post how you did it? Thanks a lot Davide --~--~-~--~~~---~--~~ You received this message becaus

Cache?

2007-04-06 Thread Davide
et the previous page. For example, after login I will be redirected to a page and a greeting message with setFlash() is presented. It happens that often I will be redirected to the page but the message doesn't appear. A simple refresh and I see the message. What do you think I cou

Re: R: Included library

2007-04-04 Thread Davide
urations problems like that :) Thanks Davide --~--~-~--~~~---~--~~ 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, sen

Included library

2007-04-04 Thread Davide
ke to know if I missed some configuration. I've actually solved the problem putting the @ before the file_exists() call. Thank a lot and Bye Davide --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PH

Re: For every model every database table also?

2007-03-08 Thread Davide
emember the syntax but the logic is redirect all request of "about" controller to "pages" controller on the action "display" and the page "about". Bye Davide --~--~-~--~~~---~--~~ You received this message because you are

Re: cakephp tutorial

2007-02-05 Thread Davide
Daniel Hofstetter said: > > There is no book available yet, but try the manual (http:// > manual.cakephp.org) or try this :) http://groups.google.com/group/cake-php/browse_thread/thread/a967f1218a43ff5c/eb422cd8f6b691fd#eb422cd8f6b691fd --~--~-~--~~~---~--~~ Y

Re: testsuite, some examples.

2007-02-01 Thread Davide
Davide said: > Davide said: >> The main problem is that I don't know how to use the testsuite, so I >> ... > Actually I've solved in this way[1] and seems to work. I would like to > know if this is the right way to proceed or there's a better way to do > th

Re: testsuite, some examples.

2007-01-31 Thread Davide
Davide said: > The main problem is that I don't know how to use the testsuite, so I don't > know if I have to manually load each component (controller and model) or > it should be handled manually by the suite. Actually I've solved in this way[1] and seems to work. I wo

Re: testsuite, some examples.

2007-01-30 Thread Davide
The Posts controller works fine. If I call /posts/index I get a page with sql statements[1]. The main problem is that I don't know how to use the testsuite, so I don't know if I have to manually load each component (controller and model) or it should be handled manually by the suite

Re: testsuite, some examples.

2007-01-30 Thread Davide
Daniel Hofstetter said: > > You may try to use loadController('posts'); instead of require_once. Unfortunately it's not working. I'm getting the same error. The actual code is here[1] Thanks Davide [1] index(); } } ?> --~--~-~--~~~

Re: Please Help me

2007-01-30 Thread Davide
y/os-php-cake5/index.html Bye Davide --~--~-~--~~~---~--~~ 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

testsuite, some examples.

2007-01-30 Thread Davide
s very simple[2]. Surely I'm missing something. Can please someone post an example 'cause google cache is not worthwhile for the wiki and there's no more tutorial on line. Thanks Davide [1]index(); } } ?> [2]class PostsController extends AppController{ var $na

Re: having empty entry in selecttag selected

2006-10-24 Thread davide
ll have all the htmlHelper functionality plus yours. Bye Davide -- By the power of Greyskull... signature.asc Description: OpenPGP digital signature

Re: Helpers and Components

2006-10-20 Thread davide
s this the better way to implement the feature? Otherwise, what do you advise? Thanks and Bye Davide -- By the power of Greyskull... signature.asc Description: OpenPGP digital signature

Helpers and Components

2006-10-20 Thread davide
enced with the vendors()? Bye Davide -- By the power of Greyskull... signature.asc Description: OpenPGP digital signature

Re: find specific data in table

2006-10-19 Thread davide
="moore"; I don't think I understood you right, but if so, maybe you are looking for something like this in your controller method $this->User->findAll(array("name"=>"moore")); Bye Davide -- By the power of Greyskull... signature.asc Description: OpenPGP digital signature

Re: validates bug ?

2006-10-05 Thread davide
davide wrote: > ... > with the pattern "/^[a-z0-9\_\-$/i". Sorry, I forgot the "at least 3 chars". :) "/^[a-z0-9\_\-]{3,}$/i" Bye Davide -- By the power of Greyskull... signature.asc Description: OpenPGP digital signature

Re: validates bug ?

2006-10-05 Thread davide
ied, is vaild even if you specify @@aaa 'cause the "aaa" will validate the expression. If you want the entire string, try with the pattern "/^[a-z0-9\_\-$/i". Hope I didn't say something stupid :) HTH Davide -- By the power of Greyskull... signature.asc Description: OpenPGP digital signature

VALID_AMOUNT

2006-10-04 Thread davide
omeone would like it, he can take it and if someone want to include it in the cake framework (maybe an improved form), can do it. HTH Bye Davide -- By the power of Greyskull... signature.asc Description: OpenPGP digital signature

Trimming posted data

2006-10-04 Thread davide
ex] = trim($elem); } $this->data[$this->name] = $buff; $data = $this->data; } return true; } but it doesn't work. Maybe I miss something. Sorry for the long post. Thanks and bye Davide 1. http://api.cakephp.org/model__php4_8php-source.html#

Re: Changing parentship in ACL

2006-10-02 Thread davide
perfect. Yes as I was saying just some lines aboves, here is the solutions if($this->Aro->setParent(null,$alias)){ if($this->Aro->setParent($group,$alias)){ //yo baby! }else{ //manage error } }else{ //manage error } Thanks

Re: Changing parentship in ACL

2006-10-02 Thread davide
I gave to that user. I've tried something like $this->Aro->recursive = 0; before deleting but then I noticed that inside the delete() method there's no check against the "recursivity"[1]. Bye and thanks Davide 1. http://api.cakephp.org/aclnode_8php-source.html#l00101 -- By the power of Greyskull... signature.asc Description: OpenPGP digital signature

Re: Changing parentship in ACL

2006-10-02 Thread davide
davide wrote: > ... > Watching at the AclNode code, I saw that in the setParent() method, at > line 152 (more or less) there is this code: > >if ($parent_id != null && >$newParent['lft'] <= $object['lft'] && >$newPa

Changing parentship in ACL

2006-10-02 Thread davide
newParent['lft'] <= $object['lft'] && $newParent['rght'] >= $object['rght']) { return false; } It seems to tell that if I try to change the parent to an upper-level node, don't do anything. Why? Is it a cake error or did I m

Re: tmp Warning

2006-09-29 Thread davide
dkni wrote: > > I am using Fedora now. I have no idea how to do that. Do what? Extract the archive or create/give access to tmp directory? Bye Davide -- By the power of Greyskull... signature.asc Description: OpenPGP digital signature

Re: tmp Warning

2006-09-29 Thread davide
, it should be enough to create a writable tmp folder by hand. Bye Davide -- By the power of Greyskull... signature.asc Description: OpenPGP digital signature

Just some requests about new releases

2006-09-27 Thread davide
possible to have a link on the ticket number reference (that points to the right ticket) and maybe the summary of the ticket. It would for faster understand of what ticket is about the fix. Thanks a lot Davide -- By the power of Greyskull... signature.asc Description: OpenPGP digital signature

Re: How can I add admin directory under cakephp framework?

2006-09-05 Thread davide
e from the screencasts page. I'm sure to not to be the only one with this restrictions. /me wants a free net Bye Davide -- By the power of Greyskull... signature.asc Description: OpenPGP digital signature

Re: How can I add admin directory under cakephp framework?

2006-09-04 Thread davide
and bye Davide -- By the power of Greyskull... signature.asc Description: OpenPGP digital signature

Re: Wrong $html->checkbox() value

2006-08-04 Thread davide
Chowsapal wrote: > > Try $html->checkbox('Member/inlist', null, array('value' => 1, > 'checked' => $members['Member']['inlist'])) > > The value => 1 just indicates what value you want to use for true. The problem is that when I don't specify attributes, the checkbox automatically render the valu

Wrong $html->checkbox() value

2006-08-04 Thread davide
("Member/inlist")?> will render Cake version: 1.1.6.3264 php version: 4.4.0 apache version: 2.0.54 I've searched in the track but I didn't find this problems? Do you have this behaviour too? Do you think this is a right behaviour? Do I have to open a ticket? Thanks in advance Davide -- By the power of Greyskull... signature.asc Description: OpenPGP digital signature

Re: About tabels relations in my models

2006-07-21 Thread davide
User"; var $hasAndBelongsToMany = "Group"; class Group extends AppModel var $name = "Group"; var $hasAndBelongsToMany = "User"; HTH bye Davide signature.asc Description: OpenPGP digital signature

Re: HeadHelper problem

2006-07-10 Thread davide
davide wrote: > Maybe I mess something but I can't get what. > > I want to add a custom css to a view. Even if I added to controller, > layout and view, I can't get the css link in the rendered page. See the > bottom for code snippets. Sorry guys, I'm very stupid

HeadHelper problem

2006-07-10 Thread davide
om for code snippets. Some tips? Thanks Davide 1. http://cakeforge.org/snippet/detail.php?type=snippet&id=56 //*** //controller class UsersController extends AppController{ var $name="Users"; var $helpers = array("Html","Error","MyTime&q

HABTM searches

2006-06-28 Thread davide
_id=a.id) join profiles as d on (b.profile_id = d.id) left join states as c on (a.state_id = c.id) where b.profile_id = 4 and d.dt_end_val >= current_date order by a.surname, a.name; is there some cake-way for doing this or should I have to use the findBySQL? Thanks in advance Bye Dav

Re: Application bootstrap.php

2006-06-20 Thread davide
of > the config files exist, but don´t miss any new files should there be > any). Ok, you make upgrade as I do. For me it's a must to backup every evening and before any upgrade. :) regards Davide signature.asc Description: OpenPGP digital signature

Application bootstrap.php

2006-06-20 Thread davide
s provided with the bootstrap.php.default and if a user need it, he will copy the file as boostrap.php and then edit it. Do you think I should open an enhancement ticket? Thanks a lot Davide signature.asc Description: OpenPGP digital signature

Re: $this->Model->findAll() with a model over 5000 records.

2006-06-16 Thread davide
Maybe you can even use pagination[1] :) HTH bye Davide 1. http://wiki.cakephp.org/tutorials:pagination signature.asc Description: OpenPGP digital signature

Re: Trim on $this->params['data']

2006-06-16 Thread davide
... return true; } HTH, bye Davide signature.asc Description: OpenPGP digital signature

Re: CakePHP 1.1.4.3083

2006-06-15 Thread davide
Larry E. Masters aka PhpNut wrote: > This fixed package should correct your errors > http://cakeforge.org/frs/?group_id=23&release_id=105 It works fine. :) Thanks. Davide signature.asc Description: OpenPGP digital signature

Re: CakePHP 1.1.4.3083

2006-06-15 Thread davide
Win32) mod_autoindex_color mod_ssl/2.0.54 OpenSSL/0.9.8 PHP/4.4.0) Regards Davide 1. http://cakeforge.org/frs/download.php/204/cake_1.1.4.3083.tar.gz signature.asc Description: OpenPGP digital signature

Re: CakePHP 1.1.4.3083

2006-06-15 Thread davide
Larry E. Masters aka PhpNut wrote: > ... > CakeForge[3] when its a little more complete. Hopefully some people will be > interested in contributing with some translations once we get it onto > CakeForge. As of this writing, we are one ticket away from 1000. We > ... First of all: great job! :) Th

MyTimeHelper

2006-06-09 Thread davide
in a helper of mine (my first one). At the end the helper code. If you think it's useful, you can insert it in the TimeHelper for a future release. You can also improve, trash, take it as it is; as you like :) Bye Davide signature.asc Description: OpenPGP digital signature

Re: extends a class that extends AppModel

2006-06-07 Thread davide
nate wrote: > David, first of all, the AppModel and AppController that ship with Cake > will always be empty files. They're meant to provide the user (you) > with a base class that all of your models/controllers can inherit from. Oh yes. Sorry, my fault (as usual). I was looking inside the model_

Re: extends a class that extends AppModel

2006-06-07 Thread davide
davide wrote: > Unfortunately no. I go the same error. ^^ That means "get" :) D. signature.asc Description: OpenPGP digital signature

Re: extends a class that extends AppModel

2006-06-07 Thread davide
Felix Geisendörfer wrote: > Use require_once instead of require and you should be fine. Unfortunately no. I go the same error. Fatal error: Cannot redeclare class custommodel in H:\www\multi-cake\casting\models\custom_model.php on line 2 What else? Thanks and bye D. // //module

Re: extends a class that extends AppModel

2006-06-07 Thread davide
sources intact use the extends to add/modify objects behavior. Thanks Bye Davide signature.asc Description: OpenPGP digital signature

extends a class that extends AppModel

2006-06-07 Thread davide
as I said before, I'm trying to do the same with the model, but I always get the error Fatal error: Cannot redeclare class mycustommodel in H:\www\multi-cake\casting\models\Mycustommodel.php on line 2 for every class names I specify. Code at the end. What it could be? Than

Re: IIS Cake and PHP

2006-06-06 Thread davide
[EMAIL PROTECTED] wrote: > > Hi, has anyone expereinced any problems running Cake on IIS? What are > the limitations (if any) of such an approach? The first thing that come into my head is that IIS doesn't support mod_rewrite so you have to configure cake[1]. However the ML archive[2] is full of

Re: Strange beforeValidate() behaviour

2006-06-06 Thread davide
davide wrote: > I'm getting a strange behaviour using the beforeValidate() callback. The > goal is to trim the required (VALID_NOT_EMPTY) fields before passing the > the cake validation. > > It's strange 'cause it seems that if I put all correct data I get the > $

Strange beforeValidate() behaviour

2006-06-05 Thread davide
rwise if I leave a field that doesn't pass the validation, in the beforeValidate() I get an empty $this->data. Following the model codes and the log traces. Thanks and bye Davide // // This is the model VALID_NOT_EMPTY, &quo

Re: scaffold

2006-05-22 Thread davide
uot;Student") and in the Student model, add the $belongsTo = array("State"). For more informations http://manual.cakephp.org/chapter/6 see the section 3. HTH Bye Davide signature.asc Description: OpenPGP digital signature

Re: Some errors with scaffolding

2006-05-17 Thread davide
davide wrote: > What can I do? Should I have to open a bug? Can someone try to verify if > he has the same error? Problem solved. I've removed mysql, apache2, php and installed xampp for windows in the version 1.4.16. What is drastically changed is the php version: from 4.3.10 to 5.0.

Re: Some errors with scaffolding

2006-05-17 Thread davide
davide wrote: > - > Notice: Undefined property: primaryKey in > H:\www\multi-cake\cake\libs\view\templates\scaffolds\list.thtml on line 113 > > Notice: Undefined index: in > H:\www\multi-cake\cake\libs\view\templates\scaffolds\list.thtml on line 113 > View > No

Re: Some errors with scaffolding

2006-05-16 Thread davide
I have downloaded this[1] nightly, commented all the controller actions enabled the scaffolding, but the problem still remain (following). Maybe I've downloaded the wrong nightly. Thanks and bye Davide 1. http://cakephp.org/files/nightly/1.x.x.x/cake_nightly_15.05.2006.tar.gz - Not

Re: Some errors with scaffolding

2006-05-16 Thread davide
davide wrote: > I've also tried downgrading to cake_0.10.9.2378_final and simplifying > the table with a structure like this > > CREATE TABLE `expenses` ( > `id` int(8) unsigned NOT NULL auto_increment, > `dx` varchar(250) default NULL, > `created` datetime d

Re: Some errors with scaffolding

2006-05-16 Thread davide
davide wrote: > ... > -- > Notice: Undefined property: primaryKey in > H:\www\multi-cake\cake\libs\view\templates\scaffolds\list.thtml on line 113 > > Notice: Undefined index: in > H:\www\multi-cake\cake\libs\view\templates\scaffolds\list.thtml on line 113 >

Some errors with scaffolding

2006-05-16 Thread davide
ke\libs\controller\controller.php on line 702 -- maybe I wrong something with the table. Can someone help me? Thanks a lot. Davide signature.asc Description: OpenPGP digital signature

News rss

2006-05-04 Thread davide
I was searching for a feed service about the news on cake[1]. Thanks and bye Davide 1. http://cakeforge.org/news/?group_id=23 signature.asc Description: OpenPGP digital signature