I made a little test and I have put:
pr($this-uses);
exit();
in cake/libs/controller/controller.php __construct() function, before it
exiting.
What I discovered was that if you set $uses to null or an empty array() in
your controller
it overrides the declaration in app_controller,
Definetly, I've been learning with CakePHP to just try things and see
if they work (using the MVC principal) and been surprised to find that
sometimes to do, with simplicity.
I also have learned to just drive right into the code if I am looking
for something - the details are all there how to
On Mar 19, 5:48 am, Daniel.S [EMAIL PROTECTED] wrote:
Will that re-hash the MD5'ed password field when editing and then
saving again?
yes, beforeSave catches that
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Hello, I don't know if this topic has been already discussed but I
think it could be a great idea to create a CakePHP Planet.
As you can read from wikipedia[1]: A planet is a web site that
aggregates posts from a set of related blogs. Such sites are commonly
associated with free and open-source
Hi all.
In my app i need to pass an associative array of data to my model, kinda
like:
[Model] = array ([someKey] = 'some value',
...
[someOtherKey] = array([subKey1] = 'sub key 1 value',
[subKey2] = 'sub key 2
Thankis jitka,
$this-viewPath was what I have been searching for and couldn't
find. I guess my hack with viewRender() is obsolete now that I know of
that one.
On Mar 16, 10:55 pm, jitka [EMAIL PROTECTED] wrote:
in any controller's method:
$this-viewPath = 'common';
Hi all, i'm quite new to Cake but I'm enjoiing it so much.
I start writing a jQuery helper to include jQuery itself, packaged
plugins and named script like controller dependent, action, ecc.
I'm trying to identify on the fly cake's intallation path to use it
into import rules. Let me say this
i use 2 db link,but after the second link ,the first link will down.
only the second link is ok for the app. how to make the first link to
be ok?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To
I think that:
http://thinkingphp.org/cakenews/
Thanks Felix ;)
On 19 mar, 10:05, Javier Ramirez Molina [EMAIL PROTECTED] wrote:
Hello, I don't know if this topic has been already discussed but I
think it could be a great idea to create a CakePHP Planet.
As you can read from wikipedia[1]: A
Thats perfect!!! I didn't know it. Thanks again.
2007/3/19, djiize [EMAIL PROTECTED]:
I think that:
http://thinkingphp.org/cakenews/
Thanks Felix ;)
On 19 mar, 10:05, Javier Ramirez Molina [EMAIL PROTECTED] wrote:
Hello, I don't know if this topic has been already discussed but I
think
search in the group, there were 1 or 2 series on that last week
On 19 mar, 09:01, Nosy! [EMAIL PROTECTED] wrote:
i use 2 db link,but after the second link ,the first link will down.
only the second link is ok for the app. how to make the first link to
be ok?
look at the constants defined in cake/config/paths.php
Peg a écrit :
Hi all, i'm quite new to Cake but I'm enjoiing it so much.
I start writing a jQuery helper to include jQuery itself, packaged
plugins and named script like controller dependent, action, ecc.
I'm trying to identify on the
I use the (amazing) 1.2 alpha-release for a few days now and have
problems with fields named created in db-tables. For some reasons I
do not use datetime but integer for created. Cake seems to have
problems with that because I always get errors in line 1052 in cake/
model/model.php.
I tried to
Hi sunertl
I don't use 1.2 yet, but in I expect that it is the same as 1.x
the field 'created' (and the field 'modified') are special fields in
Cake. It will automatically update these fields for you when you create
and save models. They do require the data type of date/time to work and
I worked around the problem by changing the name but in my opinion
this is not how it should work.
Currently I am developing a system for project management in cake and
we need the unix timestamp for interchanging purposes. It is the
format which is understood by all of our (non-cake-)systems
I worked around the problem by changing the name but in my opinion
this is not how it should work.
Ok, so you are only concerned about the data type.
As I suggested you could get around this issue using callbacks:
beforeSave() to change the Unix timestamp to a Cake friendly date/time
on
hm... I wrote a pretty long answer but somehow it was not posted?!?!
damn. ok, again but a little bit shorter.
I have to use the unix timestamp because it is obligatory in our
company. Using datetime simply would lead to not getting my app
approved.
Changing the name is the way I use now. But I
Good point, I was assuming you would notice and unset() password on an edit
(since the only way a user can edit it is by providing the unencrypted
form.)
Yours is a good solution *except* when the user enters a 32 character length
password consisting of only 0-9, A-F or a-f characters ;) I
I don't care if you are the CEO of IBM.
THIS IS FREAKING SPAM!
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
blog:
Oh I please do not get me wrong! I really love the concept of cake and
the restrictions it has because it really made me a better and tidier
programmer since I use it. But sometimes - and really only sometimes -
it lacks of fallback options. Like in this case. As far as I
understand the code it
On 3/19/07, Mariano Iglesias [EMAIL PROTECTED] wrote:
I don't care if you are the CEO of IBM.
THIS IS FREAKING SPAM!
And most likely automated - reply to which would never be read!
Tarique
--
=
PHP for E-Biz: http://sanisoft.com
I know, I just can't seem to avoid doing so.
The silent and unheard scream of a fed up individual
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your
Thanks a lot.
It seems that Ganzino's solution is perfect and transparent. Now I can
try to rewrite the rest of our web into CakePHP.
Thanks again for this SW.
Lukas
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
The situation is as follows:
AppController has a function isLogged which is using the 'Member'
model.
AppController-uses = array('Member');
ContentController has a function index() which when called just shows
the frontpage: no problems
ContentController has a function page() which should
I have solved a part: a view was named wrong which caused the error.
However: why wont cake display view not found instead of this
inappropriate error?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP
Is Member extending from AppModel?
-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
Hello,
$this-set not working with email component in php 4. The same code is
working in php 5.
If I use
$this-set('code', $id);
I get an error message (with DEBUG,1) the $code not defined.
--
Ámon Tamás
http://linkfelho.amon.hu
--~--~-~--~~~---~--~~
You
Hi,
I remember setting up cake with no db recently (to use cakes
validation and various other helpfull bits) but have forgotten how I
did it. I had a search of the group and didn't find much.
Any pointers would be much apreciated
Thanks
TWIOF
On Mar 19, 2007, at 8:44 AM, TWIOF wrote:
Hi,
I remember setting up cake with no db recently (to use cakes
validation and various other helpfull bits) but have forgotten how I
did it. I had a search of the group and didn't find much.
Just use the core PagesController by putting your
So no need to alter the database.php?
Even simpler than i thought!
Thanks
--~--~-~--~~~---~--~~
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
On Mar 19, 2007, at 8:51 AM, TWIOF wrote:
So no need to alter the database.php?
Nope - just use PagesController for content delivery and you should
be fine.
Even simpler than i thought!
:o)
-- John
--~--~-~--~~~---~--~~
You received this message because
Mariano,
You can't imagine how many times I feel like this:
The silent and unheard scream of a fed up individual
I understand you had to do it... ;-)
Is anyone cleaning the group from messages like this (or, I might add,
from any messages that don't fit here, such as messages on native
yes there are a couple of us that spend too many hours in the day
moderating messages and approving new members. I have to say thise one
gave me trouble, so I figured I would allow it through. It has a hint
of spam, but then again everyone should know that this guys spams so
no one goes to him
Just a 'second thanks' as LSL said. I was looking for this same
solution (seems others are too, in other threads) - and this seems to
be the best solution/placement to get the desired effect. Seems simple
now that I look at it.
On Mar 19, 3:30 am, GMail [EMAIL PROTECTED] wrote:
I made a little
Yeah, I ended up having to download 1.1 and run the script off that
version, and then just use 1.2 for my site.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to
If you are in need of validation, however, you can still set up the
controllers and models and set the model class variable:
var $useTable = false;
This allows you to use the built-in Cake validation scheme on your
data, but not use a database.
On Mar 19, 7:44 am, TWIOF [EMAIL PROTECTED]
*bump*
Any ideas?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For
That is good, but certinly all the big projects like Drupal or
Ubuntu have their own planet subdomain - which people now more
commonly expect. Maybe pointing planet.cakephp.org to that site would
do it rather than develop another one?
Tane
On 3/19/07, djiize [EMAIL PROTECTED] wrote:
I think
https://trac.cakephp.org/ticket/1795
Comino soon...
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
blog:
gwoo [EMAIL PROTECTED] wrote:
I can assure you that if no one was moderating this group it would be
much uglier.
Thank you for your efforts here.
--
Chris Lamb, Leamington Spa, UKGPG: 0x634F9A20
signature.asc
Description: PGP signature
Version : CakePHP version 1.2.0.4451alpha
The value() function in the driver doesn't handle integer and null
values. I modified it to this :
function value($data, $column_type = null) {
// this can also be accomplished through an Oracle NLS
parameter
if ($data == null)
Version : CakePHP version 1.2.0.4451alpha
The class constructor is waiting for an argument name $controller. The
class has an attribute $controller. In previous versions, I was used
to reach the controller from the view (eg in a .thtml file) using
$this-controller. It doesn't work anymore with
CakePHP version 1.2.0.4451alpha
Previously I was using an older version of CakePHP, which didn't used
an intermediary AppHelper class in helpers hierarchy between
HtmlHelper and Helper.
I found out that sometimes, using HtmlHelper resulted in an error :
Cake complained about not being able to
CakePHP version 1.2.0.4451alpha
When calling the -send() method on a EmailComponent object, CakePHP
try to used a unnamed layout. This generate an error. Here's a sample
code from me showing my use of this component :
$this-Email-to = $aTask['Owner']['email'];
$this-Email-from =
Not sure, but I read somewhere that this will not be possible anymore
to access controller in view, cause it breaks MVC rules.
Any expert to confirm or not?
On 19 mar, 18:35, Gilles Dubois [EMAIL PROTECTED] wrote:
Version : CakePHP version 1.2.0.4451alpha
The class constructor is waiting for
when you access to view, you have only one Employee in your array, so
you cannot parse it the same way
to determine which way, you can test isset($val['Employee'])
On 19 mar, 17:14, stevenoone [EMAIL PROTECTED] wrote:
*bump*
Any ideas?
--~--~-~--~~~---~--~~
This seems to be the official word:
http://groups.google.com/group/cake-php/msg/0747a1a1eda5f143
On Mar 19, 3:17 pm, djiize [EMAIL PROTECTED] wrote:
Not sure, but I read somewhere that this will not be possible anymore
to access controller in view, cause it breaks MVC rules.
Any expert to
did you create proper layouts in /app/views/layouts/email/ ?
see http://bakery.cakephp.org/articles/view/203 for more info
On 19 mar, 18:44, Gilles Dubois [EMAIL PROTECTED] wrote:
CakePHP version 1.2.0.4451alpha
When calling the -send() method on a EmailComponent object, CakePHP
try to used
maybe if you create an app_helper.php in /app ?
class AppHelper extends Helper {
}
so you don't touch core files...
Or finding it in a nightly build to see what's in...
On 19 mar, 18:41, Gilles Dubois [EMAIL PROTECTED] wrote:
CakePHP version 1.2.0.4451alpha
Previously I was using an older
you can add a form (with Html helper for Cake 1.1 or Form helper for
Cake 1.2) in you page, just specify the correct action for adding a
comment (/comments/add ?)
and to display the list of comments, if you setup your models
associations (Comment belongsTo Post and Post hasMany Comment), when
Eliminating direct access to the controller from the view was a
concious design decision because it violates the principles of MVC
separation, and we saw that it was resulting in some very bad code,
i.e. people doing things they shouldn't be doing. The only reason it
was allowed in the first
I was looking at the user authentication example in the manual, and
I've noticed that the CakePHP Session do have a timeout after a
certain amount of time, based on the application's security level.
So, since I'm trying to build a blog application, this could be a
problem, because if a session
On Mar 19, 2007, at 1:04 PM, Andre wrote:
I was looking at the user authentication example in the manual, and
I've noticed that the CakePHP Session do have a timeout after a
certain amount of time, based on the application's security level.
So, since I'm trying to build a blog
http://www.google.com/coop/cse?cx=006850030468302103399%3Amqxv78bdfdo
On Mar 19, 12:40 pm, Mariano Iglesias [EMAIL PROTECTED]
wrote:
https://trac.cakephp.org/ticket/1795
Comino soon...
-MI
---
Remember, smart coders
I've made a test. I've set the security level to 'medium', and set the
CAKE_SESSION_TIMEOUT to 1, so that the session should expire after 100
seconds.
After 100 seconds $this-Session-read('User') returns nothing (I've
tried to print its value), and, in reply to your question, nope, my
cookies
On Mar 19, 2007, at 1:54 PM, Andre wrote:
I've made a test. I've set the security level to 'medium', and set the
CAKE_SESSION_TIMEOUT to 1, so that the session should expire after 100
seconds.
After 100 seconds $this-Session-read('User') returns nothing (I've
tried to print its value),
I think tehre is a bug when session is set to database.
expired sessions remains in db.
cake 1.1.13.4450
can one confirm this?
On Mar 19, 9:08 pm, John David Anderson (_psychic_)
[EMAIL PROTECTED] wrote:
On Mar 19, 2007, at 1:54 PM, Andre wrote:
I've made a test. I've set the security
On 3/19/07, majna [EMAIL PROTECTED] wrote:
I think tehre is a bug when session is set to database.
expired sessions remains in db.
cake 1.1.13.4450
As someone who has used sessions in a database, I don't think that
necessarily means that the session is still live. A custom session
handler
we have 3 different groups
- User
- Salesman
- Admin
In product table,
- User can view the product info
- Salesman can update/edit some (not all) fields
- Admin can add/delete/edit
in this scenario,
should I create action for all of them in product controller,
- user_view
- salesman_view
-
Hi cc96ai
in this scenario,
should I create action for all of them in product controller,
- user_view
- salesman_view
- salesman_edit
- admin_view
- admin_edit
- admin_delete
- admin_add
and also create 7 View page (thml) ?
OR there has better solution to do this ?
Have a look
Do you mind expanding on which framework / language allows you to have
sessions automatically expire when the browser is closed? Do you just
mean that the session has a very long server side timeout, and by
closing the browser your own client just forgets its cookie (which
really hasn't closed
Hello,
I am writing a custom auth component (cake 1.2). I am doign a find
$UserModel-find(), which works fine.
But I would like to create an UserModel instance with the data from
that find. Or possible alter the find so that it (or some other
method) creates a UserModel instance with the needed
Hi... sorry... I am a bit thick and I have a problem with this
dropdown.
It works OK, just in the dropdown it shows only the category ID and
not the category name any idea? (I did exactly as cc96i post) :F
--~--~-~--~~~---~--~~
You received this message
Make sure each database connection has a different username and
password if using MySQL.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to
How is a class instance going to help you here? Why not just store
the result of the find in a variable, and use that the second time?
However, it is probably a moot point - both cake and mysql will cache
query results, so you will probably find that second query (if run at
all) will take 1ms.
looks good man!!
well done.
cheers,
mikee
On 24/02/07, Tazz [EMAIL PROTECTED] wrote:
Who ever is interested. I completed my first site using cake. It's for
a local record store here in Montreal.
www.inbeatstore.com
Cake Version: 1.1.13.4450
Additional Components:
- ob_Auth for login
Two different queries... same result.. caching does not help on this
one.
Well, what is the point of having all of this nice Model Class code
written if I'm not going to use it? Set/Get, Associations, Finds, all
sorts of Nifty tools I should like to use when needed.
How can you construct a link from an email that automatically logs the
user in to a cake site and links to the right action?
I'm sending update emails to users, and if they want to do anything
with their account, I want them to be able to access the relevant page
directly with one click on a
Hi cake-php,
What is the license of the CakePHP manual?
The index.html says:
Copyright © 2006 Cake Software Foundation Inc.
This work is licensed under the NEED TO CHOOSE LICENSE; you can see the
full terms of the license here
where here is a link to http://cakephp.org.
Can anyone
On Mar 19, 2007, at 4:55 PM, rtconner wrote:
Two different queries... same result.. caching does not help on this
one.
Well, what is the point of having all of this nice Model Class code
written if I'm not going to use it? Set/Get, Associations, Finds, all
sorts of Nifty tools I should
John, Really?? I doubt you do need more information... but I'll play
along.
The following two selects are summarized versions of what cakephp
creates
UserModel - find() generates:
SELECT * FROM users WHERE
session_hash='thisisanobscurestringwhichcannotbeguessed';
Username comes from the
My typing skills suck. Sorry about the grammar errors.
--~--~-~--~~~---~--~~
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,
On Mar 19, 7:09 pm, rtconner [EMAIL PROTECTED] wrote:
John, Really?? I doubt you do need more information... but I'll play
along.
rtconnor: John has been providing support on this mailing list pretty
much since it's inception. If he didn't need more information, he
wouldn't have asked for it.
Hi all,
I have been trying to set several validation rules for a field without
much success, as the second rule always overwrites the fist.
i have seen a few examples of multi rule validation but they are for
1.1 and all the info about 1.2 is single rule.
can anyone help?
rtconnor: I still don't see a need for a model instance here.
Your first query, User-find(), will return the User data (as an
array), with appropriate associations loaded.
Your second query, User-read, will return User data (as an array),
with appropriate associations loaded.
Instead, try
$user
Nate, John...
I don't doubt his or anyone else's expertise around here. From my
viewings and usage of Cake, the code is amazingly written, and the
help around here has been about as good as I could hope for. No
complaints from me. Yes I know everyone supports for free. I try to
answer what
On Mar 19, 7:39 pm, Grant Cox [EMAIL PROTECTED] wrote:
Do you mind expanding on which framework / language allows you to have
sessions automatically expire when the browser is closed? Do you just
mean that the session has a very long server side timeout, and by
closing the browser your own
I've added this code to my app_controller and changed it to reflect my
data model (my table is called controls instead of categories).
Now I get the following errors on every page:
Notice: Undefined property: AppController::$Control in /Library/
WebServer/Documents/serials/app/app_controller.php
This won't answer your question (pros/cons of dAuth, obAuth, and
othAuth), but when I checked out othAuth and obAuth (haven't looked at
dAuth), I decided I would just write my own, because they either
didn't do what I wanted, or I didn't like how they did it. The manual
entry at
I also ended up writing my own. I would wager given the features you
want, you will probably be writing your own Auth system also. It seems
Cake lacks a standard Auth system. On the bright side, at least Cake
is set up so that it comes out relatively quickly.
They are working on making something
I'm trying to create a dynamic reusable navigation element that I can
call where I need it, including from static pages. My menu items are
stored in a table called controls with columns for name, path, id
and display_order. I'd like to do this the correct cakePHP way instead
of writing a verbose
I'd say, likely you'll create a Model called Control
And to get the list of menu items, use either the methods find() or
findAll() to get data from the the Control Model instance.
Explaining more than that would not help you.. make sure if you have
not, you have run through the Blog Tutorial,
This has come up a lot lately for some reason. I guess because there
are not enough examples.
Personally, I would setup and element. Lets calll it /app/views/
elements/menu.thtml
add to this:
$controls = $this-requestAction('controls/index');
foreach($controls as $control) {
//do whatever
}
I really like the selections on the left side - that's snazy. The
design is original. However, I couldn't find an About Us page (I
wasn't 100% sure what the site was), and I couldn't figure out how to
buy stuff online. Is that an option? Overall, good stuff.
On Feb 24, 1:15 am, Tazz [EMAIL
Hello all,
Anyone had any luck using GWT with CakePHP?
--~--~-~--~~~---~--~~
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,
Has anybody tried to integrate cakePHP with Xoops?
If not, can anybody help me or give a suggestion to integrate these
two systems??
Thanks
Saganxis
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
Mariano - you're a legend!
On 13/03/07, Mariano Iglesias [EMAIL PROTECTED] wrote:
Ok after fixing that issue on the bakery the article has been updated:
http://bakery.cakephp.org/articles/view/185
-MI
---
Remember,
I tried this solution and whaddya know: if worked! here's my code.
//invoke menu element
?php echo $this-renderElement('menu'); ?
//menu.thtml
ul
?php
$controls = $this-requestAction('controls/navindex');
foreach($controls as $control) {
print li;
On 3/20/07, Saganxis [EMAIL PROTECTED] wrote:
Has anybody tried to integrate cakePHP with Xoops?
If not, can anybody help me or give a suggestion to integrate these
two systems??
Take a look at JAKE and DRAKE modules for Joomla and Drupal which let
you use CakePHP apps withing the
89 matches
Mail list logo