This is my setup:
- In controller:
var $cacheAction = 'true';
var $helper = array('Cache', etc);
- In config:
define('CACHE_CHECK', true);
- In Routes.php:
Router::connect('/', array('controller' => 'contents', 'action' =>
'view', 'home'));
This caches the view:
- site.co
You want Post belongsTo User, User hasMany Post.
On Sep 5, 3:25 pm, beetlecube <[EMAIL PROTECTED]> wrote:
> Hi, hope someone can clear this simple thing up.
>
> I have a Post model (posts table)
> -
> Pri Key: int ID
> varchar[100] comment
>
Hi, hope someone can clear this simple thing up.
I have a Post model (posts table)
-
Pri Key: int ID
varchar[100] comment
int User_id ( the user who posted it of course )
and a User model (users table)
-
Pri
On Sep 4, 5:33 pm, Anna P <[EMAIL PROTECTED]> wrote:
> OK so how to use it? When I try
> if(is_file("../img/upload/photo_file1_".$item['Item']
> ['id'].".jpg")): (the path, which just gives me the right
> image)
> it doesn't work as well.
Hi,
2 tips:
1) You need an absolute path to the fil
Its a design pattern http://en.wikipedia.org/wiki/Factory_method_pattern
Basically it hides the fact that the UsersDetails models are different so
that you can still use the same methods to access it.
Geoff
On 9/4/07, nerohc <[EMAIL PROTECTED]> wrote:
>
>
> Thanks... but what is a factory object
I dont know if it will work by default, but if its giving you
problems, edit the config/inflections.php file.
There are some examples and instructions within the files itself.
On Sep 4, 8:42 pm, DanielMedia <[EMAIL PROTECTED]> wrote:
> class Event extends AppModel
> {
> var $name = 'Event';
array('className'=> 'Person',
'conditions' => '',
'order'=> '',
'dependent'=> true
//'foreignKey' => 'person_id'
Hi,
I'll try again on my problem. I have included the models and controllers
run firefox and get this error
Fatal error: Class 'People' not found in
C:\VertrigoServ\www\kake\cake\libs\model\model_php5.php on line 445
=
The plural and singular are confusing
I create Person.php
I know I'm not helping with the issue at hand, but I got a suggestion:
I do something similar. Since you seem to control your filename (not a user
uploaded file) then you could just set a boolean field on your controller:
image. Then your "if" will just deal with your controller.
I was just think
I'm sorry, I'm just one of those guys that no matter how much you pound it
into my head, I can't really get this ACL thing.
That's why I used obAuth. Just search the bakery for it. It does basic group
and user logins, which is all I need for right now.
I just overrode the app_controller, and stuc
In general, I agree, but here is where my break-down occurs:
1) The fields/questions are not really every used to search or find
records
2) The client eventually wants a web-based tool to add/delete
questions at any time
Rather than building a table with 200+ fields that are not always used
AND
Hi Howard
Howard Glynn wrote:
> My cake1.2 intranet app has a large pool of users (employees), all of
> whom interact with the models (objects) through varying lifecycles,
> and works well.
> I can't believe I'm the only one to face this, can anyone offer any insight
> on which direction they
Youhouh ! I finally got it :)
Some changes I made in the .htaccesses did the trick, now all seems to
be ok, it's great :)
Thank you again for your help !!
Fabian Pijcke
On Sep 4, 11:35 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> I tried differents configurations but can't make it work
I tried differents configurations but can't make it work :(
I'll try again tomorrow, time to sleep for me ...
And a great THANK YOU for all your suggestions / comments / help !
On Sep 4, 10:32 pm, francky06l <[EMAIL PROTECTED]> wrote:
> I have set another application (gumiz) on OVH, basically t
My cake1.2 intranet app has a large pool of users (employees), all of
whom interact with the models (objects) through varying lifecycles,
and works well.
We're coming to deployment time, and I've been avoiding ACL so far
in the hope it might somehow magically get easier, but having read
everythin
On Sep 4, 10:50 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> I am having an issue with ACL. I have tried doing an $aro->setParent
> on an ARO object and I've also tried using the acl.php script that
> comes with CakePHP and both of them fail when setting the parent on a
> certain ARO. I'
I've got it!
This is now part of my 'Comments' model.
var $belongsTo = array('Author' =>
array('className' => 'User',
'conditions' => '',
'order' => '',
'foreignKey
I am having an issue with ACL. I have tried doing an $aro->setParent
on an ARO object and I've also tried using the acl.php script that
comes with CakePHP and both of them fail when setting the parent on a
certain ARO. I've narrowed down where the code returns FALSE in the
setParent function, but
Hi all,
We just released a collaboration app built on CakePHP called Web
Groups. It's a web app for groups to collaborate - kind of like
Basecamp meets Sharepoint meets Facebook. It's perfect for
consultants, small businesses, departments in companies (that want
some real collab tools and more
On 9/4/07, Braindead <[EMAIL PROTECTED]> wrote:
>
> Chris, thanks for the quick reply, but the problem is not to select
> only a few fields from 'Post'. I want to select only a few fields from
> 'Comment Author' like nickname and id. I don't want fields like hash
> and sault.
>
Then specifiy 'Com
Chris, thanks for the quick reply, but the problem is not to select
only a few fields from 'Post'. I want to select only a few fields from
'Comment Author' like nickname and id. I don't want fields like hash
and sault.
Please take a look at the data I receive from the query. I think this
should h
I realized after, when reading again, that you were talking about a
loop. So the cacheQueries if affecting the getFoold.
On Sep 4, 10:22 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> THAT'S IT! cacheQueries = false was exactly the detail I was
> missing! Phew!!! :)
>
> Thanks very much e
If you want a "permanent" solution to restricting the fields returned,
define a "fields" array in your model ( i.e. when defining
hasMany/belongsTo associations )
Hint: Look under Section 4 "Associations" at
http://manual.cakephp.org/chapter/models
In conjunction, review your "recursion" setting
I have set another application (gumiz) on OVH, basically the webroot
resides on the www directory :
www/gumiz
- index.php
+ js
+ img
+ css
I have set the application and cake into the home directory : foo.
Cake is in foo/cake, gumiz my application is in foo/gumiz.
/home.8/l/o/a/loanlnk/
On 9/4/07, Braindead <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I have a model 'posts'. 'Post' has and belongs to many 'Comment'.
> 'Comments' belongs to 'Author'. 'Author' comes from my model 'users'.
> Everything is working fine. I can access the post, the comments and
> the author information.
You
THAT'S IT! cacheQueries = false was exactly the detail I was
missing! Phew!!! :)
Thanks very much everyone! Much appreciated!
-Packgrog
On Sep 4, 4:04 pm, francky06l <[EMAIL PROTECTED]> wrote:
> I think you misunderstand, having !$foold will avoid setting the id,
> so it will call create and
Hi,
I have a model 'posts'. 'Post' has and belongs to many 'Comment'.
'Comments' belongs to 'Author'. 'Author' comes from my model 'users'.
Everything is working fine. I can access the post, the comments and
the author information.
The only problem I have is the fact, that every single field fro
On 9/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> I guess I'm being too vague here. My original code is fine for doing
> both inserts and updates. Let me illustrate the problem with more
> code:
>
> addFooToDb( 'Bob Jones', '04/05/2007 12:00:00' );
> addFooT
I think you misunderstand, having !$foold will avoid setting the id,
so it will call create and make a new record. If record exists, the
create is not called and your id is set... it will update.
Unless I am completely wrong concerning your problem, I think this
code will update as well as create
It would be very nice, thank you !!
On Sep 4, 9:38 pm, francky06l <[EMAIL PROTECTED]> wrote:
> well I can give you my "tree" under OVH if you are interested. OVH is
> quite tricky with their "special" version of Apache.
>
> On Sep 4, 9:21 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> > O
Hi, thanks for the tips, I tried to do all this, here's my
new .htaccess:
mod_gzip_on No
RewriteEngine on
RewriteBase /maryphoto/webroot
# RewriteRule ^private/$ private/index.php [L]
# RewriteRule ^$ maryphoto/webroot/accueil.php [L]
RewriteRule (.*) $1 [L]
SetEnv PHP_VER 5
I h
This is actually just a reiteration of the same code I already
posted. Setting $newFoo['Foo']['id'] = 0; will have the same effect
as create(); as it will simply create a new row.
-Packgrog
On Sep 4, 3:15 pm, francky06l <[EMAIL PROTECTED]> wrote:
> I think with all the posts you get the answer,
I guess I'm being too vague here. My original code is fine for doing
both inserts and updates. Let me illustrate the problem with more
code:
addFooToDb( 'Bob Jones', '04/05/2007 12:00:00' );
addFooToDb( 'Sam Smith', '04/05/2007 12:01:24' );
addFooToDb(
well I can give you my "tree" under OVH if you are interested. OVH is
quite tricky with their "special" version of Apache.
On Sep 4, 9:21 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Oh, and I'm under Linux with Apache 1.3.37 and PHP 5.2.3.
>
> I don't know the distrib but uname -r return
can you past some code in the bin or by mail ?
On Sep 4, 9:05 pm, Richard <[EMAIL PROTECTED]> wrote:
> I've tried just about everything :-/ ...well and truly stumped.
>
> On Sep 4, 10:03 pm, francky06l <[EMAIL PROTECTED]> wrote:
>
> > I had a similar problem once, caused by many "blanks" and als
Oh, and I'm under Linux with Apache 1.3.37 and PHP 5.2.3.
I don't know the distrib but uname -r returns "2.6.18.1-grsec-mutu-grs-
ipv4-32".
(MySQL 5.0)
My CakePHP version is the last nightbuild. VERSION.txt said
1.2.0.5427alpha.
On Sep 4, 9:03 pm, francky06l <[EMAIL PROTECTED]> wrote:
> Well i
hummm ..some of the rules are messing the rewrite (not sure). Try keep
only the one in webroot. An other trick, I have an OVH domain and I
needed to add rewriteBase in order it to work.
My webroot is alpha under the www (but my application and the cake
directory are not under www). I added rewrite
Index.php ( I deleted the comments ):
dispatch($url);
}
if (Configure::read() > 0)
echo "";
?>
/.htaccess:
RewriteEngine on
RewriteRule^private/$ private/index.php [L] # private section,
used to redirect http://www.maryphoto.be/private to
http://www.maryphoto.be/maryphoto/web
I think with all the posts you get the answer, should look like :
if( $fooId > 0 )
{
$newFoo['Foo']['id'] = $fooId;
}
else
$this->Foo->create();
$newFoo['Foo']['name'] = $name;
On 9/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Almost there. I want addFooToDb() to either create a record if it
> doesn't exist or update an existing record. What you provided here
> will only update a record that's been found.
Well, that's what the example you had was doing anywa
It's not a scaffolding problem, it's a model relation problem (you did
not show the Event model). You can't get the person by querying the
Events if there is no relation from events to person. Either you make
the events belongsTo person or you query your Events from the Person
model.
On Sep 4, 7
I've tried just about everything :-/ ...well and truly stumped.
On Sep 4, 10:03 pm, francky06l <[EMAIL PROTECTED]> wrote:
> I had a similar problem once, caused by many "blanks" and also some
> trailing space after the ?> into the element.
> Have you tried to simplify the element (for example ju
Almost there. I want addFooToDb() to either create a record if it
doesn't exist or update an existing record. What you provided here
will only update a record that's been found.
I should reiterate something with my example: The first time I run it
with the sample data, if there are no entries
Well if all links are wrong, it's problem of mod-rewrite and/or
index.php. What platform do you use ?
Can you paste your .htaccess and webroot/index.php in the bin or by
mail ?
On Sep 4, 8:45 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> I have this problem for all my URL's, the images can
Check in the cakeForge. Some CMS projects there.
On Sep 4, 8:46 pm, "lalit kumar" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I wanna start a new project in cake. it basically shopping cart and CMS.
> front end and admin both are available in that project .
>
> How can i start in cake php .
>
> Is there
Hello, im new to the group. I'm starting my first proper project with
cake and need a bit of advice.
Has anyone tried to integrate with phpBB3 yet?
I have come up to a problem already. I have cake in my root, well what
will be root when i put it on the server. Inside the folder i have all
the ca
Sorry if I'm being dense, but why not just double-quote all object
names, whether they're reserved words or not? If it only happens in
generated sql statements...
The version I'm using may be out of date, but it uses a union of
user_tables and user_views to find sources, which isn't sufficient i
This tutorial explains how to build a product catalog, this should
help you a bit.
http://www-128.ibm.com/developerworks/edu/os-dw-os-php-cake1.html
Hope it helps
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ca
Hi,
Did you read the Cake Blog Tutorial available into the manual ?
==> http://manual.cakephp.org/appendix/blog_tutorial
You can also check sourceforge, some projects are visible there ...
Good luck for your project !
On 4 sep, 20:46, "lalit kumar" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I wanna
I have this problem for all my URL's, the images cannot be found ( url
searched: http://www.server.com/home/maryphot/www/maryphoto/img/image.ext
in place of http://www.server.com/img/image.ext ), my form's actions
have the same problem.
My CSS cannot be found anymore.
I can solve some problems b
if(file_exists(IMAGES. 'upload' . DS . 'filename'))
hope this helps
On Sep 4, 8:31 pm, Ketan Patel <[EMAIL PROTECTED]> wrote:
> look in cake/config/paths.php, it has most of the general path
> constants that one would need. I think WEBROOT_DIR is what you need,
> however, look in that file for m
My proposed fix in the trac ticket is that if there is a fieldList
parameter, 'id' has to be in that list otherwise it won't be set.
I think this is really important as a default behaviour for cake. It's
rather confusing that you have a whitelist but 'id' gets thru. It's
dangerous. Just to make s
Yep, sorry Chris, next time I will read more carefully the post. The
name of the function does match the opposite of the functionality :-)
On Sep 4, 8:32 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On 9/4/07, francky06l <[EMAIL PROTECTED]> wrote:
>
>
>
> > Maybe just before the save do :
>
>
Hi,
I wanna start a new project in cake. it basically shopping cart and CMS.
front end and admin both are available in that project .
How can i start in cake php .
Is there any sample cake php project available?
i am step the cake php and database configuration. now wait for start how
can i sta
You could also hash your id in an hidden field, and when receiving the
form, hash again the id and compare with the hidden hashed field. To
trick you would have to find the hash string also ..a bit harder. That
with the Security should cover your needs.
Hope this helps
On Sep 4, 7:00 pm, "Chris H
Do you have same problems for other links ? Check also your index.php
in webroot ..
All this seems a configuration problem to me.
On Sep 4, 8:31 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Hi again,
>
> I changed it to PagesController to SpagesController and nothing
> changed: my links a
Well, that is the reason why I told to set autoRender to false in
current controller but not in the requestAction controller, set the
layout explicitly in the requested controller and see what it gives, I
haven't tried it but let me know what you get.
Ketan
snow_raph wrote:
> > This will return
Hi again,
I changed it to PagesController to SpagesController and nothing
changed: my links are as ugly as before :(
I also tried to modify my .htaccesses but the result was really
disturbing so I resetted them to the officials ones ...
Thank for your help anyway !
On 4 sep, 20:23, francky06l
On 9/4/07, francky06l <[EMAIL PROTECTED]> wrote:
>
> Maybe just before the save do :
>
> $this->Foo->create();
>
Well, $this->Foo->create() will do exactly that: create a new record.
I think the object here is to update an existing record if it already
exists.
--
Chris Hartjes
Senior Developer
look in cake/config/paths.php, it has most of the general path
constants that one would need. I think WEBROOT_DIR is what you need,
however, look in that file for more info.
Ketan
Anna P wrote:
> OK so how to use it? When I try
> if(is_file("../img/upload/photo_file1_".$item['Item']
> ['id'].".j
Maybe just before the save do :
$this->Foo->create();
On Sep 4, 8:11 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On 9/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > Say I have an input file that takes in data that gets parsed into
> > $name and $text which I then pass to a
Pages is reserved, try with a new name and let know about the results.
On Sep 4, 8:11 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Hi, thanks for your answer :)
>
> Yes, mod_rewrite is installed on my server ...
>
> I'll use $html->link instead of my beginners technic ^^
>
> My controller
Hi, thanks for your answer :)
Yes, mod_rewrite is installed on my server ...
I'll use $html->link instead of my beginners technic ^^
My controller's named PagesController, I'll change for
SpagesController ( Static pages )
Thank you again, have somebody idea's for my url's issue ?
On 4 sep, 19
On 9/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> Say I have an input file that takes in data that gets parsed into
> $name and $text which I then pass to addFooToDb(). My uniqueness key
> here is $name, and say we're assuming that the file is sorted by a
> timestamp, and we want to o
I had a similar problem once, caused by many "blanks" and also some
trailing space after the ?> into the element.
Have you tried to simplify the element (for example just Hello) ?
On Sep 4, 7:09 pm, Richard <[EMAIL PROTECTED]> wrote:
> Hi, thanks for your reply. The confirmation page is a seperat
Strange, have you got mod-rewrite set up ?
By the way instead of :
Mouscron
you could use echo $html->link('Mouscron', '/pages/magasin/');
What is the name of your controller ? "Pages" is a "reserved" name for
static pages in cakePhp.
On Sep 4, 6:18 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
On Sep 4, 5:16 pm, MrTufty <[EMAIL PROTECTED]> wrote:
> I doubt it's a bug with Cake... if you have fields specifically set to
> be unique in the database, then nothing Cake can do should allow NON-
> unique fields. Seems very strange. I would imagine that the records
> that appear to be non-uni
> This will return the rendered view to your current controller that is
> been called. Hope this helps,
Thank you very much Ketan !
Now what if I want my requestAction contents to be rendered in its own
layout ? (you now understand why the subject of my post contains
"redirect"')
--~--~---
Solved. Upgrade last version
On Tuesday 04 September 2007 13:20, Alvaro wrote:
> I am working with two databases, when my controller wich use two
> tables form distinct databases crash and show me this error:
>
> Fatal error: Cannot redeclare class DboSource
>
> Alvaro
>
> Thanks
>
> P.D. search
aHi
I have a people file and an events file zI wan to show the one person and show
all events with add , delete view activity.
code=
array('className' => 'Event',
// 'conditions'=> 'Comment.moderated = 1',
//
Hi, thanks for your reply. The confirmation page is a seperate file
and the thank you message is updated within the start and end divs.
However renderElement does not work -- if I use PHPs native include
the data is added but causes additional problems.
On Sep 4, 9:37 am, francky06l <[EMAIL PROTE
I am working with two databases, when my controller wich use two
tables form distinct databases crash and show me this error:
Fatal error: Cannot redeclare class DboSource
Alvaro
Thanks
P.D. search web doesn't help me so I post it.
--~--~-~--~~~---~--~~
You rec
This is very helpful, but only solves half of my problem.
The problem is that my input data has duplicates. For instance:
---
function getFooId( $name )
{
$conditions = "
Hi there,
I'm new to cakePHP and trying to create a simple application, but I
have a problem with the html helper and also I think the Router
class ...
So I just created a controller with no model associated and 2 views
named "index.thtml" and "magasin.thtml".
These pages are accessible via "ht
> use
> if(user_has_no_rights())
> {
>header('HTTP/1.1 401 Unauthorized');// <- robots may need this
>
>// The following will return the rendered action of that controller
> to you.
>echo $this->requestAction('anothercontroller/action',
> array('return'));
>
>$this->autoRender = fa
On 9/4/07, J. Eckert <[EMAIL PROTECTED]> wrote:
>
> Hi there,
>
> There seems to be a security issue with the Model->save() function in
> Cake 1.2 if you are adding data through a form.
I don't know if you already checked it out, but there is a Security
component that I think might help alleviate
It's the same with Cake 1.1.17.
Added a ticket: https://trac.cakephp.org/ticket/3187
On 4 Sep., 12:23, "J. Eckert" <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> There seems to be a security issue with the Model->save() function in
> Cake 1.2 if you are adding data through a form.
>
> Example:
>
> A
Works like a charm! Thank you so much!
Luiz
On Sep 2, 8:01 pm, Grant Cox <[EMAIL PROTECTED]> wrote:
> And in case Sam's link isn't so obvious, he's talking about the
> Controller::cleanUpFields() function. If you use the Form helper's
> date options, just call $this->cleanUpFields() before your
Hi there,
There seems to be a security issue with the Model->save() function in
Cake 1.2 if you are adding data through a form.
Example:
A simple User-Model with id, username, password
If there is for example a registration form in which you enter your
username and password you can manipulate
> Routes.php is exactly for this reason. See in your app/config dir.
> Also, a more explanation could help, you haven't explained your
> problem in more details. Give a simple example then perhaps someone
> could help you better.
ok, I'm in an action of my controller, user has insufficient rights
On 9/4/07, Anna P <[EMAIL PROTECTED]> wrote:
>
> OK so how to use it? When I try
> if(is_file("../img/upload/photo_file1_".$item['Item']
> ['id'].".jpg")): (the path, which just gives me the right
> image)
> it doesn't work as well.
>
I think you will have to experiment with figuring out what
OK so how to use it? When I try
if(is_file("../img/upload/photo_file1_".$item['Item']
['id'].".jpg")): (the path, which just gives me the right
image)
it doesn't work as well.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goo
This is my first post to this group, so I'd like to say hello
first. :) This post seems long, but the question is pretty simple -
not sure about the answer.
My question revolves around models. I have 5 tables that represent
geographic information. I want to use this to do radius searches among
ot
One thing to note about history.go(-1); it that it will take you back
a page in your browser's cache with no trip to server. Creating a link
using either the session or referrer will re-send the page request to
the server, and will get you a "fresh" copy of the page (meaning that
if the data has c
use
if(user_has_no_rights())
{
header('HTTP/1.1 401 Unauthorized');// <- robots may need this
// The following will return the rendered action of that controller
to you.
echo $this->requestAction('anothercontroller/action',
array('return'));
$this->autoRender = false; // Needed to a
"problems with midphase hosting"... don't get me started! Ok, so they
weren't CakePHP related, it was just poor, amateurish support and
constant problems that sent me packing up all my websites and moving
to a dedicated server (NOT with Midphase, either). It appears to me
that they grew there bus
Signup component or app_controller.php
On Sep 4, 3:13 pm, webjay <[EMAIL PROTECTED]> wrote:
> Hello.
>
> I need to send signup mails from 2 controllers, so where would you
> recommend I put my sendSignupMail function?
>
> Regards,
> Jacob
--~--~-~--~~~---~--~~
Yo
To an extent, yes, this could be solved with base / mini controllers.
Of course then you have a whole other bunch of abstract controllers
which have to be protected from the web. Also, you very quickly end up
with very complex class hierarchies if you want to have, say some
actions from one base
I doubt it's a bug with Cake... if you have fields specifically set to
be unique in the database, then nothing Cake can do should allow NON-
unique fields. Seems very strange. I would imagine that the records
that appear to be non-unique actually are unique, but probably with
hidden characters or
Anna,
Do you also have the line:
echo $html->charset('UTF-8');
in your layout, as suggested above? The commands you say you have in
your layout don't get parsed by the browser, whereas the tag which is
inserted by $html->charset(); does. This could account for your
problems, if not.
Hope this
Routes.php is exactly for this reason. See in your app/config dir.
Also, a more explanation could help, you haven't explained your
problem in more details. Give a simple example then perhaps someone
could help you better.
Ketan
snow_raph wrote:
> Hello,
>
> I need to redirect to another URL on s
On 9/4/07, xephex <[EMAIL PROTECTED]> wrote:
>
> Okay, but how do you think about changing cake's architecture?
>
I'll leave the comments on your thoughts to PhpNut. What you are
describing is a major fundamental change to how CakePHP currently
works.
However, I will say this: I don't see how
There is a problem with this statement.
>>if(is_file($this->webroot."img/upload/photo_file1_".$item['Item']['id'].".jpg")):
Chris is right, Above statement gives you the path readable by browser
not the filesystem bcoz of '$this->webroot.'
Ketan
Anna P wrote:
> Hi. I have problem with web photo
Okay, but how do you think about changing cake's architecture?
--~--~-~--~~~---~--~~
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 thi
Hello,
I need to redirect to another URL on some conditions (auth failed),
along with a 401 http status (for seo). But http clients (according to
rfc) only redirect with 3xx status, so : 1) redirect('url') sends a
302, and 2) redirect('url',401) dont redirect browser.
The idea, then, would be to
On 9/4/07, R. Rajesh Jeba Anbiah <[EMAIL PROTECTED]> wrote:
>
>The problem is that you're trying to stamp every other as an idiot.
> Unless you have changed your attitude, you can't read my humble
> comments like this. (no offense of course; read it as straight
> comment)
Actually, I did no s
On Sep 4, 6:14 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On 9/4/07, R. Rajesh Jeba Anbiah <[EMAIL PROTECTED]> wrote:
>
> >Kudos for the time invested. My concern is that caching and
> > unnecessary creation of objects. (The objects have to be created even
> > if the page is already cach
Thanks... but what is a factory object??? Sorry for my ignorance =S...
On Sep 3, 7:32 pm, Geoff Ford <[EMAIL PROTECTED]> wrote:
> I would use a factory object to load a seperate model based on the
> user type.
>
> See this thread for a simliar
> problem.http://groups.google.com/group/cake-php/br
Hello.
I need to send signup mails from 2 controllers, so where would you
recommend I put my sendSignupMail function?
Regards,
Jacob
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to thi
On 9/4/07, Anna P <[EMAIL PROTECTED]> wrote:
>
> Hi. I have problem with web photo gallery for a store.
> Photos are uploaded by CMS. They are stored in webroot/img/upload and
> their name is like "photo_file1_{item_id}", "photo_file2_{item_id}",
> etc.
>
> The problem is when I try to display pho
1 - 100 of 122 matches
Mail list logo