[pmwiki-users] FmtPageList undefined

adam overton a at plus1plus1plus.org
Mon Jul 20 18:31:13 CDT 2009


hi again - i just re-read - what do you mean by:

> 	The generic "correct" approach is to either handle things
> 	in an action after everything has been loaded (preferred),

how do i do this?
i'm actually on my way to trying to set up a script accessed via a  
cron job, accessed via an ?action=cronAction
is this what you mean? is there a different way to call things with  
an action than with
	if ($action=="cronAction") { ... }
?

thanks!
adam


On 20 Jul 2009, at 3:50 AM, Patrick R. Michaud wrote:

> On Mon, Jul 20, 2009 at 12:16:28AM -0700, adam overton wrote:
>> Call to undefined function fmtpagelist()
>>
>> i'm guessing that scripts/pagelist.php is being defined after  
>> config.php has
>> been loaded. is that correct?
>
> Correct.
>
>> is there a way to be able to use the FmtPageList function within  
>> config or one
>> of my own recipes?
>
> In your recipe, do
>
>     include_once('scripts/pagelist.php');
>
> Note, however, that pagelist.php may itself depend on other things
> being loaded.  The generic "correct" approach is to either handle  
> things
> in an action after everything has been loaded (preferred), or else
> force a load of the entire standard configuration with:
>
>     include_once('scripts/stdconfig.php');
>
> Pm

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20090720/cd235fce/attachment.html 


More information about the pmwiki-users mailing list