0
$sXML = new SimpleXMLElement('<deletepicture />');

        foreach($planspaceImages as $img)
        { 
            $xImg = $sXML->addChild('img');

            $xImg->addChild("id", $img["id"]);

            $xImg->addChild("album_id", $img["album_id"]);
            $xImg->addChild("personal_id", $img["personal_id"]);

            $xImg->addChild("name", $img["name"]);

            $xImg->addChild("description", $img["description"]);

        }
            //$this->picfilepath = sfConfig::get('app_deleteduser_rootdir');
             $sXML->asXML("pic.xml");

i want to this xml data store in dynamic filepath$this->picfilepath = sfConfig::get('app_deleteduser_rootdir')."\".$personId;
the above code generated pic.xml in my project web directory,but i want to dynamic filepath.

plz hel me.

anybody plz help me.

2
Contributors
2
Replies
6
Views
4 Years
Discussion Span
Last Post by Vijaysurya
0
$this->picfilepath = sfConfig::get($somepath);
$sXML->asXML($somefilename);

THis all depends on how your sfConfig class works.

0

Hai
Thanks for ur reply already i tried this way.
file not stored in filepath inside

plz help me.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.