Hi guys,
I'm trying to check if a record already exists (based on a filename),
if it does it should fail validation.
I'm using CakePHP 1.2 and had a look at 'userDefined' which looks like
it should call a custom function.
This function I'm talking about:
http://api.cakephp.org/1.2/validation_8p
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 t
I tried this solution and whaddya know: if worked! here's my code.
//invoke menu element
renderElement('menu'); ?>
//menu.thtml
requestAction('controls/navindex');
foreach($controls as $control) {
print "";
if ($control['Control']['path'] == $this->here){
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
>
> ---
>
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
PH
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
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 PRO
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
}
ver
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, and
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 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
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 http://manual.cake
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.
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 you
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 questi
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
$use
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?
--~--~-~--~-
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 fo
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,
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 ses
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 sh
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 enl
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 link
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.
--~--~-~--~~
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_Au
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.
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 cake-php@googlegroups.c
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 becau
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
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 th
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
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
- sa
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
hand
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 secu
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 val
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 ar
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,
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 applic
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 ex
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 plac
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
you
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 ol
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
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
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?
--~--~-~--~~~---~--~
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 waitin
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 = $this->Sess
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 lo
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 o
Hello all. I've been looking for a way to authenticate users and there
seem to be three popular chunks of code available - dAuth, obAuth and
othAuth. Any opinions on the pros and cons for these? I'm using
CakePHP 1.1 and I don't want to setup something that will be
incompatible with CakePHP 1.2. I
"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
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: http://www.MarianoIgle
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 t
*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
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]> w
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
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 lit
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 for
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
lang
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 becaus
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 unsubsc
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
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
--~--~-~--~~~---~--~-
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 r
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
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" gr
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 displ
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
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 kno
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://saniso
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 ch
And what about the guys at google group? Let us feel the love ;)
-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
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: http://www.
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 know,
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
> 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 sa
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 wit
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
wil
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
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
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?
--~--~-~--~~--
from API:
http://api.cakephp.org/class_model.html#e8844b859626edc554946480046e395f
if you try to add a $conditions parameter, do it with an array:
$conditions = array(
'active' => 1,
'created' => '>= 2007-03-15 00:00:00',
);
On 19 mar, 02:01, "cc96ai" <[EMAIL PROTECTED]> wrote:
> yes , i set
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
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 wikipedi
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
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 in
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';
> $this->render(
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 v
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-sourc
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
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 use
92 matches
Mail list logo