I was wondering... what's the syntax if you want to filter on the model
read on a first level of associated models? I couldn't find this in
the documentation anywhere...
ie,
If I have a Tag -> Contents relationship and I query on Tags to
retrieve the Contents associated with the tag, how can I
Hey Nate & all,
> > This isn't currently supported per-se, but it is a feature we're
> > working on for 1.2. What you can do in the meantime is create another
> > model for your join table, and use recursive associations to fetch the
> > data beneath the join model.
Do I define hasMany and belon
Well, validating file input fields doesn't work by default, so I was
going to this "manually".
However I'm still not able to access the data variable in the model:
if(empty($this->data))
{
$this->render();
}
else
{
if(!$this->Menu->validates($this->data))
{
$this->Menu->set('data', $t
Hi Tim,
Have you uploaded the cake files to your server yet? If not, that's the
first thing. You should have been given details from the host about how
to connect to your control panel or how to ftp into your site. This
should be in one of the emails when you setup with the host. So the
first thin
Thanks for the suggestions...
I don't understand the $file parameter in the render function. Should
that be the path to a file somewhere in my app that contains the view
logic I'm wanting?
Elements work still need a view to render, they seeom great for sharing
content across controllers and view
Did anyone implement a IP Address / CIDR helper (possibly with IPv6 support :) ?
And is willing to share ?
Albert
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email t
Doing a save() with a _empty_ INET type column, i.e. '' returns an error:
Query failed: ERROR: invalid input syntax for type inet: ""
I can probably fix this in beforeSave() but isn't this typically something
the framework should fix for me ?
Is this a known issue ? (couldn't find it in Trac)
Alb
Hi all,
Running the latest version of CakePHP and I just set up Flash messages
as per the tutorial here 'http://wiki.cakephp.org/tutorials:flashing'
which works fine until you specify a layout for it to use. Then you get
errors like this:
Notice: Trying to get property of non-object in
C:\www\Ra
> Doing a save() with a _empty_ INET type column, i.e. '' returns an error:
> Query failed: ERROR: invalid input syntax for type inet: ""
> I can probably fix this in beforeSave() but isn't this typically something
> the framework should fix for me ?
> Is this a known issue ? (couldn't find it in
I've added this to Tac, issue #1229
--~--~-~--~~~---~--~~
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 [EMAI
Maybe I'm missing something, but...
If the save fails, just don't redirect. Render the same addlink view
again, and it will populate the fields with the old data and display
the error message. That's the point of validation: if it fails, you
give the user a chance to fix the problems.
Sergei wro
I'm interested in this component, are you able to put it on cakeforge
or send it through perhaps?
I'm after some ideas, as eventually i wish to offer authenticated RSS
feeds through cake
--~--~-~--~~~---~--~~
You received this message because you are subscribed t
nobody knows? :(((
--~--~-~--~~~---~--~~
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
I think at this point I would just write the link with the onclick by
hand. the $ajax->link function isn't really made for this. The other
option, if you're a javascript purist, is to write the link by hand,
and then use the $javascript->event to watch for the onclick.
Personally, I think the link
On Jul 26, 2006, at 7:59 AM, [EMAIL PROTECTED] wrote:
>
> Hi!
>
> If i made class "photo" i've got error "table photos not found". But i
> don't want use this table in this model. I know - var $useTable =
> false; but i want use in this model few others tables.
> What i've to do?
A model only u
I've compressed the controller's admin_index function to
$this->set('funcionarios', $this->Funcionario->findAll());
but i still get both same messages when the table is named funcionario,
and whe is named funcionarios
--~--~-~--~~~---~--~~
You received this mes
Dear,
look at this code at my controller:
echo $this->data['Alert']['dtCriacao'] = $ime->niceShort(time());
But nothing id did :(
Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post
On Jul 27, 2006, at 9:04 AM, jwcunha wrote:
> Dear,
>
> look at this code at my controller:
>
> echo $this->data['Alert']['dtCriacao'] = $ime->niceShort(time());
>
> But nothing id did :(
First, it needs to be $time rather than $ime, and secondly, helpers
are only available in your views (not
Straight apache/mod_php is the only option for PHP either.
Lighttpd/fastCGI works for php, too,
and I'll probably be using it when my current project goes to
production.
This is an issue of great interest to me as well, as it's always been
my long term plan to learn RoR. So far my sense has been
What is the rest of your controller code? have you created a controller
that doesn't extend App_controller? Have you overriden the constructor
for either your controller or App_controller?
For autoLayout to not be defined, is rather "unusual" given it is
defined on Controller class.
For the varia
I'd be interested in hearing what said helper should do, Albert.
Please, go ahead. Make a wish.
cheers,
-Olle
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to
On 7/27/06, John Zimmerman [gmail] <[EMAIL PROTECTED]> wrote:
> Here is what I am currently thinking about doing (maybe someone has already
> done it or tried). I am just looking for some feedback on this.
>
> So the ultimate goal is to get rid of the "pages" or "posts" part of the url
> http://e
Hi there.
I would be really grateful if anyone could shed some light on my
situation.
I have just installed cake.
As advised by my ISP i have changed all the 3 .htaccess files as
follows:
/app/webroot/.htaccess:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQ
I have the same problem. I am looking into it and will let the group
know if I make any progress.
- jack
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-
Hi Maria
Thanks for getting back to me. Sounds like good advice.
I would love to set up my own test server. I am using WindowsXP an am
looking into installing apache etc. However, for now, I've been assured
my ISP has all the right extensions to make this work.
I'm ok with the design just not so
Thank you.
--~--~-~--~~~---~--~~
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 op
Are you using HtmlHelper's functions to create all your form elements?
Check the resulting HTML in your browser and ensure that your form's
method is "POST" and that your input field names all are like
data[Model][field].
HTH,
Ryan
--~--~-~--~~~---~--~~
You recei
I'm having this exact same problem. Any ideas about this one?
--~--~-~--~~~---~--~~
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
Sure. First, don't post the same question in 3 different topics. Next,
why does www.hostingnewmedia.com redirect to
www.hostingnewmedia.com/app/webroot/ ? If you cannot set /app/webroot/
to your DocumentRoot, then the .htaccess files take care of this. Your
request for www.hostingnewmedia.com/ s
Hi tim,
www/
index.php
app/
cake/
vendors/
I don't think the permissions on your tmp/ folder are the issue if you
have some DB interaction already.
Get your head around the Cake Conventions and everything starts to fall
into place. A lot comes down to naming files/m
Just had a conversation with gwoo on IRC about this. To fix this, just
add:
if(is_object($controller))
{
}
around the View constructor. Thanks again gwoo.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PH
Hi, this post was on another thread but...
Yes you do have the production set up.
I agree with ryanb006, messing with htaccess is not necessary.
Production set up is better if you have a dedicated server that can be
configured solely for your own purposes.
I have not tried it this way as I co
Hi, I have the following scenario:
class Cliente extends AppModel
{
var $name = 'Cliente';
var $useTable = 'usuarios';
var $primaryKey = 'idUsuario';
var $useDbConfig = 'data1';
/*...*/
}
class Usuario extends AppModel
{
var $name = 'Usuario';
var $useTable = 'u
What version of cake are you running?
--~--~-~--~~~---~--~~
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 [E
Re:
http://wiki.cakephp.org/tutorials:advanced_validation:advance_validation_with_parameters
Doing this tutorial, I found a piece of information missing, so I want
to insert the following and I wonder if people think that's ok:
---
If you decide to use this ErrorHelper, then you will also ne
Hi again,
Thanks for your reply and encouragement.
I have a few things to be getting on with but i'll be sure to get back
to you if i need your valued assistance.
Thanks,
Tim
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goog
Thanks Ryan and thanks Manifesto.
That sounds like good advice.
I'll try and get things set up as instructed.
I did try that originally but kept getting an internal server error 500
page.
I think it could have skipped a couple of files like you mentioned.
My ISP dont allow me to unzip on the serv
>From version.txt
1.1.5.3148
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 unsubscribe from this group, send email to [E
Hi,
I've used this:
$html->image('btn_edit_project.jpg',array('alt'=>'View'),false);
Works fine
-
Also used:
echo $image->link("btn_edit_project.jpg",
"/projects/edit/{$project['Project']['id']}");
Works fine
Thanks again.
I've re-uploaded all the original files unchanged but am unfortuantely
getting my 500 Internal server error.
I'm not sure what my ISP did when they originally hardcoded the server
to fit my custom rewrite rules. I'll have to ask them to restore the
settings from their end.
Its a sh
I've just tried version 1.1.6.3264 with same results.
--~--~-~--~~~---~--~~
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,
Hello,
Tooks me a while but syntax in $ajax->submit or $ajax->remoteFunction
is
'with' => 'Form.serialize("posty")'
Franck
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, s
I used Dreamweaver Mac to FTP first time but I think it objected to
some of the Cake file extensions and skipped them - FileZilla on PC was
better.
Also heads up for your FTP's handling of .htaccess files as the Cake
ones need to be present.
Dreamweaver Mac skips them, untested on PC.
Was the
Just to follow up.
I have done everything you suggested and have certainly made some
progress.
I now have things working fine. except that to reach my welcome page i
go to:
hostingnewmedia.com/app/webroot/
I also had to UNcomment out line 42 in app/config/core.php:
define ('BASE_URL', env('SCR
So you've Uncommented line 42 and removed the .htaccess files?
before you did that did your www/.htaccess have:
RewriteEngine on
RewriteRule^$ app/webroot/[L]
RewriteRule(.*) app/webroot/$1 [L]
and www/app/.htaccess:
RewriteEngine on
RewriteRule^$webr
yep, you 're missing the thing:
addlink *doesn't* have a view, it's just an action which saves the
data. then it redirects by flash function.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To pos
We're bidding on a website redesign and are heavily pitching the use of
CakePHP. The client is very concerned about URLs like:
www.site.com/page
instead of
www.site.com/page.html
Are CakePHP URLs any more difficult for search engines to index than
the standard page.html form?
--~--~
no
On 7/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> We're bidding on a website redesign and are heavily pitching the use of
> CakePHP. The client is very concerned about URLs like:
>
> www.site.com/page
>
> instead of
>
> www.site.com/page.html
>
> Are CakePHP URLs any more difficult
Is it possible to access session data writen by cake (in standard PHP
mode) outside of the basic framework?
I have a basic cake application which stores user authentication status
as a value in a cake session. I'd like to be able to access that value
to authenticate fckeditor filemanager without
Slightly OT, but I'd like to be able to run .html files in webroot/
through the cake lifecycle, but the current .htaccess will let
existing files be handled directly via the server. Unfortunately, I'm
pretty horrible with .htaccess, so I can't figure out how to tell it
to alter the exisiting file
I'm pretty sure the 'cake session' is just a PHP session with with
certain Cake-based data stored in it. You just want to make sure your
pages have before any code, or that you have
php.ini set to automatically keep sessions. If you were to go to a
blank php file in webroot after storing data i
51 matches
Mail list logo