On Apr 9, 2011, at 3:40 PM, Stifan Kristi wrote:
> actually my real intention is : 
> 
> i have the same function that repeated many times in 1 controller (repeated 
> to different tables), so that i would to make it simple just put it on 
> modules, what do you think about it?
> 
> if i created the new function in 1 controller and then the other function 
> access it, i don't like because it can be access by the browser url, is there 
> any way to prevent it? (i mean i created 1 function, and the other function 
> access it, and can't be accessed via browser url)

If it has an argument, a URL can't access it.

> 
> pardon, if i'm not wrong, i read that to put the function on the model is not 
> the best practice, what do you think about it?

No reason not to.

> 
> please correct me if i'm wrong, thank you so much
> 
> steve van christie
> 
> On Sun, Apr 10, 2011 at 1:14 AM, pbreit <[email protected]> wrote:
> The one project I've seen that is sort of designed how you are suggesting is 
> InstantPress:
> http://code.google.com/p/instant-press/
> 
> But I agree with Anthony, I always encourage keeping it simple. There's a 
> saying about premature optimization and it's not good.
> 


Reply via email to