php test.php --modules=Wes
or
php test.php -m Wes

but only what was defined in:

define('AG_CONSOLE_MODULE', 'Default');
define('AG_CONSOLE_ACTION', 'Index');

was executed.

That is the way it's supposed to work. Command line parameters don't affect module & action selection in any way. I'll change the example parameters to something less misguiding :)

I copied all about getopt without reading it and I first now realise that ConsoleController has changed since the first tutorial was writen or the example never worked at all :)

getopt is not called by ConsoleController so if one wants to use it, it must be called before dispatch and let it parse parameters for controller. I'll fix the example.

*** Output ***

When I ran the script at the end the following was output
<!-- This page took 0.0006 seconds to process. -->


This is the ExcecutionTimeFilter speaking. Remove it from filters.ini or make it shut up by setting param.comment = "Of".


-veikko
_______________________________________________
agavi-dev mailing list
[email protected]
http://labworkz.com/cgi-bin/mailman/listinfo/agavi-dev

Reply via email to