<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for Steve Sonius</title>
	<atom:link href="http://blog.baddog.net.au/sonius/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.baddog.net.au/sonius</link>
	<description>Symfony Web Developer :: DJ :: Photographer ::  Sydney Australia</description>
	<lastBuildDate>Tue, 13 Dec 2011 06:03:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>Comment on using url_for in the action in symfony 1.0 by sonius</title>
		<link>http://blog.baddog.net.au/sonius/steve-sonius/using-url_for-in-the-action-in-symfony-1-0/comment-page-1/#comment-3756</link>
		<dc:creator>sonius</dc:creator>
		<pubDate>Tue, 13 Dec 2011 06:03:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.baddog.net.au/sonius/?p=867#comment-3756</guid>
		<description>this is how its done in Symfony 1.4
$this-&gt;context-&gt;getConfiguration()-&gt;loadHelpers(&#039;Url&#039;);</description>
		<content:encoded><![CDATA[<p>this is how its done in Symfony 1.4<br />
$this->context->getConfiguration()->loadHelpers(&#8216;Url&#8217;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to export data as an XLS or CSV file from the admin generator in Symfony 1.4 by Adrian</title>
		<link>http://blog.baddog.net.au/sonius/steve-sonius/how-to-export-data-as-an-xls-or-csv-file-from-the-admin-generator-in-symfony-1-4/comment-page-1/#comment-3677</link>
		<dc:creator>Adrian</dc:creator>
		<pubDate>Wed, 07 Dec 2011 14:47:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.baddog.net.au/sonius/?p=189#comment-3677</guid>
		<description>My export_csv() function ended like this, I reset the csv value to false so that the user can apply a new filter and see the results in the screen as expected:
  function export_csv(){    
    document.getElementById(&#039;csv&#039;).value = true;
    document.forms[0].submit();
    document.getElementById(&#039;csv&#039;).value = false;
  }</description>
		<content:encoded><![CDATA[<p>My export_csv() function ended like this, I reset the csv value to false so that the user can apply a new filter and see the results in the screen as expected:<br />
  function export_csv(){<br />
    document.getElementById(&#8216;csv&#8217;).value = true;<br />
    document.forms[0].submit();<br />
    document.getElementById(&#8216;csv&#8217;).value = false;<br />
  }</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to export data as an XLS or CSV file from the admin generator in Symfony 1.4 by Adrian</title>
		<link>http://blog.baddog.net.au/sonius/steve-sonius/how-to-export-data-as-an-xls-or-csv-file-from-the-admin-generator-in-symfony-1-4/comment-page-1/#comment-3675</link>
		<dc:creator>Adrian</dc:creator>
		<pubDate>Wed, 07 Dec 2011 13:52:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.baddog.net.au/sonius/?p=189#comment-3675</guid>
		<description>Thanks to all of you! I&#039;ve successfully implemented this solution to export users from the sfGuard plugin. pagaille&#039;s tip was very usefull.</description>
		<content:encoded><![CDATA[<p>Thanks to all of you! I&#8217;ve successfully implemented this solution to export users from the sfGuard plugin. pagaille&#8217;s tip was very usefull.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to export data as an XLS or CSV file from the admin generator in Symfony 1.4 by pagaille</title>
		<link>http://blog.baddog.net.au/sonius/steve-sonius/how-to-export-data-as-an-xls-or-csv-file-from-the-admin-generator-in-symfony-1-4/comment-page-1/#comment-2710</link>
		<dc:creator>pagaille</dc:creator>
		<pubDate>Sat, 01 Oct 2011 03:11:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.baddog.net.au/sonius/?p=189#comment-2710</guid>
		<description>Another way to export all pages is to override getPagerMaxPerPage in the module&#039;s GeneratorConfiguration class:

public function getPagerMaxPerPage() {
    if (sfContext::getInstance()-&gt;getRequest()-&gt;getParameter(&#039;csv&#039;)) {
      return 1000;
    }
    else {
      return parent::getPagerMaxPerPage();
    }
  }</description>
		<content:encoded><![CDATA[<p>Another way to export all pages is to override getPagerMaxPerPage in the module&#8217;s GeneratorConfiguration class:</p>
<p>public function getPagerMaxPerPage() {<br />
    if (sfContext::getInstance()-&gt;getRequest()-&gt;getParameter(&#8216;csv&#8217;)) {<br />
      return 1000;<br />
    }<br />
    else {<br />
      return parent::getPagerMaxPerPage();<br />
    }<br />
  }</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Integrating mediawiki with a symfony project symfony 1.3 by sonius</title>
		<link>http://blog.baddog.net.au/sonius/steve-sonius/integrating-mediawiki-with-a-symfony-project-symfony-1-3/comment-page-1/#comment-2652</link>
		<dc:creator>sonius</dc:creator>
		<pubDate>Mon, 26 Sep 2011 23:19:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.baddog.net.au/sonius/?p=694#comment-2652</guid>
		<description>6echo
Im sure to access your wiki you will need to edit your .htaccess file. Symfony thinks you want to goto module/action -  wiki/index.
Im not sure if this wil help but try. adding this to your .htaccess. below this comment.
# no, so we redirect to our front web controller
    RewriteRule ^wiki/(.*)$ /wiki/index.php [QSA,L]

(may need tweaking).. good luck</description>
		<content:encoded><![CDATA[<p>6echo<br />
Im sure to access your wiki you will need to edit your .htaccess file. Symfony thinks you want to goto module/action &#8211;  wiki/index.<br />
Im not sure if this wil help but try. adding this to your .htaccess. below this comment.<br />
# no, so we redirect to our front web controller<br />
    RewriteRule ^wiki/(.*)$ /wiki/index.php [QSA,L]</p>
<p>(may need tweaking).. good luck</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to export data as an XLS or CSV file from the admin generator in Symfony 1.4 by sonius</title>
		<link>http://blog.baddog.net.au/sonius/steve-sonius/how-to-export-data-as-an-xls-or-csv-file-from-the-admin-generator-in-symfony-1-4/comment-page-1/#comment-2650</link>
		<dc:creator>sonius</dc:creator>
		<pubDate>Mon, 26 Sep 2011 23:05:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.baddog.net.au/sonius/?p=189#comment-2650</guid>
		<description>to export all the results instead of just the first page you will have to by pass the pager().
Look in the cache and check out the action logic for the list action. Copy the whole list action from the cache to the admin module and add an &#039;if&#039; statement if you have to check for a 
eg: $request-&gt;getParameter(&#039;csv&#039;)

The cache will have all the answers for you.</description>
		<content:encoded><![CDATA[<p>to export all the results instead of just the first page you will have to by pass the pager().<br />
Look in the cache and check out the action logic for the list action. Copy the whole list action from the cache to the admin module and add an &#8216;if&#8217; statement if you have to check for a<br />
eg: $request->getParameter(&#8216;csv&#8217;)</p>
<p>The cache will have all the answers for you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Integrating mediawiki with a symfony project symfony 1.3 by 6echo</title>
		<link>http://blog.baddog.net.au/sonius/steve-sonius/integrating-mediawiki-with-a-symfony-project-symfony-1-3/comment-page-1/#comment-2639</link>
		<dc:creator>6echo</dc:creator>
		<pubDate>Mon, 26 Sep 2011 09:45:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.baddog.net.au/sonius/?p=694#comment-2639</guid>
		<description>Hi again Steave,

Thank you for your feedback.

Here is what I did in details:
- Downloaded http://download.wikimedia.org/mediawiki/1.17/mediawiki-1.17.0.tar.gz
- Extracted mediawiki-1.17.0.tar.gz to a folder named wiki
- Uploaded this folder called wiki in symfony public folder named web (renamed to www since hosted by OVH)
- Went to http://mydomain.ext/wiki, but got a 404 error
- Created a new template named wikiSuccess.php in module called content with the following code: 
However all of this as no effect.

Questions:
- To make this work, do I have to create a new module called wiki ? If no what config. do I have to do to make http://mydomain.ext/wiki point to web/wiki directory ? If yes what additionnal config do I have to do in this module to make it point to http://mydomain.ext/wiki ?
- I can&#039;t find a LocalSettings.php file but only a LocalSettingsGenerator.php file, what should I do ?

Again many thanks for your help.
Best regards,
6echo</description>
		<content:encoded><![CDATA[<p>Hi again Steave,</p>
<p>Thank you for your feedback.</p>
<p>Here is what I did in details:<br />
- Downloaded <a href="http://download.wikimedia.org/mediawiki/1.17/mediawiki-1.17.0.tar.gz" rel="nofollow">http://download.wikimedia.org/mediawiki/1.17/mediawiki-1.17.0.tar.gz</a><br />
- Extracted mediawiki-1.17.0.tar.gz to a folder named wiki<br />
- Uploaded this folder called wiki in symfony public folder named web (renamed to www since hosted by OVH)<br />
- Went to <a href="http://mydomain.ext/wiki" rel="nofollow">http://mydomain.ext/wiki</a>, but got a 404 error<br />
- Created a new template named wikiSuccess.php in module called content with the following code:<br />
However all of this as no effect.</p>
<p>Questions:<br />
- To make this work, do I have to create a new module called wiki ? If no what config. do I have to do to make <a href="http://mydomain.ext/wiki" rel="nofollow">http://mydomain.ext/wiki</a> point to web/wiki directory ? If yes what additionnal config do I have to do in this module to make it point to <a href="http://mydomain.ext/wiki" rel="nofollow">http://mydomain.ext/wiki</a> ?<br />
- I can&#8217;t find a LocalSettings.php file but only a LocalSettingsGenerator.php file, what should I do ?</p>
<p>Again many thanks for your help.<br />
Best regards,<br />
6echo</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How to export data as an XLS or CSV file from the admin generator in Symfony 1.4 by JRS</title>
		<link>http://blog.baddog.net.au/sonius/steve-sonius/how-to-export-data-as-an-xls-or-csv-file-from-the-admin-generator-in-symfony-1-4/comment-page-1/#comment-2588</link>
		<dc:creator>JRS</dc:creator>
		<pubDate>Fri, 23 Sep 2011 13:53:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.baddog.net.au/sonius/?p=189#comment-2588</guid>
		<description>Copied this code and it only extracts for CSV the first page of data, no matter which page you are viewing, what needs changed? Many thanks</description>
		<content:encoded><![CDATA[<p>Copied this code and it only extracts for CSV the first page of data, no matter which page you are viewing, what needs changed? Many thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Integrating mediawiki with a symfony project symfony 1.3 by sonius</title>
		<link>http://blog.baddog.net.au/sonius/steve-sonius/integrating-mediawiki-with-a-symfony-project-symfony-1-3/comment-page-1/#comment-2550</link>
		<dc:creator>sonius</dc:creator>
		<pubDate>Tue, 20 Sep 2011 23:16:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.baddog.net.au/sonius/?p=694#comment-2550</guid>
		<description>6echo, you may find that these lines.

if(!sfContext::getInstance()-&gt;getUser()-&gt;isAuthenticated()) {
    sfContext::getInstance()-&gt;getController()-&gt;redirect(&quot;http://&quot;.$_SERVER[&#039;HTTP_HOST&#039;].&quot;/user/login&quot;);
}

are redirecting you to a module/action that doesnt exist, in this case, user/login
remove this block and try again.</description>
		<content:encoded><![CDATA[<p>6echo, you may find that these lines.</p>
<p>if(!sfContext::getInstance()->getUser()->isAuthenticated()) {<br />
    sfContext::getInstance()->getController()->redirect(&#8220;http://&#8221;.$_SERVER['HTTP_HOST'].&#8221;/user/login&#8221;);<br />
}</p>
<p>are redirecting you to a module/action that doesnt exist, in this case, user/login<br />
remove this block and try again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Integrating mediawiki with a symfony project symfony 1.3 by 6echo</title>
		<link>http://blog.baddog.net.au/sonius/steve-sonius/integrating-mediawiki-with-a-symfony-project-symfony-1-3/comment-page-1/#comment-2535</link>
		<dc:creator>6echo</dc:creator>
		<pubDate>Mon, 19 Sep 2011 18:05:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.baddog.net.au/sonius/?p=694#comment-2535</guid>
		<description>Hi Steve,

I uploaded the latest MediaWiki release in my symfony project web directory.
However when I enter the URL http://mydomain.ext/wiki, all I get is a 404 error message.
Obviously I&#039;m missing some symfony config. Would you happen to know which one?

Many thanks in advance for your feedback.
Regards,
6echo</description>
		<content:encoded><![CDATA[<p>Hi Steve,</p>
<p>I uploaded the latest MediaWiki release in my symfony project web directory.<br />
However when I enter the URL <a href="http://mydomain.ext/wiki" rel="nofollow">http://mydomain.ext/wiki</a>, all I get is a 404 error message.<br />
Obviously I&#8217;m missing some symfony config. Would you happen to know which one?</p>
<p>Many thanks in advance for your feedback.<br />
Regards,<br />
6echo</p>
]]></content:encoded>
	</item>
</channel>
</rss>

