Thanks man.
On Mar 21, 9:45 pm, "themanfrombucharest" <[EMAIL PROTECTED]>
wrote:
> Hey Justin,
>
> In reply to your first question, no, there isn't anything like that in
> cake yet.
>
> So if you want accessors/mutators you have to write the functions
> yourself. The main reason for this is becau
Hey Justin,
In reply to your first question, no, there isn't anything like that in
cake yet.
So if you want accessors/mutators you have to write the functions
yourself. The main reason for this is because the ORM layer in cake
isn't fully object oriented yet (I understand it's planned for 2.0).
waitting...
On Mar 22, 12:17 pm, "zzbravo" <[EMAIL PROTECTED]> wrote:
> I'm new to cakPHP, when using the pagination componet, I got a
> question:
> even if there is only one record in my db, and still the pagination
> componet will generate "1" "2" for navigation, is this a bug or I am
> using i
I'm new to cakPHP, when using the pagination componet, I got a
question:
even if there is only one record in my db, and still the pagination
componet will generate "1" "2" for navigation, is this a bug or I am
using it wrong?
--~--~-~--~~~---~--~~
You received thi
Hi bakers,
I wanted to let all bakers know about my new application. It is an
online bibliography management toolkit, Memento, completely developed
based on CakePHP and JQuery. After trying many different frameworks, I
finally found CakePHP and I am happy that I took the decision of
trying CakePH
Hi cc96ai
> $this->Session->read('User') is the object of the User ,
> should I only pass user->id into it ?
When you call:
$this->Acl->check($this->Session->read('User'), '/users');
you are asking Cake:
1. Is there is an Aro record with the 'alias' value of:
$this->Session->read('User')
$this->Session->read('User') is the object of the User ,
should I only pass user->id into it ?
2nd, i forgot which version I downloaded , how could I check it ?
Thanks
Calvin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Googl
It should be noted that the article in the bakery is specifically for
1.1 not 1.2 and I am sure that I will revisit when 1.2 is not in the
fast moving pre-pre-release state it is in.
> 2. I get errors about undefined properties for a helper (pdf helper
> from bakery) defined as
>
> class PdfHelpe
Thanks for the reply Grant. My problem is that I have a 'check here
to accept' checkbox on my form. I want to associate it with my current
model even though there is no corresponding column in the table.
Because there is no column I get an incorrect index error in php. In
rails if you use attr_a
on my local machine i find that expired session entries
are deleted automatically.
on a remote webserver there are more than 40 entries..
possibly the cake garbage collection is not being called.
how can i fix this ?
thank you, jyrgen
--~--~-~--~~~---~--~~
You
Your little diagrams perhaps looked better in preview... But I assume
you have c:\www\cake\fantesy, with folders config, controllers etc in
it .
Have you set your apache document root to c:\www\cake\fantesy
\webroot ?
Have you enabled mod_rewrite in apache, and set AllowOverride all to
the c:\www
I don't know what the att_accessor is in RoR. Perhaps what you want
is the afterFind callback, where you can modify the data loaded from
the db (including adding extra attributes).
Justin Hernandez wrote:
> How can I add variables to a model without having a corresponding
> field in the table?
This should also work
$conditions = array(
'field1' => array(null, 0),
'field2' => array(null, 0)
);
However since it will be using IN (NULL, 0) rather than = NULL or =
0, I'm not sure how this will affect MySQL indexing.
--~--~-~--~~~---~--~~
You received
I'm sure for some people the Cake approach makes perfect sense and I
don't doubt that this framework, when used by someone who understands
it well, can dramatically speed development time. Unfortunately
there's people like myself for whom much of this is new, and it's not
unreasonable for us to be
this may be a valuable enhancement for 1.2. Please considering
submitting bugs and patches to https://trac.cakephp.org if you think
something should be included or there is a problem.
Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscrib
First of all, the coupling would not be any looser even if you used
objects. The component would just be tightly coupled to an object
property instead of an array key. Second of all, this is what
afterFind is for. If you have to make a database change which impacts
your code, you can use afterF
Yo Felix,
On 3/21/07, Felix Geisendörfer <[EMAIL PROTECTED]> wrote:
>
> I'm looking for someone to give me a hug and tell me everything will be
> ok.
>
> I'll go ahead and do this: *hug*
>
Thanks dude :)
When however you are writing a database depended application you have to
> accept that fiel
Hi Nate,
I knew you'd answer this one :)
On 3/21/07, nate <[EMAIL PROTECTED]> wrote:
>
>
> First of all, the coupling would not be any looser even if you used
> objects. The component would just be tightly coupled to an object
> property instead of an array key. Second of all, this is what
> af
cool thanks for sharing
On 3/21/07, Alex <[EMAIL PROTECTED]> wrote:
>
>
> I added this solution to CakeForge:
>
> http://cakeforge.org/snippet/detail.php?type=snippet&id=174
>
>
> >
>
--
(the old fart) the advice is free, the lack of crankiness will cost you
- its a fine line between a real q
More power to SHA1!
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
blog: http://www.MarianoIglesias.com.ar
-Mensaje origin
> I'm looking for someone to give me a hug and tell me everything will
> be ok.
I'll go ahead and do this: *hug*
Regarding your topic: I think you are getting a little paranoid here.
Yes high coupling is something you want to avoid. Coupling itself
however is not your enemy, it's how you write
What version of Cake are you using? ACL in 1.2 is currently not
working, as it's in development.
If it's 1.1, I know there is something in the trac about ACL, check if
your problem is related.
Tane
On 3/21/07, cc96ai <[EMAIL PROTECTED]> wrote:
>
> I just did a simple test on ACL , but i m not
On Mar 21, 4:34 pm, "savagekabbage" <[EMAIL PROTECTED]> wrote:
> stevenoone,
>
> Unfortunatly there's huge lacking of documentation for this framework
And we make up for it by providing specific answers to most questions,
so you don't have to tediously wade through mountains of
documentation ;-)
Hi there,
I'm looking for someone to give me a hug and tell me everything will be ok.
Thinking in terms of low coupling of classes again, it struck me that
passing your applications method parameters as associative arrays may be a
step in the wrong direction. For example, I have a cake component t
Hi cc96ai
My first thought would be to check what values are being passed. I
would guess that you have a miss-match between Aro and the value from
$this->Session->read('User').
Regards,
Langdon
cc96ai wrote:
> I just did a simple test on ACL , but i m not sure which part that I
> did wrong,
stevenoone,
Unfortunatly there's huge lacking of documentation for this framework
which makes the learning curve extremely steep. I'm fairly new to
Cake myself, but it seems like they are going backwards in terms of
documentation. I was never around for the wiki, but see several links
to resour
Oops, that should have been "would not". I would *not* say 'steep'.
On Mar 21, 5:06 pm, "nate" <[EMAIL PROTECTED]> wrote:
> On Mar 21, 4:34 pm, "savagekabbage" <[EMAIL PROTECTED]> wrote:
>
> > stevenoone,
>
> > Unfortunatly there's huge lacking of documentation for this framework
>
> And we make
I added this solution to CakeForge:
http://cakeforge.org/snippet/detail.php?type=snippet&id=174
--~--~-~--~~~---~--~~
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@googl
> What is the difference between Security::hash() & md5(). What size
> field do I need in my database for this?
let's explore using documentation to find the answer to this question, shall we.
According to http://us3.php.net/md5 the md5 function in php creates
"The hash is a 32-character hexad
Security::hash( ) uses the most secure hashing method available on
your system; sha1 by default, the length of which is 40 characters.
On Mar 21, 3:44 pm, "xhenxhe" <[EMAIL PROTECTED]> wrote:
> Beautiful! Thanks nate.
>
> What is the difference between Security::hash() & md5(). What size
> field
On Mar 21, 3:19 pm, "stevenoone" <[EMAIL PROTECTED]> wrote:
> Maybe one of the reasons this HABTM of question is
> getting asked so frequently is that nobody's provided a really good,
> definitive answer of how this works with clear example code for our
> models, views, and controllers.
Having he
Hi!
We are a medium-sized company based in Berlin developing two internet-
based products: Escapio.com (online for 2 years) and http://blog.tripsbytips.de
(to be launched in may). Tripsbytips is our new enterprise in which we
must accomplish simple usability with very large datasets. Quite a
chal
I just did a simple test on ACL , but i m not sure which part that I
did wrong,
it always points to "access denied" for me once, (i m testing on
single action, instead of do beforeFilter() )
ARO tree
group.all
|-group.0
|-user.root
I login as root user
Acl->allow('group.all', '/users'); //Mak
Beautiful! Thanks nate.
What is the difference between Security::hash() & md5(). What size
field do I need in my database for this?
On Mar 21, 12:33 pm, "nate" <[EMAIL PROTECTED]> wrote:
> FormHelper::password doesn't have a label option, it just renders a
> password field. Use the label() meth
>
> 1. Cake echos the controller name called and messes up my layout.
> Where is the code that is doing this?
No idea. Sounds like a debug statement left in somewhere but I think
that's unlikely (never seen it happen before). But maybe someone else
can help you on that.
> 2. I get errors about un
I appreciate the response and the link and I understand that it's
frustrating when you feel like you're answering the same question over
and over again. Maybe one of the reasons this HABTM of question is
getting asked so frequently is that nobody's provided a really good,
definitive answer of how
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)
Okay, I think you're looking for this:
http://us3.php.net/manual/en/language.variables.variable.php
On Mar 21, 10:46 am, "Erick Tedeschi" <[EMAIL PROTECTED]> wrote:
> but as the resource as in the example functions below:
>
> ...
> ...
> $this->{$foo};
> ...
> ...
> I saw this of an archive insi
Hi stevenoone, I'm afraid you'll have to forgive my frustration, as
we've had a lot of problems with this lately, but if you abandon this
framework out of an inability to enter a search query into the text
box in the upper right-hand corner of the page, then I can't say I'll
be sorry to see you go
thanks.
It was this that I was looking for. I not wise person the name of this
type of variable.
nate wrote:
> Okay, I think you're looking for this:
> http://us3.php.net/manual/en/language.variables.variable.php
>
>
> On Mar 21, 10:46 am, "Erick Tedeschi" <[EMAIL PROTECTED]> wrote:
> > but as th
FormHelper::password doesn't have a label option, it just renders a
password field. Use the label() method.
create('User', array('action' => 'register')) ?>
inputs(array('first_name', 'last_name', 'email',
'username', 'password'))?>
label('confirm_password', 'Confirm your password')?>pas
$conditions = array(
array('or' => array('field1' => null, 'field1' => 0)),
array('or' => array('field2' => null, 'field2' => 0))
)
On Mar 21, 8:25 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> What I'm currently using:
> $this->set('data', $this->Doc->findAll(array("or" =>
> array
Hi Seb,
I just finished a full rewrite of the query generator a couple days
ago, and it now correctly handles your condition, which has been added
as a test case to the core regression tests. You can grab the new
core from the 1.2 branch of SVN, or grab the latest nightly.
On Mar 21, 1:12 am, "
And if you want to also customize the controller use 'url':
$form->create('User', array('url'=>'/controller/action'));
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool,
If I can't get this to work I'm going to have to abandon this
framework. I've been developing dynamic websites for 10 years, but
apparently this is just beyond me. I can't seem to get my multi-select
lists to auto-populate correctly or update changes in the database. To
get the auto-populate value
If you have to edit the Cake core, that usually means you're doing
something wrong, because there's not a lot we haven't thought of. If
you read the Ajax section on this page:
http://manual.cakephp.org/chapter/helpers
you'll see that the correct key is 'complete', not 'onComplete'.
On Mar 21, 2
I'm new to this stuff. I've downloaded the latest 1.2 version this
morning. I want create a simple user registration form. So far I have
in my view:
create('User', array('action' => 'register'))?>
input('first_name')?>
input('last_name')?>
input('email')?>
input('username')?>
input('password')?>
I created a folder "www" in the c: folder. I then installed cake to the "www"
folder. it gave this structure c:
www
cake
app
cake
docs
Ugh, never mind, I guessed and found the solution. Thanks for being
predictable Cake! :)
create('User', array('action' => 'register'))?>
On Mar 21, 11:22 am, "xhenxhe" <[EMAIL PROTECTED]> wrote:
> I'm using the latest 1.2 version build.
>
> I'm building a user registration form. when I use the fo
I'm using the latest 1.2 version build.
I'm building a user registration form. when I use the following code:
create('User')?>
I get the following html:
What option do I use in the create method to have my action go to "/
users/register" instead of "/users/add"?
--~--~-~--~~-
HI,
i had a similar problem. I needed an confimation email, in that email
i supplied a link for confirmation,
after that the user should be logged in. So its similar of your
problem.
First u need the following:
A unique link, like an email_token, md5 hash of an email and a
timestamp in example.
I used command line to create a group in aro
php acl.php create aro 0 0 user.all
php acl.php create aro 0 0 user.general
php acl.php create aro 0 0 user.sales
I would like the tree like
user.all
|- user.general
|- user.sales
I try to use setParent(), which is not working
>>php acl.php setPare
I don't think switching from Prototype / Scriptaculous is such a good
idea unless you are familiar with the framework in question (moo.fx).
This is mainly because all of the ajax functionality built into cake
is dependant on the Prototype / Scriptaculous scripts.
By all means read up on the moo.f
but as the resource as in the example functions below:
...
...
$this->{$foo};
...
...
I saw this of an archive inside, but I do not know as he functions.
On Mar 21, 11:37 am, "Daniel Hofstetter" <[EMAIL PROTECTED]> wrote:
> You can find an example of creating a component in the
> manual:http:/
Bumping up the debug level, it looks like it's running the correct
join:
SELECT `Computer`.`id`, `Computer`.`employee_id`,
`Computer`.`pc_model_id`, `Computer`.`protection_plan`,
`Computer`.`asset_tag_no`, `Computer`.`profiler_dump` FROM `computers`
AS `Computer` JOIN `computers_serials` ON
`comp
Bumping up the debug level, it looks like it's running the correct
join:
SELECT `Computer`.`id`, `Computer`.`employee_id`,
`Computer`.`pc_model_id`, `Computer`.`protection_plan`,
`Computer`.`asset_tag_no`, `Computer`.`profiler_dump` FROM `computers`
AS `Computer` JOIN `computers_serials` ON
`comp
You can find an example of creating a component in the manual:
http://manual.cakephp.org/chapter/components
HTH
--
Daniel Hofstetter
http://cakebaker.42dh.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
Hi,
I am trying to make a component in my application.
in an example archive the following notation:
$this->{$foo};
It would like to know on this resource therefore I do not know it.
Where I can find on this.
Sorry my english.
rsrs
t+
--~--~-~--~~~-
Hi again,
it was really easy how to reach first part of the eqatopn,
Just instead of 1 I need to put 3 /or more probably/ so recurse
attribute is not yes or no /1 or 0/ but depends how many levels in
deep you want to reach. so putting 3 instead of one solve my
problem. :D
hope this will help som
I've had the same problems with my own functions so you aren't crazy
if that helps.
On Mar 21, 12:12 am, "Seb" <[EMAIL PROTECTED]> wrote:
> Additionally, could any one else using the latest SVN try that out...
> to see if i'm just freaking out...?!
>
> Thx!
>
> On Mar 21, 2:58 pm, "Seb" <[EMAIL P
Thanks for your reply. I thought of that too. I am using the default
style that comes with CakePHP.
On Mar 20, 11:06 pm, "wralph" <[EMAIL PROTECTED]> wrote:
> Check your css file for the 'actions' style, theres probably something
> thats stopping it from displaying.
>
> Try removing the div aro
I'm not familiar with javascript, but have had no problems in using
prototype and scriptaculous thanks to the good example I searched on
this group. But when I decided to migrate to lean version of
prototype and moofx, it was not so easy. I coudn't find any examples
of moo.fx use in CakePHP.
I c
What I'm currently using:
$this->set('data', $this->Doc->findAll(array("or" =>
array('Doc.deleted' => 0, 'Doc.deleted' => null),
"and" => array("or" => array('Doc.is_allowed' => 0,
'Doc.is_allo
Hi all,
I'm having a bit of trouble constructing the conditions for the
findAll. I need to check if (Field1 is null or 0) AND (Field2 is null
or 0), but every combination I try doesn't include some of the
conditions in the query.
Any ideas?
--~--~-~--~~~---~--~~
I think that's because using the prototype Form namespace directly
works on the form element.
You can try:
Form.Element.serialize('test123') or
$('test123').serialize()
On Mar 21, 8:02 am, "quincy" <[EMAIL PROTECTED]> wrote:
> Right, i have been trying various things with mixed success. I am
>
Right, i have been trying various things with mixed success. I am
trying this: -
echo $javascript->event("test123", "blur", "new Ajax.Request('/cms/
function/test123', {parameters: Form.serialize('test123')} );",
false);
but i then get an error: -
$(form).getElements is not a function
http://w
Hi,
I was always wondering how to access a very remote property of
relation. let me give an example of what I wanted to do:
Imagine that I have 4 tables - table1, table2, table3, table4
so the relation is something like that
table1 has many table2
table2 has one table3
table3 has many table4
et
Yes, thanks to all you moderators...
Don't take my comment personal, it was just a question, not some form
of group-oriented rage... :-)
If you need assistence on something concerning Cake-PHP group you can
count me in!
I want to give back to the group what it has given me...and that might
not b
68 matches
Mail list logo