Where is your index method defined? in app_controller or in a normal
controller?
On Sep 14, 12:37 am, Aaron Shafovaloff [EMAIL PROTECTED] wrote:
You are seeing this error because the private class method index
should not be accessed directly.
Apparently this is part of the latest SVN update
You could use ACL to prevent that action from being executed (from
anyone other than admins).
Another thing is that you should use POST requests for anything that
affects the database and GET requests for passive actions. That way
you have a little more assurance that the db changing requests
thanks for reply.
try: $this-cleanUpFields('ListEvents') ;
This throws an Error cause my Model Name is 'ListEvent'. If i use my
model name, there's no effect on the date problem. I still need to do
it manually :/
On 16 Sep., 20:51, dardosordi [EMAIL PROTECTED] wrote:
$this-cleanUpFields()
On Sep 17, 6:45 am, beetlecube [EMAIL PROTECTED] wrote:
I realized humorously, that my delete links for the posts on my mini-
discussion board were clearly showing in the status bar:
www.mysite.com/index.php/posts/delete/45.
So of course even though the delete link only shows up only for
Thank you for your answers.
Using 'default' = value in the array does not work,
it looks like this is not used for selectboxes
I'll just set the default value in the controller.
Claudia
On Sep 17, 1:00 am, Grant Cox [EMAIL PROTECTED] wrote:
Instead of forcing a selected item in the view
Multiple Rules is only available in Cake 1.2. There is a Bakery
article on this :
http://bakery.cakephp.org/articles/view/multiple-rules-of-validation-per-field-in-cakephp-1-2
I also wrote two posts on the new Validation in 1.2 on my blog
This line trtdpre?php $knownusers ?/pre does nothing. Apart
from the fact that there is no echo - $knownusers will be an array.
Try ?php debug($knownusers) ? to see the format that is being used.
Geoff
--
http://lemoncake.wordpress.com
On Sep 17, 4:16 am, CakeONaut [EMAIL PROTECTED] wrote:
There are a heap of tutorials on this - see
http://groups.google.com/group/cake-php/web/frequent-discussions on
where to start
Geoff
--
http://lemoncake.wordpress.com
On Sep 17, 12:17 am, Pisinho [EMAIL PROTECTED] wrote:
Hi,
I find a tutorial o HowTo with good example, a manual don't is
Hi,
I don't success to make param optional :
I try this :
Router::connectNamed(array('optional', 'slug'));
Router::connect(
/:optional/product/:slug/*,
array(
'controller' = 'products',
'action' = 'view',
'optional'
Hello,
I use the baked add function to insert a new item.
but to handle a verification inside I call the add-function with a
parameter which has nothing to do with the object (in this example
contact).
e.g. http://server/project/contacts/add/5
the 5 is processed inside the add-function
Not the clearest of descriptions But to force an insert, just
make sure that $this-Model-id is null, and that what you save
doesn't have a 'id' key. ie:
$this-Model-create();
$this-Model-save( array('title'='A new row') );
--~--~-~--~~~---~--~~
You received
Sorry, but is for cake 1.2 and don't is which i find.
I use cake 1.1.x
Exist a good e simples tutorial for authentication ACL, ARO e ACO ?
Thanks in advance.
-Messaggio originale-
Da: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] Per conto
di Geoff Ford
Inviato: lunedì 17
I am having trouble figuring out a way to redirect a user to a (group)
specific page after logging on.
The idea is to send 'book' users to the book view and send 'CD' users
to the cd view.
Book and CD are usergroups.
Any help would be very much appreciated!
Using: cake 1.1.17 on LAMP
Hi
I don't have any lines beginning with php in the .htaccess file I'm
afraid :S
On Sep 14, 6:19 pm, Thiago Paes [EMAIL PROTECTED] wrote:
Try remove the lines beginning with php in the .htaccess file..
For me, works fine after this alteration on a shared webserver...
On 9/14/07, jsgriffin
You may be running out of the allowed memory for your script.
in your php.ini, look for the setting: memory_limit.
by default it's set to 8M, try upping it to like 16M, or even 23M
not sure if this is your issue, but worth looking at.
On Sep 17, 9:45 am, jsgriffin [EMAIL PROTECTED] wrote:
Hi
eval.
It can be extremely dangerous though. Think very carefully about
injection attacks.
simon
On Sep 17, 3:57 pm, Unite [EMAIL PROTECTED] wrote:
Ok but is there a way to include a variable string (a blog) instead of
a file. (include only works on files)? Looking through the manual now.
Depends on what you want to achieve exactely.
If you just want to redirect your users I guess you would have to use
the 'this-redirect($path/$params)' cakephp builtin function.
Just after the login, you have to know which user is CD and which is
Book, right?
What is the name of your user's model?
Thanks a bunch
--~--~-~--~~~---~--~~
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 there,
On 9/11/07, gonzoprosperity [EMAIL PROTECTED] wrote:
//populate it with some default data
$this-execute(INSERT INTO users (...) VALUES (...));
Does this answer your question?
I was wondering if, once the new schema is defined, can the data from the
old structure be imported
Hi,
I have just tried to complete the testing tutorial
http://bakery.cakephp.org/articles/view/testing-models-with-cakephp-1-2-test-suite
from the bakery but it does not work for me. Basically i have followed
everthing exactly as in the article with the exception that I use my
model Document
I am having a similar problem with cake. Do you write your session
variable(s) once only or more than once?
It seems, and I want to be corrected if am wrong, that there's a
difficulty overwritting a session variable. That is if you set a
session variable during a session and want to overwrite it
I have:
Model User
Model Profile
Profile belongs to User
User hasOne Profile
In addition, I want to let users save a list of their favorite
profiles other than their own, so I added a habtm relationship to User
model, with a join table user_favorites holding user_id and profile_id
It seems to
Hi All,
I'm using the examples from the Bakery article by Sam Devore to generate
a PDF file (resume) from a cake form. This works just fine, if I use
the PDF layout (header(Content-type:application/pdf), which displays
the PDF just fine. BUT, I need to display that PDF in a cake page
I found code here that works great for this problem
http://bakery.cakephp.org/articles/view/alternative-methods-for-working-with-hasandbelongstomany-associations
On Sep 17, 1:57 pm, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
I have:
Model User
Model Profile
Profile belongs to User
Of course there is a cake way! It is in the Model::save method.
Model::save() takes 3 parameters. The last parameter is a list of
fields that are allowed to be written.
So:
...
$allowed_fields = array('username', 'email');
$this-Model-save($this-data, true, $allowed_fields);
...
On 9/14/07,
I'm interested in this as well, any suggestions? Thanks!
On Jul 19, 11:51 pm, Martin Schapendonk [EMAIL PROTECTED]
wrote:
Hi,
What would be a nice way to callstoredproceduresand capture their
output/return value from CakePHP?
Regards,
Martin
--
Martin Schapendonk, [EMAIL PROTECTED]
So, I ran across this today: http://www.magentocommerce.com/
It looks amazing BUT its written in the Zend Framework... which I have
not used and would rather not get into based on a few quick peeks
inside it. My question is... could something like this be dropped into
an existing cakePHP app as
Can somebody please explain to me why Model-saveField() wipes out
$this-data?
If I pr($this-data) before the saveField() call, the form data is
spit out.
After the saveField() call, pr($this-data) only produces an empty
array.
Can somebody please explain to me why that is (or point me in the
Hi there,
Have a look at this thread:
http://groups.google.ie/group/cake-php/browse_thread/thread/a2a140878b3094f1/a6c855f2b86a0b82?lnk=gstq=head+meltrnum=1hl=en
Cheers,
Sonic
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
Added Selling Made Simple, an e-Commerce platform to the list. It's
still in alpha, but feel free to check it out.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email
Howdy all,
I've been scouring the internet looking for a solution to this, but
I'm coming up empty. If you are familiar with the Mint stat software
package (http://www.haveamint.com), and intimately acquainted with
CakePHP, you might be able to solve this puzzler.
Mint has a plugin called Bird
Use $this-Model-query() ?
-Original Message-
From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of Travis
Sent: 17. september 2007 20:50
To: Cake PHP
Subject: Re: Calling stored procedures
I'm interested in this as well, any suggestions? Thanks!
On Jul 19, 11:51
After some searching I found an enhancement ticket here:
https://trac.cakephp.org/ticket/1855
Anyone know how to achieve this in the meantime?
On Sep 17, 4:34 pm, savagekabbage [EMAIL PROTECTED] wrote:
Hey Guys,
I was wondering if 1.2 supported .PO files on a per/plugin basis. I
have an
Hey Guys,
I was wondering if 1.2 supported .PO files on a per/plugin basis. I
have an app I'm going to be distributing with many plugins, and it
would be nice if I could separate language files just among the
plugins that need them.
Ideally I would like to be able to place the .PO files in the
When you say $this-data would $this be the Model or the Controller?
--~--~-~--~~~---~--~~
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
Hi,
I have configured how to work out the MYOPENID through the BAKER
website. I get authenticated and all but i want to pull out some data
like name,nickname,dob etc from the myopenid.com site after I have
authenticated. I want to use this data to welcome my site user
directly once he
Hello all,
I'm looking for a way to filter my query for Subject model which is
has and belongs to Confession model with findall method.
or a way to make this pagination work with custom query.
I'm using cake 1.1
This is a really long question but i hope the answer will be short.
here I start;
I did something similar, but with CSV output, not PDF.
I have one action that returns the CSV file with correct headers, etc, eg.
/orders/csv_generate_report
And then you can either link directly to that in the html or iframe and it
should display fine. If you then need to save the file or
Thanks for the replies, very helpful.
On Sep 17, 1:31 am, AD7six [EMAIL PROTECTED] wrote:
On Sep 17, 6:45 am, beetlecube [EMAIL PROTECTED] wrote:
I realized humorously, that my delete links for the posts on my mini-
discussion board were clearly showing in the status bar:
Oh well... maybe someone will port it to cake... or write something
better ;)
For some reason I just can't get into the Zend Framework... I've been
smitten by cakePHP. But I have to admit, this is nice enough to make
me want to dig in and give it a second look.
On Sep 17, 9:52 pm, Dr. Tarique
Sergi -
check out the Request Handler :
http://manual.cakephp.org/chapter/request_handler
On Sep 17, 8:03 pm, Sergei [EMAIL PROTECTED] wrote:
Hello,
How to make sure that post data submitted from my site, not another?
I use this code now:
.. if not empty this-data
I'm having trouble specifically with writing once to a session. As
soon as I write once to a session every page in my cake app goes
blank.
I've spent way too much time with this session component. I don't know
how to approach this problem anymore...
On Sep 17, 9:39 am, [EMAIL PROTECTED]
Hey Brad -
Have you checked for php core files in your webroot dir? The last
time I had a blank screen, no visible errors or server log errors,
PHP was dumping core for some reason - it was a specific version of
PHP (5.1.3 off the top of my head) that was causing the problems...
Just a thought.
Hi,
I just wanted to point out that the nightly build file,
1.2.x.x_17.09.2007.tar.gz from
http://cakephp.org/downloads/index/nightly/1.2.x.x
is only 20 bytes.
Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
44 matches
Mail list logo