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
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
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
?
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
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,
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
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
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
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
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
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.
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'
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"]);
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
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
--~--~-~--~~~---~-
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
--~--~-~--~~~---~--~
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
>
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
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.
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
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
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
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
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
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
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
" 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
--~--~-
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 :
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
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
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
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
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] => 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
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"
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
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.
//
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
--~--~---
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
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
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
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
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
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
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
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
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
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();
}
}
?>
--~--~-~--~~~
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
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
ll have all the htmlHelper functionality
plus yours.
Bye
Davide
--
By the power of Greyskull...
signature.asc
Description: OpenPGP digital signature
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
enced with the
vendors()?
Bye
Davide
--
By the power of Greyskull...
signature.asc
Description: OpenPGP digital signature
="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
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
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
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
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#
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
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
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
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
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
, 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
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
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
and bye
Davide
--
By the power of Greyskull...
signature.asc
Description: OpenPGP digital signature
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
("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
User";
var $hasAndBelongsToMany = "Group";
class Group extends AppModel
var $name = "Group";
var $hasAndBelongsToMany = "User";
HTH
bye
Davide
signature.asc
Description: OpenPGP digital signature
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
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
_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
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
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
Maybe you can even use pagination[1] :)
HTH bye
Davide
1. http://wiki.cakephp.org/tutorials:pagination
signature.asc
Description: OpenPGP digital signature
...
return true;
}
HTH, bye
Davide
signature.asc
Description: OpenPGP digital signature
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
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
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
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
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_
davide wrote:
> Unfortunately no. I go the same error.
^^
That means "get" :)
D.
signature.asc
Description: OpenPGP digital signature
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
sources intact use the extends to add/modify objects
behavior.
Thanks
Bye
Davide
signature.asc
Description: OpenPGP digital signature
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
[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
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
> $
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
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
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.
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
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
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
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
>
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
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
97 matches
Mail list logo