From 288697cda28712c6d02f36d2882024f1d6d97d7c Mon Sep 17 00:00:00 2001 From: ken restivo Date: Tue, 3 Nov 2015 12:24:29 -0800 Subject: Add documentation for argv/argc. --- doc/developers.bb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc') diff --git a/doc/developers.bb b/doc/developers.bb index e9dddc695..6f7752577 100644 --- a/doc/developers.bb +++ b/doc/developers.bb @@ -64,6 +64,8 @@ In the interests of consistency we adopt the following code styling. We may acce [li] Generally speaking, opening braces go on the same line as the thing which opens the brace. They are the last character on the line. Closing braces are on a line by themselves. [/li] +[li] Some functions take arguments in argc/argv style like main() in C or function args in bash or Perl. Urls are broken up within a module. e.g, given "http://example.com/module/arg1/arg2", then $this->argc will be 3 (integer) and $this->argv will contain: [0] => 'module', [1] => 'arg1', [2] => 'arg2'. There will always be one argument. If provided a naked domain URL, $this->argv[0] is set to "home".[/li] + [b]See Also[/b] [zrl=[baseurl]/help/sql_conventions]SQL Conventions[/zrl] -- cgit v1.2.3