Só a documentação que está uma bosta.
A unica versão que eles publicaram foi a que está em
http://tempdocs.cakephp.org/
?
Fui seco ver se já tinham mudado alguma coisa.
Particularmente estou usando a versão beta mesmo, e não observei
nenhum bug.
Mas não estou trabalhando em projetos grandes,
:( hello can someone help me ??
On Jan 3, 3:35 pm, polutan [EMAIL PROTECTED] wrote:
hello can anyone help me? i really need to implement ACL soon to my
project..
thank you
On Jan 3, 2:55 pm, Linspirell [EMAIL PROTECTED] wrote:
Hello friends :) why i can't pass null value when i want to
Does anyone know how to properly format an array that works with the
saveAll method? I have 3 associations in my data model, a hasMany and
an HABTM, how would my array be set up in order for the saveAll to
work? I'm stumped and can't seem to find any documentation on the
saveAll Method. Thanks in
php version: 4.4.2
cake version: 1.2.x
Setup:
I have a model NFTree, which has a belongsTo relationship to itself
(parent). The parent can be null.
Problem:
If parent is null, the parent link displays the below text.
Project-Id-Version: CakePHP 1.2.x.x POT-Creation-Date: PO-Revision-
Date:
Hi there
Is there a way to prevent Cake from parsing the $order argument of a
call to findAll?
Example:
$conditions = null;
$fields= null;
$order= 'Object__distance::text::integer';
$model-findAll($conditions, $fields, $order);
The resulting order by clause produced by Cake is
php: 4.4.2
cake: 1.2.x
Models:
Album hasMany Photo
Situation:
From the albums/view page, if a non-admin user tries to delete an
associated photo from albums/view page -- which allowed only for admin
users.
I have to set a flash message and redirect it to the original page
from which the action
Hi,
We have integrated VBulletin with one of our portals and have been able to
do a autologin from our portal to VBulletin. What we now need is to manage
the usergroups and their permissions. This is somehow not accessible
through the datamanagers available in VBulletin. We would like to know
Hey!
I want some HTML in my error messages.
?php echo $form-input('name', array('label' = $lang['Groups']
['newgroup_groupname'].':br /', 'error' = array(
'required' =
$lang[$this-name]['error_groupname'],
Hi krr,
Controller::referer returns the referring url.
HTH
daniel
--
Daniel Hofstetter
http://cakebaker.42dh.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email
That worked. Thanks a lot Daniel.
On Jan 4, 5:10 pm, Daniel Hofstetter [EMAIL PROTECTED] wrote:
Hi krr,
Controller::referer returns the referring url.
HTH
daniel
--
Daniel Hofstetterhttp://cakebaker.42dh.com
--~--~-~--~~~---~--~~
You received this
Migration does know the alter_table command, my fault but I don't know
how to use it :(
On 3 jan, 14:06, roryy [EMAIL PROTECTED] wrote:
Migration.php doesn't know the alter_table command and I tested and
migration did nothing with that command :(
On Jan 3, 3:52 am, [EMAIL PROTECTED]
I got this error when i run this command : cake acl create aco / ROOT
Fatal error: Undefined class name 'string' in D:\tohtdocs\MyBand\cake
\libs\model
\datasources\dbo_source.php on line 1456
what must i have to do ? help me please
thank you
Perhaps use the beforeFind callback in the model to convert into
proper SQL?
On Jan 4, 11:28 am, Claudia [EMAIL PROTECTED] wrote:
Hi there
Is there a way to prevent Cake from parsing the $order argument of a
call to findAll?
Example:
$conditions = null;
$fields= null;
$order
Hi
I am trying to figure out howto change this:
$this-controller-render(email);
Into this:
$this-controller-render(email/$id);
I would like to render a page with an action attached to it.
But I get this:
You are seeing this error because the view for
OperatorsController::email/19()
Does anybody use Cakephp+Yahoo UI in your projects?
--~--~-~--~~~---~--~~
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
Nevermind, got it.
?=$form-text('1.name');?
?=$form-text('Product.1.name');?
Glad to finally have this functionality :D
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send
Anyone have a quick example of how to use the new multiple records
features?
--~--~-~--~~~---~--~~
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
Nevermind, got it.
?=$form-text('1.name');?
?=$form-text('Product.1.name');?
along with $this-Product-saveAll($this-data);
Glad to finally have this functionality :D
I still gotta figure how validation works with this though.
--~--~-~--~~~---~--~~
You received
1.2.0.6311-beta : if you define an optionnal input in your $validate
array, the FormHelper mark it with a required css class.
In a Model :
var $validate = array (
'test' = array(
'rule' = 'alphaNumeric',
'required' = false,
'allowEmpty' =
On Jan 4, 2008 2:02 AM, R. Rajesh Jeba Anbiah
[EMAIL PROTECTED] wrote:
http://groups.google.com/group/cake-php/msg/300bec44c5902198
I read the post above, so let me see if I understand this correctly.
1) People should be allowed to commit whatever code they like to some
branch of CakePHP, only
Hi everyone,
I'm new to the group here. I have been out of development since 2004,
so I'm just getting back into the swing of things. I'm writing an app
with cakePHP for a client, and we want to use jQuery and thickBox with
the user interface.
A URL in thickBox requires a height and width to
Speed, simplicity, clarity. We feel that a model object in the view
will only result in misuse. We have helpers that allow you to handle
the arrays any way you need, as well as various callbacks to allow you
to format the data that comes back from the model. The benefits to
having a model object
Thanks for your help, Gwoo. CakePHP is an awesome project: I love open-
source! Even though I couldn't get it to work for me right now, I will
continue to pursue it and post back if I figure out anything new. I
learned a bunch about frameworks by testing out CakePHP, and just want
to say that I
vendors/css
--~--~-~--~~~---~--~~
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,
Who to share css and js with others applications?
I have some applications and all use one css file in common. I want
share this css for all applications.
Thanks.
Juan Basso
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
Hi
I've been experimenting a bit with ACL today for an upcoming project.
Messed around a bit with a simple scaffold and found to my surprise
that acl automatically creates an aro when i add a group. It also
automatically deletes it when i delete one of my groups.
The only thing I've done so far
$this-controller-set('email', $this-requestAction('/email/'.$id,
array('return')));
and in the view for this controller, you may just
? echo $email; ?
I started using this approach, and after some memory usage tests, i
found out it's simpler to execute a local action, or use Model to get
the
Maybe I mistook the question, but couldn't you just do this in your
controller:
$this-controller-set('emailID', $id);
... and then be able to refer to $emailID in the rendered view?
-r
--~--~-~--~~~---~--~~
You received this message because you are subscribed
My firm is new to CakePHP, and we're struggling with a piece of Cake
Theory. Perhaps you can help --
When you do a Find or a FindAll, why do you get back a big, nested
array? When I do Widget-FindAll() why do I not get back an array of
Widget objects? Isn't that what a model is for?
We want
Quick question..
I have a simple model called Event, which represents a scheduled
meeting or phone call. It basically contains a date and event type.
I need to trigger creation of additional Events any time an Event is
saved. The purpose is to auto-schedule future Events. For example..
If an
Use a component. Use the startup or initialize functions in the
component to auto run some code every time the component is loaded.
Both have access to the controller and all data sent to it (if you do
things right).
On Jan 4, 10:45 am, Daniel Mark [EMAIL PROTECTED] wrote:
Quick question..
I
Everyone is entitled to their opinion and their choice of frameworks.
--~--~-~--~~~---~--~~
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
Thanks for the reply. We couldn't disagree more strenuously, and we
think you're wrong beyond belief in your reasoning, but we appreciate
the response.
Deane
On Jan 4, 10:17 am, gwoo [EMAIL PROTECTED] wrote:
Speed, simplicity, clarity. We feel that a model object in the view
will only
I'm a little confused about this, perhaps I'm missing something... but
when I update via svn, this fix doesn't happen in my core library.
For instance, I just looked at line 30 in schema.php (bug fix 6319)
and the string class is not included after I updated.
However, I manually added the
I have a HABTM association between users and calendars and can now
easily select all of the users associated with a calendar from the
calendar controller. However, I can't seem to figure out an easy way
of selecting all users that are not associated with a calendar from
the calendar controller or
when an ARO is tied to a model record there should not be an alias.
The ARO node should be accessed with its model foreignKey.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group,
I submitted a ticket on this problem:
https://trac.cakephp.org/ticket/3828
- Cake Fan
On Jan 4, 11:16 am, Cake Fan [EMAIL PROTECTED] wrote:
I'm a little confused about this, perhaps I'm missing something... but
when I update via svn, this fix doesn't happen in my core library.
For
A duplicate ticket...Read my comment in the ticket
On Jan 4, 2008 10:15 AM, Cake Fan [EMAIL PROTECTED] wrote:
I submitted a ticket on this problem:
https://trac.cakephp.org/ticket/3828
- Cake Fan
On Jan 4, 11:16 am, Cake Fan [EMAIL PROTECTED] wrote:
I'm a little confused about this,
?php echo $html-link('Link Title','test.html?
height=300width=300'); ?
--
Marc Grabanski
http://marcgrabanski.com
On Jan 4, 9:40 am, Travis [EMAIL PROTECTED] wrote:
Hi everyone,
I'm new to the group here. I have been out of development since 2004,
so I'm just getting back into the swing of
Ok. thanks.
One more question.
I've been reading this article on the bakery.
http://bakery.cakephp.org/articles/view/how-to-use-acl-in-1-2-x
In that he uses $aro-findByAlias('Admin'); to get the id of a node.
Is it just regular model methods he uses?
On Jan 4, 7:09 pm, gwoo [EMAIL PROTECTED]
its a magic method. Cake can do findByfield and findAllByfield
you should not need to instantiate a new Aro. $this-Acl-Aro should
be enough.
That article needs to be updated.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Thanks Marc.
One thing though, is how can I get a cake URL to load in the
thickbox. Specifically, what I want to do is something similar to
scaffolding, where when an update link on a controller would occur,
the view would load in the thickbox, the user would modify the data,
hit save and close
Your opinion is wrong.
- Nate Abele, 2007
On Jan 4, 12:11 pm, Deane [EMAIL PROTECTED] wrote:
Thanks for the reply. We couldn't disagree more strenuously, and we
think you're wrong beyond belief in your reasoning, but we appreciate
the response.
Deane
On Jan 4, 10:17 am, gwoo [EMAIL
One time gwoo wrote some quick code that would make find return
objects instead of arrays. I turned it into a behavior. Seemed to work
pretty well at the time. It should still work (not sure though,
because of all the recent changes to cake core). Give it a try.
http://groups.google.com/group/cake-php/browse_thread/thread/d097212f45f9f5ab
--~--~-~--~~~---~--~~
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
I'm working on the very same problem right now. I'm actually
attempting it the console, but it shouldn't make a difference. I
think it should likely be something similar to:
Array
(
[ModelName1] = Array
(
[fieldname1] = 'value'
[fieldname2] = 'value'
Ok, so what happens if you aren't taking in data from a form?
For instance, in my example, I'm trying to loop through data from a
flat table, format it into an array, and call saveAll() on it to build
relational data.
A rough idea of what I'm trying to do:
Ok, so what happens if you aren't taking in data from a form?
For instance, in my example, I'm trying to loop through data from a
flat table, format it into an array, and call saveAll() on it to build
relational data.
A rough idea of what I'm trying to do:
Oh, and Deane, I forgot to ask: is that the royal we or the
managerial we?
On Jan 4, 12:11 pm, Deane [EMAIL PROTECTED] wrote:
Thanks for the reply. We couldn't disagree more strenuously, and we
think you're wrong beyond belief in your reasoning, but we appreciate
the response.
Deane
On
I've used once
--
Pablo Viojo
[EMAIL PROTECTED]
http://pviojo.net
On Jan 4, 2008 11:37 AM, Ghost [EMAIL PROTECTED] wrote:
Does anybody use Cakephp+Yahoo UI in your projects?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
Hello,
As some of you might know, Zend has a developer zoner, where there
each week is posted a small digest on whats new and interesting in the
PHP world.
I was thinking to something like that aswell, just for CakePHP.
I have made a test post at my blog,
I'm proud to say that after some startling revalations from gwoo, I finally
understand how to use the Auth component. I'm not doing anything fancy with
ACL, but just some basic Controller authorization.
First off, here's my resource:
your english is great. I understood every word.
: )
Any information on Cake is great, both for the community and for
adoption of the framework.
I'd say keep it up.
brian fidler
Quoting Jippi [EMAIL PROTECTED]:
Hello,
As some of you might know, Zend has a developer zoner, where there
I am look for a the file and the variable to go into so that my css and js
links aren't lead off with:
/index.php
For example,
/index.php/favicon.ico
baseURL is commented out.
Many thanks!
--
View this message in context:
I used to create my drop-down lists for forms using:
$select = $this-Model-generateList();
$selected = $this-_selectedArray($modelData);
What is the replacement for this?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Dry your eyes (we know you've been crying), The Show is back!
While I've been busy living it up in the US Virgin Islands trying to
figure out how to get a decent Internet connection, The CakePHP Team
has been busting their butts throughout the year (and even the
holidays) to help you make your
The new CakePHP 1.2 beta manual speaks of a $data attribute which will
presumably populate $this-data in the model. I can find no example
of how to populate $data? The manual says this is usually populated
with a find() call, but I am trying to register a user so it does not
seem sensible to
On Jan 4, 2008 4:28 PM, nate [EMAIL PROTECTED] wrote:
Oh, and Deane, I forgot to ask: is that the royal we or the
managerial we?
On Jan 4, 12:11pm, Deane [EMAIL PROTECTED] wrote:
Thanks for the reply. We couldn't disagree more strenuously, and we
think you're wrong beyond belief in your
$this-Account-Conectnote-AllowedView-save(date_viewed, $date);
Should be
$this-Account-Conectnote-AllowedView-saveField(date_viewed, $date);
?
-Original Message-
From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of skoggins
Sent: 5. januar 2008 01:24
To: Cake PHP
Yeah sorry, typo. I fixed that and now am back to the original
problem. It updates the record but also saves 3 blank records. Could
this be because there are frames on the page?
$this-Account-Note-Sentmessage-AllowedView-recursive = -1;
$conditions = AllowedView.note_id = '$id' AND
I have copied this from a freshly baked app default.ctp
link rel=shortcut icon href=?php e($this-webroot); ?favicon.ico
type=image/x-icon /
when not using mod write you get
link rel=shortcut icon href=/app/webroot/favicon.ico
type=image/x-icon /
On 04/01/2008, loki_mdog [EMAIL PROTECTED]
Saludos.
Estoy probando cakephp1.2 y en un formulario uso lo siguiente para
generar un campo fecha
$form-dateTime('birthDate', $dateFormat = 'DMY', $timeFormat =
'NONE',null, null, false);
Mi problema es que los meses salen en ingles. Hay alguna posibilidad
que salgan en el idioma de
Hi,
I have CakePHP app where user can go to the url /my/profile when he/
she is logged in. This would have the same affect than going to the
page /users/profile/[currently_logged_in_username]. How could I render
this as /users/profile/[currently_logged_in_username]. Currently
CakePHP 1.2.x.x has
I'd also add this: while its not strictly OO behavior, I like the fact
that Model searches return pure data, and not other models/objects.
It helps reinforce the viewpoint of having the view incapable of
performing any meaningful business logic. If model returned other
models and those were
I would use a route, rather than setAction().
http://tempdocs.cakephp.org/#TOC35993
-r
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to
English please
-Original Message-
From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ballbrk
Sent: 5. januar 2008 03:18
To: Cake PHP
Subject: Problemas con $form-dateTime('birthDate', $dateFormat = 'DMY',
$timeFormat = 'NONE',null, null, false);
Saludos.
Estoy
$this-data gets populated in the controller after form submissions as
well. Do a dummy form, and in the controller add:
print_r($this-data);
... and take a look at the results.
-r
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
Use the router make sure both urls hit the same controller action :)
-Original Message-
From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of miikka
Sent: 5. januar 2008 02:09
To: Cake PHP
Subject: How to set action to the another controller
Hi,
I have CakePHP app
Heh. I'd build a dummy form with multiple records as demonstrated in
the previously linked post, then just dump the results to see what the
array looks like. :)
-r
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
I concur with Brian! Great work Christian
On Jan 4, 5:41 pm, [EMAIL PROTECTED] wrote:
your english is great. I understood every word.
: )
Any information on Cake is great, both for the community and for
adoption of the framework.
I'd say keep it up.
brian fidler
Quoting Jippi [EMAIL
I can't wait until Christian (Jippy) does his soap opera dissection
of this thread in next weeks' CakePHP weekly summaries :)
On Jan 5, 1:05 pm, Deane [EMAIL PROTECTED] wrote:
Gwoo:
Let me retract my remarks. I was frustrated, and what I wrote was
insulting.
You have my apologies.
Deane
Ok,
So this is completely weird ... anyone ever seen this before, maybe
I'm doing something wrong...
whenever I go to mydomain.com/employees/index/ the layout that I have
selected in the index function of my controller loads, but when I
click a pagination link like
Hi Tarique,
Isn't it possible to not to alter Cakephp's default folder structure ?
I had an idea of having different theme files in same directory by
prefix like 'themename_' or similar.
What do you think ?
On Jan 3, 6:02 pm, Dr. Tarique Sani [EMAIL PROTECTED] wrote:
On Jan 3, 2008 6:25 PM,
Not sure if it would have any effect, have you tried changing
var $name = 'employees';
to
var $name = 'Employees';
Other thing I would check is the the links to your css are not
relative. Use Firebug to quickly see any 404's or other errors that
might be occurring.
Adam
Travis wrote:
Ok,
Great Work Christian. I had also this thing in mind after i saw after
i started reading zend weekly summaries. Kudos for taking
initiative!!!
P.S. I have added it to Cakephp super feed:http://feeds.feedburner.com/
cakephp
Regards,
Sharan.
--~--~-~--~~~---~--~~
Interesting idea Max, however I think if you play around with it more
you'd find the way it is would be better.
1. Can easily change a theme name if you need to (change the folder
name).
2. Can easily create a theme by duplicating a folder and make changes
to it, deleting any files you don't
76 matches
Mail list logo