Auth is set to required. I opened a separate browser, went to that page, put in admin/password, still says
adminObject does not exist however, if a user is required to be logged in to post an article, how does one allow anonymous users to post? Secondly, that page uses HTTP Auth requests, which doesn't allow one to log out of the site with most browsers. Is there a cookie/state login session module available, or is HTTP Auth the only way to do it? On Wed, 2003-03-19 at 12:14, pp wrote: > Chris Davies <[EMAIL PROTECTED]> wrote: > > > With the code as presented, I get: > > > > Object does not exist > > > > If I change the first line to: > > > > $person = mgd_get_person(1); > > > > I get: > > > > adminObject does not exist > > Are You logged in as executing this code? > > > > I'm not sure what the call to mgd_get_article() in the code given will > > do -- it should always return false since there is no article id > > specified there. I created an article through asgard and changed the > > line to: > > > > $article = mgd_get_article(1); > > > > For most midgard's objects You may call > $object = mgd_get_xxx(); > which creates objects with empty properties, which may be defined as You need. http://midgard-project.org/manual/en/function.get-article.php this page claims that the return is FALSE and doesn't list the parameter as void|int id or the parameter as [int id] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
