Hi all,
I just wanted to clarify how requestAction treats url parameters.
In a url like: /con/action/1.xml?abc=123&def=456
if "abc" or "def" is already present in the $_GET environment
variable, the params['url'] inside the requested controller does not
reflect the new values of "abc" &
I'm looking for any documentation or "How tos" for using the prototype
window class (http://prototype-window.xilinus.com/) from inside
cakePHP. I've been trying to get it to work and I'm having some
problems. I can get the windows to render, but the css themes don't
fit, they aren't draggable, th
I have a file model that belongs to an image model that belongs to a
gallery model. When I'm in the gallery controller and do a findAll()
galleries, it loads the galleries and their corrosponding images. But
the images do not load the File model. I assume it's because it only
loads to a certain
On Dec 18, 2007 9:30 PM, peterhf <[EMAIL PROTECTED]> wrote:
>
> In an html textarea object, the default value is set between the begin
> tag and the end tag, i.e. default value. How does
> one set the default value of $html->textarea(...)? $html->extarea()
> does not recognize a 'value' attribute
In an html textarea object, the default value is set between the begin
tag and the end tag, i.e. default value. How does
one set the default value of $html->textarea(...)? $html->extarea()
does not recognize a 'value' attribute in the html attribute array.
Thanks in advance for all suggestions.
After doing some reading and looking at 1.2 validation, I thought I
had a pretty good understanding of the process.
However, let's say I wanted manually validate a bit of data coming
from a post using the standard model validation features. Seems like
it should be fairly straightforward, but I c
On Dec 18, 2007 3:36 PM, Stefan <[EMAIL PROTECTED]> wrote:
>
> Having good ol SQL Server character coding problem. Supposedly PHP6
> fixes the problem, Cake compatible with V6 or not?
PHP 6 isn't even close to a stable release, so I would have to say no.
--
Chris Hartjes
My motto for 2007: "
On Dec 18, 2007 4:20 PM, Ldg27 <[EMAIL PROTECTED]> wrote:
>
> > Try sticking $this->User->create() in front of
> > $this->User->save($this->data)
>
> It didn't worked. Could it be achieved with a beforeSave()??
> And could the login() action could also match the password been
> entered with the o
Having good ol SQL Server character coding problem. Supposedly PHP6
fixes the problem, Cake compatible with V6 or not?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send ema
> Try sticking $this->User->create() in front of $this->User->save($this->data)
It didn't worked. Could it be achieved with a beforeSave()??
And could the login() action could also match the password been
entered with the one in the database, with a beforeFind()??
Thanks.
--~--~-~--~---
On Dec 18, 2007 2:07 PM, Ldg27 <[EMAIL PROTECTED]> wrote:
>
> $this->User->save($this->data);
Try sticking $this->User->create() in front of $this->User->save($this->data)
--
Chris Hartjes
My motto for 2007: "Just build it, damnit!"
@TheKeyboard - http://www.littleha
> 1) With Debug set at level 3 do you see the app inserting multiple
> session records in your database?
not at the same time.
> 2) Are you using any AJAX calls?
not in my testcase.
> 3) Are you making any requestAction calls?
no.
> 4) Have you tried turning 'Session.checkAgent' to false? (Does
Hi,
I am new to this framework and have been using it for about 3 days.
I created a register action for people to register. When using it, it
throws the "Thank you for registering'" flash message, but it doesn't
creates nothing in the database.
I would appreciate any help.
function regist
Thanks a bunch. I added validation in AppModel as you suggested and it
solved the problem.
On Dec 18, 5:56 pm, grigri <[EMAIL PROTECTED]> wrote:
> As I understand it the String class will handle utf-8 properly, when
> completed, so you could wait...
>
> You could override the necessary validation
See the article in the bakery for wrapping request action in an
element (I think its also linked to from the FAQ on this group).
Then AJAX is a nice addition to this, and is simple if you use a
javascript library that cake can detect as making ajax calls - your
javascript would just call the URL
Questions that would help me (any maybe others) diagnose the problem.
1) With Debug set at level 3 do you see the app inserting multiple
session records in your database?
2) Are you using any AJAX calls?
3) Are you making any requestAction calls?
4) Have you tried turning 'Session.checkAgent' to
I am having a problem calling updateAll because none of the values in
the query are being quoted. I could recreate the field array with all
of the values quoted, but it seems like I should not have to.
Thoughts?
Thanks,
Brad
--~--~-~--~~~---~--~~
You received t
Can someone point me to a clear example of tutorial on how to build a
drop down box from the getList method.
I searched the post and didn't find anything useful.
Thanks in advance. Brian
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
Thank you the_woodsman for the pointer. I read the article on Bakery
(btw, it's entitled HABTM Add & Delete Behavior)
However since this is an 'age-old' problem as noted in article, I am
wondering if the the core has been updated to deal with the issue; Or
do I still have to implement some workaro
If you have the recursive property on your Article model set to 1 or
higher, a find() or read() function call in the Article model will
automatically associate the related comments.
Try:
$this->Article->recursive = 1;
$data = $this->Article->read($article_id);
then,
pr($data);
To see the the a
I've written a form that allowed to create/delete multiple records
from a table only when it was saved.
The best solution that I could find was to do a big post and build the
form so that all of it can be passed to the save function for cake,
but had to manipulate the data and saved each part one
>From my experiences it is best to not touch the afterFind function as
much as you can because you will run into problems down the line with
associations and from calling a find with different parameters in
different parts of the controller(s). Unless it is something that must
be done for all befo
Off the top of my head,
I seem to remember someone implemented a behaviour to handle this?
Maybe Im going crazy.
Check the Bakery
On Dec 18, 9:12 am, zonium <[EMAIL PROTECTED]> wrote:
> This 'issue' was discussed long
> ago:http://groups.google.com/group/cake-php/browse_thread/thread/acb76
Does the hosting she has purchased have PHP? If so, she should be
fine. Since she's already purchased it, why don't you just upload
CakePHP (using FTP) to your new site and test it to see if it works?
- Shane
On Dec 17, 6:00 pm, Jon <[EMAIL PROTECTED]> wrote:
> Hi all.
>
> Have anyone succes
Finding those tempdocs were a large part of why we chose to look more
into Cake than a couple other frameworks while we were looking over
PHP frameworks recently at my work. One of the big knocks on Cake was
the documentation in place until I linked that work in progress :)
On Dec 17, 5:12 pm, "J
Hi,
I'm trying to design my app to have fat models and skinny controllers
where possible but having a problem with one particular part of that:
retrieval of associated models.
I have models Foo and Bar, where (Foo hasOne Bar) and (Bar belongsTo
Foo), which map to DB tables 'foos' and 'bars' resp
As I understand it the String class will handle utf-8 properly, when
completed, so you could wait...
You could override the necessary validation methods either in AppModel
or a behavior - since these are checked before the methods on the
actual Validation class.
For example, the Validation::betwe
ok ... using lowercase functions read() and write() doesn't work,
too ... :/
On 18 Dez., 12:29, hausburger <[EMAIL PROTECTED]> wrote:
> hi everyone. just for your information:
> - i tried database and cake as session storage (same problem)
> - Configure::write('Security.level', 'medium');
>
> the
Good morning.
I have to load the "latest 5 news" inside a div of an homepage. I
thought about making a function NewsController::last5() which could be
something like the following
$this->data = $this->News->findAll(null,null,"News.created desc",5,1);
$this->set("data",$this->data);
Now, I s
Sorry for possible double post, but I've posted it more than an hour ago
and still didn't received back from the list.
Good morning.
I have to load the "latest 5 news" inside a div of an homepage. I
thought about making a function NewsController::last5() which could be
something like the followi
Hi,
I'm creating my first cakephp (1.2) project.
Without changing any default settings, I see that string length
validation functions (between, maxLength...) don't work properly with
multilingual input.
What should I do to make them work?
Thanks.
--~--~-~--~~~---~--~
Hi, I recently had this blank page problem.. The problem was coming
from the file /tmp/cache/persistent/class.paths.php
My online site was set to auto-update itself with my SVN repository,
and the file was always updated with my local settings (saved in the
repo).. thus:bug.
Deleted the file, se
Looks good. Maybe a combination of all these would make everyone
happy.. :-)
--~--~-~--~~~---~--~~
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 unsubscr
Hi Joe!
Here is a special jobs website about Cake: http://withcake.com/
BR
Avairet
On 17 déc, 22:44, joeradical <[EMAIL PROTECTED]> wrote:
> I am looking for the best place to find seasoned cakephp guru's. I am
> rewriting our entire site for cake and may need additional help to
> speed up dev
Oops, I just updated it, so it's pending again :( It was only a very
minor change, but I suppose they've got to moderate it somehow.
Cached version looks ok :
http://www.google.com/search?q=cache:http://bakery.cakephp.org/articles/view/showing-a-text-excerpt-around-multiple-keywords
On Dec 18, 2
Well, it sounds interesting (yes, search results:)), but that bakery
link gives me "Unable to provide the article you requested; it is
currently pending approval for public viewing"
Maybe I should check it out later..
--~--~-~--~~~---~--~~
You received this message
No probs :) I'd just point out that I haven't had time to work more on
my version, and Alex's version handles entities properly (mine doesn't
- yet). If you enhance/improve either of them, post the code - it's
something we all need!
As a shameless plug, if the functionality of "excerpt()" isn't u
Thanks grigri, this is just what I needed!
--~--~-~--~~~---~--~~
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
But doing such a thing is not B&R?
On Dec 17, 12:38 pm, Walker Hamilton <[EMAIL PROTECTED]> wrote:
> @Derico Filho
>
> Uhh...you're wrong. You can just drop any of the Zend libraries into
> the vendors folder.
>
> For instsance, I used the tutorial in the bakery on Zend's Lucene
> implementatio
See the code I posted here : https://trac.cakephp.org/ticket/2242
There is also code for a similar function here :
https://trac.cakephp.org/ticket/2306
and here :
http://groups.google.com/group/cake-php/browse_thread/thread/fbc9a90b2fbfa95b/303980c8ef01abea?lnk=gst&q=truncate&rnum=1#303980c8ef01
Em..anyone..?
If it's not doable I'd also like to know..
--~--~-~--~~~---~--~~
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
Hi,
I ran into a slight problem using TextHelper->truncate() and
excerpt(), and I don't know if it's possible to handle with Cake API.
I have an article, which of course contains HTML code. When I try to
get a preview of an article, I do one of the above and I am of course
left with an open HTML
Hello,
I use the cakePHP
version 1.1.17.5612.
I making a comments form. for thise form I use 2 components, the
phpmailer and phpcaptcha.
I follow the tutorials for the captcha and comments from
http://bakery.cakephp.org/
If they are both declared in my controller, the captcha form does not
app
hi everyone. just for your information:
- i tried database and cake as session storage (same problem)
- Configure::write('Security.level', 'medium');
the problem seems to be the cookie:
-
NameCAKEPHP
Value dc5
hi everyone,
thanks for all the replies!
but nothing helped :(
i'm using 1.2.0.5875 pre-beta
and now i'm posting my core.php session settings, maybe i have
something wrong here !?
(when it's set to database, sometimes the database table is filled by
some session stuff i guess .. but there are sev
hi stefan,
just a quick question cos I have just ran into this problem about an
hour ago.
are you using the latest nightly or the 5875 release? Cos i'm having
problems with the session not storing anything in the latest
nightly... and going back to the pre-beta release fixed it.
I'm still loo
Hi Linspirell,
The definition of APP_DIR looks wrong. As your app directory is called
"myblog" it should be:
define('APP_DIR', 'myblog');
HTH
daniel
--
Daniel Hofstetter
http://cakebaker.42dh.com
--~--~-~--~~~---~--~~
You received this message because you are s
Kelly,
I know you are a beginner, that's why I winded you upp before one of
the more grumpy bakers chopped your head up. Don't get me wrong, these
are great guys but some of them have short fuses ;)
Now, have you added the path to the folder where the cake script is
to your PATH?
If so are you
Hello.. i'am a new cakePHP user :) and got confusing in
configuration.
i had to read cakePHP manual before.
my question, how to setting in order to be able i can make many
different app in my document root?
i save all of my web app in D:\tohtdoc s
i try to put cakephplib in D:\htdoc\cakephplib and
On 12/18/07, grigri <[EMAIL PROTECTED]> wrote:
>
> Has anyone tried using the new Media View class? I think this is
> exactly what it's designed for.
Looks like we will have to wait for the corresponding helper to be
coded to use the MediaView
T
--
=
Has anyone tried using the new Media View class? I think this is
exactly what it's designed for.
On Dec 18, 1:45 am, Grant Cox <[EMAIL PROTECTED]> wrote:
> Drop your Session Security.level to "medium", or update your Cake to
> the newest branch - this session behaviour has been fixed in
> r5982.
Also, I'd be careful to use $this->Session->read() instead of $this-
>Session-Read() (and write() instead of Write()). Those caps can be
nasty..
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To pos
Manuj,
I'm not going to fall back to the standard RTFM response here... but
seriously, you do need to read the manual. All the information you
need to do this is there.
Tufty
On Dec 18, 5:03 am, manuj bansal <[EMAIL PROTECTED]> wrote:
> thanks for the idea
>
> plz help me how to use request act
This 'issue' was discussed long ago:
http://groups.google.com/group/cake-php/browse_thread/thread/acb76273176c3e21/d660547d266f8c7c?lnk=gst&q=habtm+insert+delete#d660547d266f8c7c
Basically, when some new entries are added (saved) to the jointable,
cake attempts to
DELETE FROM `jointable` WHERE m
54 matches
Mail list logo