The best way to call these controller functions is by using API calls found 
here:

http://chicagoboss.org/doc/api-controller.html

API calls:
{redirect, Location}

or 

{action_other, OtherLocation}

or

{render, OtherLocation}

—Kai

> On Dec 8, 2015, at 11:13, can2nac <[email protected]> wrote:
> 
> Hi,
> 
> let's say i have 
> -module(sns_main_controller, [Req]) which processes web requests. It also has 
> some additional functions which i would like to call.
> 
> 
> i can call sns_main_controller:module_info() and it returns pretty much 
> everything, but all non /0 functions have +1 extra argument. For example, 
> {checkCashe,4} instead of {checkCashe,3} as in description.
> 
> I tried to call function with no luck:
> (sns@can2nac-laptop)12> sns_main_controller:chec   
> chechCache/4  checkCashe/4  
> (sns@can2nac-laptop)12> sns_main_controller:checkCashe(a,b,c,d).
> ** exception error: no function clause matching 
> sns_main_controller:checkCashe(a,b,c,d) 
> (/home/can2nac/projects/sns/src/controller/sns_main_controller.erl, line 6)
> (sns@can2nac-laptop)13> sns_main_controller:checkCashe(b,c,d).  
> ** exception error: undefined function sns_main_controller:checkCashe/3
> 
>  How to call function from controller and what is this extra argument?
> 
> best,
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "ChicagoBoss" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at http://groups.google.com/group/chicagoboss 
> <http://groups.google.com/group/chicagoboss>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/chicagoboss/5a426f69-0f2c-4741-8eef-5e3f6b01bb79%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/chicagoboss/5a426f69-0f2c-4741-8eef-5e3f6b01bb79%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"ChicagoBoss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at http://groups.google.com/group/chicagoboss.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/chicagoboss/BE13EB5B-EE89-4DC1-A024-5309EA2C5036%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to