[jifty-devel] model interacting just with actions?

Jesse Vincent jesse at bestpractical.com
Sun Oct 29 21:42:07 EST 2006




On Sun, Oct 29, 2006 at 09:38:23PM -0500, C.G. LEE wrote:
> I've used CGI with Mason and just guessed Model and Action should be stuck
> together. I wasn't doing access control.

Ok. The idea behind actions is that they're the API calls that web forms
can make to your model class. For the model "Book", jifty will
autocreate:

	CreateBook
	UpdateBook
	DeleteBook

actions. Wifty (in jifty svn) may be worth looking at to get a sense of
things.

-j

> Well, I'm a Jifty newbie. I think I need more time to know about the Jifty
> way.
> 
> Thanks Jesse.
> 
> 
> On 10/28/06, Jesse Vincent <jesse at bestpractical.com> wrote:
> >
> >
> >On Oct 27, 2006, at 12:07 AM, C.G. LEE wrote:
> >
> >> Hi, folks
> >>
> >> I make a model and want the model to be called only by ONE action.
> >> Not from any other actions or templates.
> >>
> >> Is there a short-cut?
> >
> >Can you describe what you're looking to do in a bit more detail? Are
> >you trying to do access control?
> >
> >>
> >> I don't want over*ding.
> >>
> >>

> _______________________________________________
> jifty-devel mailing list
> jifty-devel at lists.jifty.org
> http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel


-- 


More information about the jifty-devel mailing list