Re: controller name

2007-07-27 Thread citrus
I think your problem can be solved by editting inflections.php, which is located in app/config directory. To be more precisely, add niche - niches to your $irregularPlural array like this: $irregularPlural = array('niche' => 'niches'); It would work seamlessly then. --~--~-~--~~---

Re: controller name

2007-07-27 Thread RoE
Hello Andras, Try to declare $uses variable inside your controller somewhat like below. . . class NichesController extends AppController { var $name = 'Niches'; var $uses = array('Niche'); var $scaffold; } --~--~-~--~~~---~--~~ You receive

Re: Need: CakePHP Contact Form Need Please

2007-07-27 Thread Baz
Ok, Ok, Ok, I got you. But I'm just sayingI'm pretty good at reading a manual and pasting stuff together, but when you don't know something, it's kinda hard. And as I saidThought this was for 1.1 On that note, how do I know what version certain code is for? -- Baz L Day In The Life of B

Multiple field values in select box?

2007-07-27 Thread Beertigger
Is there any way to get values from multiple fields into a select box? After much searching, I've come to the conclusion I'm not going to find the answer without appealing to those far wiser than myself... Here's an old thread for reference, which discusses, w/o resolution, exactly what I'm lo

Re: Newbie Introduction Book ... reviews anyone?

2007-07-27 Thread Dr. Tarique Sani
On 7/27/07, Dave <[EMAIL PROTECTED]> wrote: > > > I'm working on a Newbie's Introduction to CakePHP book and would like > to invite anyone who would like to review it for errors or > considerations I may have overlooked. Let me know, and I'll send you a > PDF copy of the current edition. Has it b

controller name

2007-07-27 Thread Andras Kende
Hello, Quick question I have the following: niches_controller.php Calling it by www.domain/cake/niches errors out with complaining about missing model: Missing Model No class found for the Nich model. Fatal: Create the class below in file: app/models/nich.php Etc... But I have niche.php

Re: Newbie Introduction Book ... reviews anyone?

2007-07-27 Thread phirschybar
I'd like to take a look. Thanks. benhirsch AT gmail DOT com On Jul 27, 2:14 pm, Dave <[EMAIL PROTECTED]> wrote: > I'm working on a Newbie's Introduction to CakePHP book and would like > to invite anyone who would like to review it for errors or > considerations I may have overlooked. Let me know,

Re: Need: CakePHP Contact Form Need Please

2007-07-27 Thread Christopher E. Franklin, Sr.
If someone else can learn a language not native to them, (of course I am assuming here), I think the decent thing would be to say "Thank you" and head on over to http://www.google.com/language_tools?hl=en lol. I don't know what nome, cognome and oggetto mean but, since I am curious, I will look t

Re: Need: CakePHP Contact Form Need Please

2007-07-27 Thread cakeFreak
Baz, come on, you getting a bit EXTRA-lazy here. On 27 Lug, 21:23, Baz <[EMAIL PROTECTED]> wrote: > I saw this before, but since I'm on 1.1. It didn't work for me. Also there's > the language barrier. Language barrier??! Now I give you a couple of lessons of Italian. A) try to concentrate all

Re: Need: CakePHP Contact Form Need Please

2007-07-27 Thread Felix Geisendörfer
> > Now I give you a couple of lessons of Italian. Haha, I didn't know I was fluent in Italian - good to know : P. -- Felix -- My Blog: http://www.thinkingphp.org My Business: http://www.fg-webdesign.de cakeFreak wrote: > Baz, come on, you getting a bit EXTRA-lazy here. >

Re: Need: CakePHP Contact Form Need Please

2007-07-27 Thread kionae
I usually just use the nifty isset() php function, as in: if(isset($this->data['Contact']['email']) { //do some stuff relevant to your ultimate goal } On Jul 27, 2:23 pm, Baz <[EMAIL PROTECTED]> wrote: > I'm a bit unclear here. Since there's not ->read() or ->findAll(), how do we > kno

Re: same directory as controller name

2007-07-27 Thread [EMAIL PROTECTED]
I have a solution. When a request is made apache checks if the directory exists. If it does, it checks if index.php, index.htm or index.html exists. If they don't, the request is forwarded to cake. And all this magic with mod_rewrite voodoo: RewriteEngine on RewriteCond %{REQUEST_FILENAME

Re: need help with linking models

2007-07-27 Thread rtanz
well i tried doing that earlier on and then had to take off everything coz it wasnt well structured. i would like to at least get the associations sorted before baking. so the problem remaining is that of creating the task list >I would like the task listing to be displayed >when a user is viewed

Re: adding "duplicate" to scaffolding

2007-07-27 Thread bingomanatee
I wasn't saying that it is a feature that each and every application should and must have -- just a useful modification to know about. When I've fear-proofed my solution I'll pop it into a bakery article. On Jul 27, 1:23 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On 7/27/07, bingomanatee <[

Re: Newbie Introduction Book ... reviews anyone?

2007-07-27 Thread Baz
What version would this be for? Since I'm a newbie, I'd be a great test. On 7/27/07, Dave <[EMAIL PROTECTED]> wrote: > > > I'm working on a Newbie's Introduction to CakePHP book and would like > to invite anyone who would like to review it for errors or > considerations I may have overlooked. Let

Re: adding "duplicate" to scaffolding

2007-07-27 Thread Chris Hartjes
On 7/27/07, bingomanatee <[EMAIL PROTECTED]> wrote: > > True but the convenience to the end users are also a useful metric of > an application's efficiency. especially when (as in my case) they are > also a developer :D Learning to say "no" to a request is the toughest thing a developer has to le

Re: adding "duplicate" to scaffolding

2007-07-27 Thread bingomanatee
True but the convenience to the end users are also a useful metric of an application's efficiency. especially when (as in my case) they are also a developer :D On Jul 27, 12:39 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On 7/27/07, bingomanatee <[EMAIL PROTECTED]> wrote: > > > as to the "bo

Re: adding "duplicate" to scaffolding

2007-07-27 Thread bingomanatee
I might work that through -- actually I worked through the index template and added a "Copy" link. http://www.wonderlandlabs.com/modules/wiwimod/index.php?page=CakeDupe as to the "borderlineosity" -- its a pretty common way to moprh new records: pick a row that is like the new one you want, dupl

PAKHostOnline.com - Web Hosting | Pakistan | http://www.pakhostonline.com/

2007-07-27 Thread koom20201
PAKHostOnline.com offered Pakistan No.1 Web Hosting, DOMAIN Registration / Transfer, 99% UP-Time, 24/7 Technical Support at http://www.pakhostonline.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" gr

Turn off writing to debug.log

2007-07-27 Thread starkey
Anyone know how to turn off writing to the debug.log? I've set define('DEBUG', 0); and just about everything else I can think of off. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To po

Re: adding "duplicate" to scaffolding

2007-07-27 Thread Chris Hartjes
On 7/27/07, bingomanatee <[EMAIL PROTECTED]> wrote: > as to the "borderlineosity" -- its a pretty common way to moprh new > records: pick a row that is like the new one you want, duplicate it > and tweak it. What you're talking about is the lazy way of creating new records 1) duplicate an existi

Re: Need: CakePHP Contact Form Need Please

2007-07-27 Thread Chris Hartjes
On 7/27/07, Baz <[EMAIL PROTECTED]> wrote: > > For a Model that has no table: does populating the $validate array > automatically populate $this->data in the controller? Or is that only done > when the form returns? $this->data is populated when the form is returned. - Chris Hartjes Senior Devel

Re: Need: CakePHP Contact Form Need Please

2007-07-27 Thread Baz
I saw this before, but since I'm on 1.1. It didn't work for me. Also there's the language barrier. I have a general question though: For a Model that has no table: does populating the $validate array automatically populate $this->data in the controller? Or is that only done when the form returns?

Re: adding "duplicate" to scaffolding

2007-07-27 Thread Chris Hartjes
On 7/27/07, bingomanatee <[EMAIL PROTECTED]> wrote: > > I want to add "duplicate" to the scaffolding of my site; while I can > of course envision a wholly seperate action for duplicate, I have to > think that someone with more familiarity with Cake could help me > "Tweak" the existing views to rep

Re: Need: CakePHP Contact Form Need Please

2007-07-27 Thread cakeFreak
This is the view; VIEW: views/contacts/index.ctp Contacts: create('Contact', array('url'=>'/contacts'));?> input('nom

Re: adding "duplicate" to scaffolding

2007-07-27 Thread bingomanatee
Thats not a very open source-y answer. I was thinking it would be a generally usefu feature for the scaffolding paradigm. On Jul 27, 10:27 am, "Pablo Viojo" <[EMAIL PROTECTED]> wrote: > If not an scaffolding functionality, it's time to start to write code...I > think no one would like to help wit

Re: Need: CakePHP Contact Form Need Please

2007-07-27 Thread cakeFreak
Here we go with a contact form for last 1.2.0.5427alpha: CONTROLLER: contacts_controller.php set('title_for_layout', 'Contatti');

Re: Need: CakePHP Contact Form Need Please

2007-07-27 Thread Chris Hartjes
On 7/27/07, Baz <[EMAIL PROTECTED]> wrote: > Now was that really necessary? When you don't explain WHY you need something, that's a very typical result around here. > > Should I just scrap 1.1? Is 1.2 suitable for a production site? In my opinion, 1.2 is suitable for a production site but like

Re: Need: CakePHP Contact Form Need Please

2007-07-27 Thread Baz
Now was that really necessary? Don't get me wrong here, I'm not trying to be lazy as you seem to be implying. But isn't the Bakery supposed to be a code repository? All I meant was that a contact form seems like something that someone would have already done. Isn't that the point of Cake? To stop

Newbie Introduction Book ... reviews anyone?

2007-07-27 Thread Dave
I'm working on a Newbie's Introduction to CakePHP book and would like to invite anyone who would like to review it for errors or considerations I may have overlooked. Let me know, and I'll send you a PDF copy of the current edition. --~--~-~--~~~---~--~~ You recei

Re: Mambo to use CakePHP for V5

2007-07-27 Thread Sonic Baker
I've been a Drupal user for about 6 Months now. I picked Drupal because it was mentioned a few times that it was one of the most flexible. I had no intention of switching. However, the Mambo foundation's decision to move to CakePHP will more than likely make myself (and possible many other bakers l

Re: Are Model classes supposed to be singletons?

2007-07-27 Thread bingomanatee
That is useful to know -- it is not a complete answer to the larger question: if you create a new model() and save it in the ClassRepository, use it in one context, then use it in another (or with nested methods use it back and forth between two different contexts) are there any predictable/unwant

Re: adding "duplicate" to scaffolding

2007-07-27 Thread Pablo Viojo
If not an scaffolding functionality, it's time to start to write code...I think no one would like to help wit h this. -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net On 7/27/07, bingomanatee <[EMAIL PROTECTED]> wrote: > > > I want to add "duplicate" to the scaffolding of my site; while I can

Re: Need: CakePHP Contact Form Need Please

2007-07-27 Thread Pablo Viojo
I'm really having a solution for your problems here. You can contact me for conditions ($$$) Smiles... -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net On 7/27/07, Chris Hartjes <[EMAIL PROTECTED]> wrote: > > > On 7/27/07, codecowboy <[EMAIL PROTECTED]> wrote: > > > > Can you please elabor

Re: Scaffold not working for belongsTo join with underscore in name

2007-07-27 Thread bingomanatee
I found the error myself -- a bad "name" value in the ItemType model class. sorry... --~--~-~--~~~---~--~~ 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 T

adding "duplicate" to scaffolding

2007-07-27 Thread bingomanatee
I want to add "duplicate" to the scaffolding of my site; while I can of course envision a wholly seperate action for duplicate, I have to think that someone with more familiarity with Cake could help me "Tweak" the existing views to repurpose them for inserting a duplicate record with the same val

paginator helper: how to use it without a model?

2007-07-27 Thread cakeFreak
I was just wondering whether it is possible to use the paginator helper without a model. In particular you can find yourself with a controller getting data in form of arrays from a webservice (youtube, flickr etc.). Should I build a behavihour and a model for the controller that retrieves the we

Re: IRC log mirroring to GG?

2007-07-27 Thread R. Rajesh Jeba Anbiah
On Jul 24, 7:25 pm, "Christian \"Jippi\" Winther" <[EMAIL PROTECTED]> wrote: > Why should the IRC logs be spammed onto GG ? I don't see the point in that > :) I'm sorry for the late follow-up. I'm not suggesting to replace your version. But, since GG is already free, it is better to use it as a

Re: Apply behavior only for certain model methods?

2007-07-27 Thread R. Rajesh Jeba Anbiah
Many thanks to Andy and Tarique for the helpful follow-up. I'll check your suggestions sometimes later. Thanks again. -- Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/ --~--~-~--~~~---~--~~ You received this message because you are su

Re: Using Cake with Zend Session or Cake without any Sessions?

2007-07-27 Thread Chris Hartjes
On 7/27/07, Freight <[EMAIL PROTECTED]> wrote: > > Can I use Cake without any Session, even without Zend-Session? > Did you read the section in the manual about the Session Component? http://manual.cakephp.org/chapter/session I suggest you try this experiment: 1) go into config/core.php and co

Re: Cakephp Installation

2007-07-27 Thread Dr. Tarique Sani
On 7/27/07, Freight <[EMAIL PROTECTED]> wrote: > > > Where is the problem exactly? Between the ears. T -- = Cheesecake-Photoblog: http://cheesecake-photoblog.org PHP for E-Biz: http://sanisoft.com =

Re: Fetching data from model not binded

2007-07-27 Thread daphonz
Depending on your model recursion level, you should get Project information associated with each Project item returned from a Category Find request. You can use pr($this->Category->find("Category.id=2")); to see the array of data returned by that function. If you're not seeing any Project inform

Re: Using Cake with Zend Session or Cake without any Sessions?

2007-07-27 Thread Freight
Can I use Cake without any Session, even without Zend-Session? On 26 Jul., 22:10, gwoo <[EMAIL PROTECTED]> wrote: > Add Zend to your vendors directory. Write your own SessionComponent. > use vendor('Zend/Session', 'Zend/Auth'); or whatever the path to the > libs are. Create the methods you need l

Re: Cakephp Installation

2007-07-27 Thread Freight
Where is the problem exactly? On 27 Jul., 15:07, saritha <[EMAIL PROTECTED]> wrote: > Hi all, > > Iam unable to configure cakephp.I get confused.I have gone thru the > manual also.pl help me in this manner.pl give your suggestions to > configure cakephp to develope the application.And the steps n

Re: need help with linking models

2007-07-27 Thread Chris Hartjes
On 7/27/07, rtanz <[EMAIL PROTECTED]> wrote: > im not sure if this is the correct way to do things however and given > that this is the first time i am using cake i would like to make sure > that everything is set up well > before i bake and continue modifying the system. > No, no, NO, NO! J

Re: Need: CakePHP Contact Form Need Please

2007-07-27 Thread Chris Hartjes
On 7/27/07, codecowboy <[EMAIL PROTECTED]> wrote: > > Can you please elaborate. You did not ask a question. Oh no, I think he was quite clear. He wants someone else to do his work for him and give him all the code needed for a contact form within a CakePHP application. -- Chris Hartjes Senior

Re: Need: CakePHP Contact Form Need Please

2007-07-27 Thread codecowboy
Can you please elaborate. You did not ask a question. On Jul 27, 8:39 am, Baz L <[EMAIL PROTECTED]> wrote: > I'm really having problems here. > > I'm guessing someone has already developed something like this. > > I looked at this in the > bakery:http://bakery.cakephp.org/articles/view/sending-

Re: need help with linking models

2007-07-27 Thread rtanz
ok some more progress in getting this right, i uploaded my current db table design at www.jpgalea.com/design.jpg and also my erm diagram at www.jpgalea.com/erm.jpg here are my model associations at the moment: Listing var $belongsTo = array('Module','Task'); Membership var $belon

Re: Announcing Selling Made Simple - Open Source e-Commerce

2007-07-27 Thread savagekabbage
Basically what happens is you have a hierarchial content system. Unlimited subcategories, and products under these subcategories. When you create/edit a product you will specify a price, name, and description. (A name and description for each language if you have more than one turned on). In yo

Re: Announcing Selling Made Simple - Open Source e-Commerce

2007-07-27 Thread NOSLOW
I've developed a website that uses a highly modified version of CubeCart shopping cart software, while using Cake to develop a major loan underwriting system for another job. Let me tell you that I'm very excited to hear of this project as I'd love to be able to combine the goodness of Cake into

Scaffold not working for belongsTo join with underscore in name

2007-07-27 Thread bingomanatee
I have two tables, "Items" and "Item Types". The Scaffolding for the "edit" view is not displaying item type options. I have traced the error into the fieldTypes() method: the key for the option cluster is not matching the key output by the findAll method. >>> It seems to expect the data to

Re: Cakephp Installation

2007-07-27 Thread Femi Taiwo
You could start from this the cakephp.org site. Have a look at this http://manual.cakephp.org/appendix/blog_tutorial http://manual.cakephp.org/appendix/blog_tutorial saritha wrote: > Hi all, > > Iam unable to configure cakephp.I get confused.I have gone thru the > manual also.pl help me in thi

Cakephp Installation

2007-07-27 Thread saritha
Hi all, Iam unable to configure cakephp.I get confused.I have gone thru the manual also.pl help me in this manner.pl give your suggestions to configure cakephp to develope the application.And the steps needed to do it. Thanks, Saritha. --~--~-~--~~~---~--~~ You

Re: Announcing Selling Made Simple - Open Source e-Commerce

2007-07-27 Thread Dr. Tarique Sani
On 7/27/07, savagekabbage <[EMAIL PROTECTED]> wrote: > > > > The reason I wanted to go with database storage instead of flat file > is because of the user who may want to have 20 different product > templates for a large site. This just seemed easier to handle if the > templates were stored in the

Re: Announcing Selling Made Simple - Open Source e-Commerce

2007-07-27 Thread savagekabbage
Hey guys, thanks for the feedback! I'm still not 100% sure i"m going to go database stored templates. Consider this: Right now there are three main 'content types': - Static Pages - Category Views - Product Views This means there will be a minimum of 4 templates if you include one for the ou

Need: CakePHP Contact Form Need Please

2007-07-27 Thread Baz L
I'm really having problems here. I'm guessing someone has already developed something like this. I looked at this in the bakery: http://bakery.cakephp.org/articles/view/sending-email-with-phpmailer But it seems a bit incomplete. I started with Cake about a month ago. Anyway, anyone who can off

Re: Cake + Drupal

2007-07-27 Thread Joshua Benner
>From within Drake, you can call any drupal api function. I believe you may even be able to use "global $USER;" to get user information (I have not tried this -- we use a small modification to Drake that stores pertinent user information in the session before activating the Cake dispatcher).

Re: model.php can't save data due to beforeSave

2007-07-27 Thread matlin
Maybe your behavior test doesn't return at all? I made that mistake once. Void is not true. On 27 Juli, 06:10, Grant Cox <[EMAIL PROTECTED]> wrote: > It runs the beforeSave() function, which your model can implement if > you want to check what is about to be saved, and either modify the > data be

Re: Creating views

2007-07-27 Thread matlin
I'm not a CakePHP superuser but I try to stay clear of using PagesController. What happens if you create the views manually? On a sidenote, when I have more than one Model that use Categories I altered my Categories model like this: CREATE TABLE `categories` ( `id` int(10) unsigned NOT NULL au

Re: need help with linking models

2007-07-27 Thread rtanz
that makes sense however it does not really solve my problem, cause i still need to display other task information such days_allowed, task_order, task_complete, created, modified. These are still left out with the model you provided. They are related to a particular user within a particular module

Re: Announcing Selling Made Simple - Open Source e-Commerce

2007-07-27 Thread Jon Bennett
> > > If you really want web based editing - take the approach which some > > > popular > > > CMSs take - read and write to files... > > > > is it really so bad? why not save to the database, then use cake built > > in cache to speed things up? > > > > I ask as I have a project that requires simi

Re: Auth component + Cake 1.2

2007-07-27 Thread Gorka
After digging quite a bit in the AuthComponent source, I think I've found the problem. There are still some things I don't understand, so please feel free to correct me where I might be wrong. For example, identify() gets called twice in a login, but I can't figure where does the second call come

Re: Announcing Selling Made Simple - Open Source e-Commerce

2007-07-27 Thread [EMAIL PROTECTED]
I would tend to agree with AD and Tarique. Storing template in a database which would then be cached as files, does seem crazy. However, I would also point out that allowing public editing of views (stored in a database, or a file system) seems to be asking for trouble. I would put some pretty he

Re: Announcing Selling Made Simple - Open Source e-Commerce

2007-07-27 Thread AD7six
On Jul 27, 12:10 pm, "Jon Bennett" <[EMAIL PROTECTED]> wrote: > > > SMS's main audience will not necessarily be CakePHP developers as all > > > of the templates will be database stored. > > > I don't get the connection between the two - if you are storing the > > templates in database just so t

Re: Announcing Selling Made Simple - Open Source e-Commerce

2007-07-27 Thread Dr. Tarique Sani
On 7/27/07, Jon Bennett <[EMAIL PROTECTED]> wrote: > > > is it really so bad? why not save to the database, then use cake built > in cache to speed things up? Why do you need to use a database to you cache? Besides I am not saying storing templates in database will slow down things - just make

Re: Auth component + Cake 1.2

2007-07-27 Thread Gorka
I thought AuthComponent handled user login and logout on its own, validating username/password pairs and thus I saw no reason to use a validLogin function on the model as you did. But: AuthComponent won't log me in with an invalid password for a given username, but what is freaking me out is that

Re: Announcing Selling Made Simple - Open Source e-Commerce

2007-07-27 Thread Jon Bennett
> > SMS's main audience will not necessarily be CakePHP developers as all > > of the templates will be database stored. > > I don't get the connection between the two - if you are storing the > templates in database just so that they can be easily editable by users I > would say please think agai

Re: Cake + Drupal

2007-07-27 Thread drayen
I've been reading up about drake, looks good. But im wondering if there is a way to get login information from drupal in a secure way, you mentioned on March 8, 2007 2:30 pm that you might be adding "new Drake callables so you can get information such as: current user log in, etc.". Has this happ

Re: Are Model classes supposed to be singletons?

2007-07-27 Thread grigri
I'm not sure if it was me doing something wrong, but I found an annoying side-effect of this. If you want to dynamically bind associations, binding occurs on the entire model - which is shared. So if you have: class Company extends AppModel { var $hasOne = array( 'Logo' => array('className'

Re: Apply behavior only for certain model methods?

2007-07-27 Thread Dr. Tarique Sani
On 7/27/07, AD7six <[EMAIL PROTECTED]> wrote: > > > Damn. I misunderstood what you meant slightly. But I still don't like > copying cake's logic into the app to achieve it ;). Ah! I misunderstood you as well may be future code will have a better way T -- =

Re: Apply behavior only for certain model methods?

2007-07-27 Thread Dr. Tarique Sani
On 7/27/07, AD7six <[EMAIL PROTECTED]> wrote: > On Jul 27, 9:11 am, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote: > > On 7/27/07, AD7six <[EMAIL PROTECTED]> wrote: > > > > > That's a lot of code ;), do you have an example of when you would want > > > to attach a 'new' behavior to a model as oppose

Re: Apply behavior only for certain model methods?

2007-07-27 Thread AD7six
On Jul 27, 9:11 am, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote: > On 7/27/07, AD7six <[EMAIL PROTECTED]> wrote: > > > That's a lot of code ;), do you have an example of when you would want > > to attach a 'new' behavior to a model as opposed to turn a behavior > > that the model has on and off

Re: Apply behavior only for certain model methods?

2007-07-27 Thread AD7six
On Jul 27, 9:11 am, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote: > On 7/27/07, AD7six <[EMAIL PROTECTED]> wrote: > > > That's a lot of code ;), do you have an example of when you would want > > to attach a 'new' behavior to a model as opposed to turn a behavior > > that the model has on and off

Re: Apply behavior only for certain model methods?

2007-07-27 Thread Dr. Tarique Sani
On 7/27/07, AD7six <[EMAIL PROTECTED]> wrote: > That's a lot of code ;), do you have an example of when you would want > to attach a 'new' behavior to a model as opposed to turn a behavior > that the model has on and off? Yes - conditional post processing of uploaded image files depending on met

Re: Apply behavior only for certain model methods?

2007-07-27 Thread AD7six
On Jul 27, 8:54 am, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote: > On 7/27/07, R. Rajesh Jeba Anbiah <[EMAIL PROTECTED]> wrote: > > > > > Say, if Model has two methods, Model::add() and Model::save() and a > > "foo" behavior is added to the "Model". Currently the foo behavior is > > getting tri