What is the problem with having an 'id' field on that table? I have a
similar setup in a test application, and my join model has it's own id,
a model1_id and model2_id.
With the appropriate associations set up (Model1 hasMany JoinObj,
JoinObj belongsTo Model1,Model2, Model2 hasMany JoinObj),
set recursion in your models accordingly
I've fixed that in a new version I'm working on to allow only Models
needed in the auth process to be included in the session..
Actually the only issue is that Cake doesn't offcially have a unbindAll
method to unbind all associations from a model except
The first public beta of cheeseCake was released today. Though the
Photoblog is feature complete for use on live servers it has not yet
been tested extensively hence the Beta 1 tag.
Features
* Automatic thumbnail creation
* Reading and caching of EXIF info
* Tags and tag clouds
* Easy
It will be useful to have running demo of cheeseCake
Cheers
Konstantin
--~--~-~--~~~---~--~~
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
I've noticed. Message passed.
Debian doesn't seem to have a problem with the java licence anymore
(thanks to Sun).
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email
Thanks for your kind support.
Problem has been resolved.
it was something to do with the htaccess file.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to
Thanks for that tip, Grant!
Ryan
--~--~-~--~~~---~--~~
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
That makes sense. 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 [EMAIL
why is this spammer not banned yet?
On 7/17/06, carlito556 [EMAIL PROTECTED] wrote:
Found love today for free
at http://www.rosapink.net and go to the menu get a date
Tell your friends it's free !
--
Armando Sosa
www.nolimit-studio.com
Bingo, it's not a waste of memory if it is providing a useful function
(i.e. allowing your table to work with Cake, without hacking it).
Also, it seems to me that this exact scenario is why you need it. Cake
makes you add a primary key to a table when working with it as a model
because that is
nate wrote:
Only if the 'dependent' association key is set to true, i.e.:
class Post extends AppModel {
var $hasMany = array(
'Comment' = array('dependent' = true)
);
}
Nate: I asked almost this very same question about a week ago. What
about HABTM relationships, which
thanks nate,
i tried the die message and sure enough, it's being loaded and
instantiated.
function __construct(){
die('crapola');
}
and it is saved as
app/views/helpers/language.php
thanks,
--~--~-~--~~~---~--~~
You received this message because you
hi
Thanks for all your suggestions. Thanks nate for noting age. I didn't
realized it. I think it make sense to have primary key field
considering the CakePHP framework
Regards,
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
btw, my view gave me crapola
--~--~-~--~~~---~--~~
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
hi, cake can hightlight form validation errors like ruby on rails?
if it is possible, how to do this?
tks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to
Fernando ha scritto:
hi, cake can hightlight form validation errors like ruby on rails?
if it is possible, how to do this?
reading manual http://manual.cakephp.org/chapter/12
..or wiki :P
--~--~-~--~~~---~--~~
You received this message because you are
Hello,
Im newbie on cake.. i want to access the method requestAction on
AppController, but it's impossible with $this-requestAction( ... ) ...
So how i do to make this or it's impossible ?
Thx much,
Sebastien.
--~--~-~--~~~---~--~~
You received this message
AppController extends Controller which extends Object.
--~--~-~--~~~---~--~~
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,
i'm testing with $this-Controller-Object-requestAction() ... same
problem ...
--~--~-~--~~~---~--~~
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
I need to use at least 2 different layouts in my static pages
at cake/app/views/pages
How can I do this?
I dont't understand this thread:
http://groups.google.com/group/cake-php/browse_thread/thread/84314667706d38ca/e12788ee919633e8
Thanks
Are you new to Cake, or to object-oriented development in general?
When I say that AppController *extends* Controller, that means that
AppController inherits all of Controller's properties and methods, not
that the base Controller object is a property of AppController.
Likewise with Controller
Okay, any files you put in /app/views/layouts can be used as layouts in
your controller. So let's say you have default.thtml and new.thtml
(note the extension), and they're stored in the layouts/ folder. In
your controller, you can put:
$this-layout = 'new';
to switch which layout is used to
Hi saavedrajj,
copy the pages controller from cake/libs/controller to /app/controller
if you haven't already.
In the pages display method, use whatever logic you like to determine
if the layout should change, and set the layout variable. e.g.
// START EDIT. After the page variable has been
Cake doesn't support the same functionality that the Rails ActiveRecord
supports with the 'type' field.
I think I'm just going to treat all of my people classes as separate
objects, and tie them all to a UserAccount through a belongsTo/hasOne
relationship. That way, everyone can authenticate on
I tried doing a $this-redirect() in the view to the file, eg.
(/app/views/resources/files/foo) but it still came up with a missing
controller error. The following code allows me to do what I'm trying.
Hope someone finds it useful.
Note that the 'dl' type makes the browser create a Save As
Does putting the file in /app/webroot/files/filename.type and then accessing it via a url like http://example.com/app/webroot/files/filename.type not work?
You should also be able to do http://example.com/files/filename.type if mod_rewrite is working correctly.This would eliminate the need to
He is now.
--~--~-~--~~~---~--~~
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
Guys, thanks very much for your replies. I really value them.
However, what if my methods are part of the model instead of the controller?
e.g. If I had a 'Sale' model which contained a method 'addItem()' for
adding an item to a Sale, which had something alone the lines of the
folowing:
decrement should be in the StockItem model
and called with $this-Sale-StockItem-decrement();
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to
i was reading:
http://groups.google.com/group/cake-php/browse_thread/thread/5a4d967ba6c61b5a/b49aadf718b54165?q=beforefilterrnum=3#b49aadf718b54165
...and it sounds like a similar problem. does that mean that code is
still being run for some reason even after the check has been
performed?
based
30 matches
Mail list logo