Hi!
A while back I had .htaccess missing in one location and it caused my
layout not to be accessed. . .
Good luck!
-Will
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group,
Hi!
I have a model query - at first I thought it was recursive but when I
found such references in the cakephp manual I think perhaps not.
The situation is this: I have one table with many tabs. There is
another table full of renovation images that I want displayed when
people click on a tab on
That code was written for Cake v1.1. The formTag method has been
deprecated in v1.2. You'll need to revert to v1.1 or rewrite the code
to use FormHelper directly.
Wayne
On 10/12/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Does anyone know why I get this warning. And how do I get around
Does anyone know why I get this warning. And how do I get around it?
I'm using cake_1.2.0.5427alpha the code comes from IBM's tutorial at:
https://www6.software.ibm.com/developerworks/education/os-php-cake1/section4.html
Their code:
formTag('/users/register') ?>
Please fill out the form below to
Hi all,
I am working on a CakePHP app where people can view and sign up for
classes (or 'meetings', as i have called them. That was the best
synonym i could think up for the reserved word of 'class').
Unfortunately, i can't change the existing database structure, so i am
trying my best to work wit
If you've constructed the relationships properly, you shouldn't be
specifying 'Resource' in your save call. You should just have this:
$this->Resource->save($this->data);
All the HABTM rows will get saved automatically. Using checkboxes in
your html you might have something like this:
This p
My first guess would be that there's a fatal error in your view which
is preventing execution from continuing. If this is not a public
site, I would suggest turning on debugging, and making sure errors are
being displayed, and error reporting is on in your PHP configuration.
On Oct 12, 2:06 pm,
No, not directly. You could use the behavior to set a property in the
model, which is checked for in the controller.
On Oct 12, 9:45 am, LW <[EMAIL PROTECTED]> wrote:
> Is it possible to pass error- and flash-messages from a behavior
> 'beforeSave'-mesthod to a controller / view?
>
> thanks
> LW
Given that the name of the class which AppModel extends is itself
called Model (inside the CakePHP core), this question should answer
itself.
On Oct 12, 8:51 am, Austen <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I have a problem with using scaffold on a model called 'Model'. I
> can't seem to find
Yeah, hopefully. But in reality, there are already a lot of people
using the 1.2 branch which currently stands at 5750. There have been
enough changes to new features since the last release revision to
warrant an update. Also, it was a good excuse to use the new layout
--~--~-~--~---
You couldn't read 6 posts down even? It's still on the first page.
On Oct 12, 1:40 pm, j-rod <[EMAIL PROTECTED]> wrote:
> Just saw this version 1.2.5750 in the API section. Does this mean
> there will be a new release soon?
--~--~-~--~~~---~--~~
You received this
Just saw this version 1.2.5750 in the API section. Does this mean
there will be a new release soon?
--~--~-~--~~~---~--~~
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@goo
Hi Danielle,
On Oct 12, 5:34 pm, Danielle Tilley <[EMAIL PROTECTED]>
wrote:
> Have you told the the UsersController to use the email component?
>
> var $components= array('Email');
I was about to say "off course I have", but I'd declared
var $components= array('email');
instead, (no capital E
I'm having some problems with simple page dispatching on IIS. After
circumventing the BASE_URL routing, which doesn't work on this IIS
(the following gives a 404):
index.php/controller/action
Even the manual url variable pass doesn't work:
index.php?url=controller/action
And I get this error m
On Oct 12, 7:27 am, Wi1d <[EMAIL PROTECTED]> wrote:
> I've had a strange error on some of the views on a new 1.2
> application. The errors only occurred when I uploaded them to my
> shared hosting on Site5. It ran fine on my Gentoo Apache 2.2.6 server
> but after uploading I noticed that any view
I've tried just doing that but I get the error: Undefined property:
LessonsController::$User
I expected that to result in an error because I'm writing this code in
the lessons_controller not the users_controller.
Here's the complete function that I'm trying to add to the
controller...
function a
I've been tinkering with it for a while with absolutely no success, so
if anybody has any insight, it would be great to hear it.
-Igor
On Oct 10, 5:00 pm, ifcanduela <[EMAIL PROTECTED]> wrote:
> Hello everybody,
>
> I have a strange problem: the HTML and PHP/Cake code in the layout
> THTML docum
When there's a new release it will get posted here, and in the bakery.
-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
I noticed when I hit the 1.2 online Cake API the 1.2 label has changed
to 1.2.05750branch
Is a new release coming? I saw nothing in the release notes or
anything. Where else should I look for more details?
--~--~-~--~~~---~--~~
You received this message because y
If you want a list of all authors, not just authors associated to that
lesson use:
$this->User->generateList(..); (fill in with what you had)
I'm assuming your controller has $uses = arra('Lessons', 'Users'); or
similar...
On Oct 12, 8:04 am, EVan <[EMAIL PROTECTED]> wrote:
> My applicati
Sorry for repeating postwhen I first submit the message, it don't
comes up..
I post several times until it appears~_~
This is my first time to the google groupapologize for the wrong
post i
On Oct 12, 10:20 pm, "Wayne Fay" <[EMAIL PROTECTED]> wrote:
> I think you can stop hittin
Have you told the the UsersController to use the email component?
var $components= array('Email');
Chris wrote:
> Hi Guys
>
> I've been trying to use the PHPMailer Compoent as described in
> http://bakery.cakephp.org/articles/view/sending-email-with-phpmailer
>
> But I get the following error.
Some browsers including FireFox require you to close all
open browser windows before the session cookies will expire.
[EMAIL PROTECTED] wrote:
I have try to set
define('CAKE_SECURITY', 'high');
but when the browser is closed the session does not expire.
On 12 Ott, 00:27, Grant Cox <[
Help anybody? Doesn't anybody else has translation issues like this?
I'd appreciate some help, 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@
My application has two tables: Lessons, Users. Users hasMany Lessons
and Lessons belongsTo Users.
I'm trying to make a selectTag menu but I'm having problems getting
the generateList function to work... here's the code I'm using within
the lessons_controller.
$this->set('authorArray', $this->Le
I think you can stop hitting send... Five copies of the same email is enough.
Wayne
On 10/12/07, Alpha <[EMAIL PROTECTED]> wrote:
>
> Dear Andy,
>
> You mean you view the Category and want to see and paginate the
> related products?
>
> -> yeah , exactly~
>
> Easiest way it to make /products/byC
Dear Andy,
You mean you view the Category and want to see and paginate the
related products?
-> yeah , exactly~
Easiest way it to make /products/byCategory/$catId work. I.e. display
in that page the Category details and then do exactly the same as you
would with the index.
-> Do you mean that
Hey Everyone - thanks for your suggestions and help
Mr. Xeeton -- we're developing on a redhat linux box running PHP 4.4
-- i'm not sure which version of PEAR is installed, but i do know that
we're getting some Open_basedir warnings/errors when trying to
access PEAR from cake.i think it's
Did you mean method # 3? Method #2 is used as a component - sorry.
On Oct 11, 7:20 pm, Grant Cox <[EMAIL PROTECTED]> wrote:
> We use a modified version of the helper on the Bakery (#2 in your
> list). We found that same issue of larger files being invalid - this
> was fixed by just removing t
Hi all,
I have a problem with using scaffold on a model called 'Model'. I
can't seem to find an answer in the groups...
All the other models in my app work correctly under scaffolding,
except the 'Model' model which does not join with the 'HardwareType'
or 'HardDrive' models like it is supposed t
Dear Andy,
You mean you view the Category and want to see and paginate the
related products?
-> yeah , exactly~
Easiest way it to make /products/byCategory/$catId work. I.e. display
in that page the Category details and then do exactly the same as you
would with the index.
-> Do you mean that
Dear Andy,
You mean you view the Category and want to see and paginate the
related products?
-> yeah , exactly~
Easiest way it to make /products/byCategory/$catId work. I.e. display
in that page the Category details and then do exactly the same as you
would with the index.
-> Do you mean that
Dear Andy,
You mean you view the Category and want to see and paginate the
related products?
-> yeah , exactly~
Easiest way it to make /products/byCategory/$catId work. I.e. display
in that page the Category details and then do exactly the same as you
would with the index.
-> Do you mean that
Is it possible to pass error- and flash-messages from a behavior
'beforeSave'-mesthod to a controller / view?
thanks
LW
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send
Dear Andy,
You mean you view the Category and want to see and paginate the
related products?
-> yeah , exactly~
Easiest way it to make /products/byCategory/$catId work. I.e. display
in that page the Category details and then do exactly the same as you
would with the index.
-> Do you mean that
How do I correct this:
ob_start();
for($i = 0; $i < count($mails); $i++) {
ob_clean();
$mails[$i]['error'] = false;
$this->set('data',$mails);
Hi Guys
I've been trying to use the PHPMailer Compoent as described in
http://bakery.cakephp.org/articles/view/sending-email-with-phpmailer
But I get the following error..
Fatal error: Call to undefined method stdClass::send() in F:\xampplite
\htdocs\cake\app\controllers\users_controller.php on
Btw does anybody know how to have the codeassist popup automatically?
Like with Zend neon? no ctrl + space needed?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email
It would be nice idea if this is pointed out in big red letters in the
blog tutorial and manual ;) As i think allot of users will be
overlooking on this.
On Oct 12, 2:58 pm, djiize <[EMAIL PROTECTED]> wrote:
> One best practice, specify which fields are to be
> saved:http://api.cakephp.org/1.2/c
One best practice, specify which fields are to be saved:
http://api.cakephp.org/1.2/class_model.html#ebe42ae387be89985b5a35dd428f5c81
The third argument of the Model->save() is an array "List of fields to
allow to be written"
and in your CREATE TABLE, add "DEFAULT 0" to "active" field.
On 12 oct,
AD7six: to be fair, the whitelist is not in the manual. It is in the
api though... I'm wondering how I missed that!
On Oct 12, 1:22 pm, AD7six <[EMAIL PROTECTED]> wrote:
> On Oct 12, 10:28 am, Sharkoon <[EMAIL PROTECTED]> wrote:
>
> > Well he's got a point.
>
> > When I have this:
> > $form->inpu
Well to be honest this is one point that is not as clearly pointed out
in the tutorials and manual as it should have been.
On Oct 12, 2:22 pm, AD7six <[EMAIL PROTECTED]> wrote:
> On Oct 12, 10:28 am, Sharkoon <[EMAIL PROTECTED]> wrote:
>
> > Well he's got a point.
>
> > When I have this:
> > $for
Well, sure - $this->User->save() will save any correct data in the
array. But the user doesn't have access to model functions, only
controller functions (actions). And in your controller action you
should always, always, always validate the data being transmitted.
This isn't cakephp-specific, it's
On Oct 11, 6:14 pm, Alpha <[EMAIL PROTECTED]> wrote:
> I have simply two table
>
> Products
> -id
> -name
> -category_id
>
> Categories
> -id
> -name
>
> Product $belongsTo Category with foreign key category_id
> Category $hasMany Product with foreign key category_id
>
> Views / Controllers ar
On Oct 12, 10:28 am, Sharkoon <[EMAIL PROTECTED]> wrote:
> Well he's got a point.
>
> When I have this:
> $form->input('User.email');
> $form->input('User.password');
>
> and put via firebug value="1">
>
> and then $this->User->save($this->data);
> It saves active as well!!!
>
> A huge security
On 10/12/07, Alpha <[EMAIL PROTECTED]> wrote:
>
> Did I ask the wrong question ? or in a wrong way ?.
> Kindly let me know
>
You will most likely have to wait for Andy to come along and answer
that for you
T
--
=
Cheesecak
Did I ask the wrong question ? or in a wrong way ?.
Kindly let me know
If the question has no solutionalso let me know...
at least I may stop struggling on it..
Many thanks~
--~--~-~--~~~---~--~~
You received this message because you are subscribed t
Hi!
I'm writing a newsletters module, and I want to update the rendered
view while i'm in the for loop ...
#CODE
for($i = 0; $i < count($mails); $i++) {
//Here comes the send function ...
$mails[$i]['error'] = false; //If everything is ok set error to false;
$this->set('data',$mails);
}
$th
Well he's got a point.
When I have this:
$form->input('User.email');
$form->input('User.password');
and put via firebug
and then $this->User->save($this->data);
It saves active as well!!!
A huge security risk!!
--~--~-~--~~~---~--~~
You received this message
Thanks grigri alot for pointing that out! I spent several hours trying
to find whats wrong.
Have a great day!
On Oct 11, 1:17 pm, grigri <[EMAIL PROTECTED]> wrote:
> it's $actsAs, not $actAs
>
> On Oct 10, 8:46 pm, RLR <[EMAIL PROTECTED]> wrote:
>
> > I am trying to use the SoftDelete behavior a
You may be trying too hard with what you are trying to achieve
Excel will take a file made up basically of tables in html.
as long as you send a header like:
ContentType = "application/vnd.ms-excel"
then the following format for the data (note, no HTML, HEAD or other
tags)
2
3
=SUM(A1:A2)
I have try to set
define('CAKE_SECURITY', 'high');
but when the browser is closed the session does not expire.
On 12 Ott, 00:27, Grant Cox <[EMAIL PROTECTED]> wrote:
> There have been threads like this before, where the question was
> really "why are Cake sessions persisting even after closing
Hello people, I'm using CakePHP 1.2 and this is what's happening:
My cache works correctly only with one action in one controller, any
other actions in other controllers does not work.
BUT the craziest thing is that if I clone the working action (changing
it's name), the new action that is exact
53 matches
Mail list logo