Re: overwrite save function of model

2006-07-17 Thread Grant Cox
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),

Re: Problems with OthAuth - unintended recursion in model?

2006-07-17 Thread CraZyLeGs
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

cheeseCake Photoblog V1.0 Beta 1 released

2006-07-17 Thread Dr. Tarique Sani [EMAIL PROTECTED]
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

Re: cheeseCake Photoblog V1.0 Beta 1 released

2006-07-17 Thread [EMAIL PROTECTED]
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

Re: Bug: using multiple models in controller

2006-07-17 Thread invincible
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

Re: Post Variables Problem

2006-07-17 Thread D Smith
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

Re: Error installing CakePHP

2006-07-17 Thread ryanb006
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

Re: Is del() recursive?

2006-07-17 Thread ShepherdWeb
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

Re: Found love today for free

2006-07-17 Thread Armando Sosa
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

Re: overwrite save function of model

2006-07-17 Thread nate
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

Re: Is del() recursive?

2006-07-17 Thread Scott Sharkey
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

Re: creating helpers

2006-07-17 Thread joe
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

Re: overwrite save function of model

2006-07-17 Thread bingo
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

Re: creating helpers

2006-07-17 Thread joe
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

highlight validations erros

2006-07-17 Thread Fernando
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

Re: highlight validations erros

2006-07-17 Thread lorenzo
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

How i can access to method of Object class on AppController ?

2006-07-17 Thread reyman
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

Re: How i can access to method of Object class on AppController ?

2006-07-17 Thread nate
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,

Re: How i can access to method of Object class on AppController ?

2006-07-17 Thread reyman
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

PagesController switching layouts

2006-07-17 Thread saavedrajj
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

Re: How i can access to method of Object class on AppController ?

2006-07-17 Thread nate
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

Re: PagesController switching layouts

2006-07-17 Thread nate
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

Re: PagesController switching layouts

2006-07-17 Thread AD7six
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

Re: Multi-table or Single-table Inheritance

2006-07-17 Thread [EMAIL PROTECTED]
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

Re: Turn off Cake processing for a file via view

2006-07-17 Thread I. E. Smith-Heisters
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

Re: Turn off Cake processing for a file via view

2006-07-17 Thread John Zimmerman [gmail]
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

Re: Found love today for free

2006-07-17 Thread gwoo
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

Re: cakePHP and Train Wrecks

2006-07-17 Thread Sonic Baker
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:

Re: cakePHP and Train Wrecks

2006-07-17 Thread gwoo
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

Re: strange othAuth problem

2006-07-17 Thread yeastinflexion
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