<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Vinodkram &#187; Symfony</title>
	<atom:link href="http://www.vinodkram.com/category/symfony/feed" rel="self" type="application/rss+xml" />
	<link>http://www.vinodkram.com</link>
	<description>Creative, Informative and Entertaining Stuff for everyone</description>
	<lastBuildDate>Mon, 26 Dec 2011 18:34:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>configure database using propel</title>
		<link>http://www.vinodkram.com/configure-database-using-propel</link>
		<comments>http://www.vinodkram.com/configure-database-using-propel#comments</comments>
		<pubDate>Mon, 26 Dec 2011 18:34:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MVC]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Symfony]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://www.vinodkram.com/?p=1614</guid>
		<description><![CDATA[$ ./symfony configure:database --name=propel --class=sfPropelDatabase "mysql:host=localhost;dbname=dbname" username userpassword]]></description>
			<content:encoded><![CDATA[<pre><code>$ ./symfony configure:database --name=propel --class=sfPropelDatabase "mysql:host=localhost;dbname=dbname" username userpassword</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.vinodkram.com/configure-database-using-propel/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to get symfony project base url in template file</title>
		<link>http://www.vinodkram.com/how-to-get-symfony-project-base-url-in-template-file</link>
		<comments>http://www.vinodkram.com/how-to-get-symfony-project-base-url-in-template-file#comments</comments>
		<pubDate>Sat, 03 Dec 2011 11:17:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Symfony]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://www.vinodkram.com/?p=1595</guid>
		<description><![CDATA[To get the base url of your symfony project , you can use the below in your template file. $sf_request->getUriPrefix().$sf_request->getRelativeUrlRoot() And to get your current app URL. $sf_request->getUriPrefix().$sf_request->getRelativeUrlRoot().$sf_request->getPathInfoPrefix();]]></description>
			<content:encoded><![CDATA[<p>To get the base url of your symfony project , you can use the below in your template file.</p>
<p>$sf_request->getUriPrefix().$sf_request->getRelativeUrlRoot()</p>
<p>And to get your current app URL.</p>
<p>$sf_request->getUriPrefix().$sf_request->getRelativeUrlRoot().$sf_request->getPathInfoPrefix();</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vinodkram.com/how-to-get-symfony-project-base-url-in-template-file/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Self join criteria in symfony</title>
		<link>http://www.vinodkram.com/self-join-criteria-in-symfony</link>
		<comments>http://www.vinodkram.com/self-join-criteria-in-symfony#comments</comments>
		<pubDate>Mon, 21 Nov 2011 16:36:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MVC]]></category>
		<category><![CDATA[Symfony]]></category>

		<guid isPermaLink="false">http://www.vinodkram.com/?p=1593</guid>
		<description><![CDATA[For Example : SELECT tbl1.id FROM tbl1 a LEFT JOIN tbl1 b ON a.somecolumnname = b.somecolumn ORDER BY a.somecolumn DESC The criteria would be as follow $c=new Criteria(); $c->addAlias(&#8216;a&#8217;, &#8216;tbl1&#8242;); $c->addAlias(&#8216;b&#8217;, &#8216;tbl1&#8242;); $c->addSelectColumn(&#8216;b.id&#8217;); $c->addSelectColumn(&#8216;a.tbl1_id&#8217;); $c->addDescendingOrderByColumn(&#8216;a.somecolumn&#8217;); $c->addJoin(&#8216;a.somecolumnname&#8217;,'b.somecolumn&#8217;,Criteria::LEFT_JOIN); // Specify your criteria LEFT, RIGHT or INNER $rs = tbl1Peer::doSelect($c); Thanks Cheers]]></description>
			<content:encoded><![CDATA[<p>For Example :<br />
SELECT tbl1.id FROM tbl1 a LEFT JOIN tbl1 b ON a.somecolumnname = b.somecolumn ORDER BY a.somecolumn DESC</p>
<p>The criteria would be as follow</p>
<p>$c=new Criteria();<br />
$c->addAlias(&#8216;a&#8217;, &#8216;tbl1&#8242;);<br />
$c->addAlias(&#8216;b&#8217;, &#8216;tbl1&#8242;);<br />
$c->addSelectColumn(&#8216;b.id&#8217;);<br />
$c->addSelectColumn(&#8216;a.tbl1_id&#8217;);<br />
$c->addDescendingOrderByColumn(&#8216;a.somecolumn&#8217;);<br />
$c->addJoin(&#8216;a.somecolumnname&#8217;,'b.somecolumn&#8217;,Criteria::LEFT_JOIN); // Specify your criteria LEFT, RIGHT or INNER<br />
$rs = tbl1Peer::doSelect($c);  </p>
<p>Thanks Cheers <img src='http://www.vinodkram.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.vinodkram.com/self-join-criteria-in-symfony/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mysql error while executing propel:insert-sql in symfony 1.4</title>
		<link>http://www.vinodkram.com/mysql-error-while-executing-propelinsert-sql-in-symfony-1-4</link>
		<comments>http://www.vinodkram.com/mysql-error-while-executing-propelinsert-sql-in-symfony-1-4#comments</comments>
		<pubDate>Sat, 26 Feb 2011 18:12:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Symfony]]></category>

		<guid isPermaLink="false">http://www.vinodkram.com/?p=1571</guid>
		<description><![CDATA[[propel-sql-exec] SQLSTATE[42000]: Syntax error or access violation: 106 you have an error in your SQL syntax; check the manual that corresponds to you server version for the right syntax to use near ‘Type=InnoDB’ at line 16 >> propel Running &#8220;insert-sql&#8221; phing task [propel-sql-exec] Failed to execute: CREATE TABLE `tblName` ( `id` INTEGER NOT NULL AUTO_INCREMENT, [...]]]></description>
			<content:encoded><![CDATA[<p>[propel-sql-exec] SQLSTATE[42000]: Syntax error or access violation: 106 you have an error in your SQL syntax; check the manual that corresponds to you<br />
server version for the right syntax to use near ‘Type=InnoDB’ at line 16<br />
>> propel    Running &#8220;insert-sql&#8221; phing task<br />
[propel-sql-exec] Failed to execute:</p>
<p> CREATE TABLE `tblName`<br />
 (<br />
 `id` INTEGER  NOT NULL AUTO_INCREMENT,<br />
 `description` TEXT,<br />
 `image` VARCHAR(255),<br />
 `created_at` DATETIME,<br />
 PRIMARY KEY (`id`),<br />
 )Type=InnoDB</p>
<p>[propel-sql-exec] SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#8216;Type=InnoDB&#8217; at line 16 </p>
<p>Some problems occurred when executing the task:<br />
If the exception message is not clear enough, read the output of the task for more information<br />
>> file-     D:/xampp/htdocs/s&#8230;1_4/config/generated-schema.xml</p>
<p>The solution to this is<br />
Edit the file D:/xampp/htdocs/symfony_1_4/lib/vendor/symfony/lib/plugins/sfPropelPlugin/lib/vendor/propel-generator/classes/propel/engine/builder/sql/mysql/MysqlDDLBuilder.php<br />
Line 156, change<br />
$script .= “Type=$mysqlTableType”;<br />
to<br />
$script .= “Engine=$mysqlTableType”;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vinodkram.com/mysql-error-while-executing-propelinsert-sql-in-symfony-1-4/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>How to use FCKeditor in symfony</title>
		<link>http://www.vinodkram.com/how-to-use-fckeditor-in-symfony</link>
		<comments>http://www.vinodkram.com/how-to-use-fckeditor-in-symfony#comments</comments>
		<pubDate>Fri, 25 Dec 2009 15:34:50 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Symfony]]></category>

		<guid isPermaLink="false">http://www.vinodkram.com/2009/12/how-to-use-fckeditor-in-symfony/</guid>
		<description><![CDATA[1. Download the FCKeditor source from http://ckeditor.com/download 2. Extract the source to /web/js/ directory of your symfony project directory 3. To use the editor in symfony, add (edit if present)the below line //config/settings.yml .settings: rich_text_fck_js_dir: js/fckeditor 4. You have to edit /web/js/fckeditor/fckconfig.js var _FileBrowserLanguage = &#8216;php&#8217; ; // asp &#124; aspx &#124; cfm &#124; lasso [...]]]></description>
			<content:encoded><![CDATA[<p>1. Download the FCKeditor source from <a href="http://ckeditor.com/download">http://ckeditor.com/download</a></p>
<p>2. Extract the source to /web/js/ directory of your symfony project directory</p>
<p>3. To use the editor in symfony, add (edit if present)the below line /<name of app>/config/settings.yml </p>
<p>.settings:<br />
    rich_text_fck_js_dir: js/fckeditor</p>
<p>4. You have to edit /web/js/fckeditor/fckconfig.js </p>
<p>var _FileBrowserLanguage	= &#8216;php&#8217; ;	// asp | aspx | cfm | lasso | perl | php | py<br />
var _QuickUploadLanguage	= &#8216;php&#8217; ;	// asp | aspx | cfm | lasso | php</p>
<p>Depending on the technology you are using you have to set the above two parameter</p>
<p>5. In newer versions of FCKEditor you also have to enable the PHP connector in file /web/js/fckeditor/editor/filemanager/connectors/php/config.php on line 28, and also set your upload directory (on line 32). </p>
<p>$Config['Enabled'] = false;<br />
$Config['UserFilesPath'] = &#8216;/uploads/assets/&#8217; ;</p>
<p>You can set the UserFilesPath to whatever folder you want to store the uploaded file</p>
<p>6. Now you are ready to use the fck editor in your page</p>
<p>$options = array(<br />
	&#8216;rich&#8217; => &#8216;fck&#8217;,<br />
	&#8216;height&#8217; => 500,<br />
	&#8216;width&#8217;	=> 500,<br />
);<br />
echo textarea_tag(&#8216;inputname&#8217;, &#8216;Lorem ipsum&#8217;, $options ); </p>
<p>Thats All <img src='http://www.vinodkram.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.vinodkram.com/how-to-use-fckeditor-in-symfony/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Update query in symfony</title>
		<link>http://www.vinodkram.com/update-query-in-symfony</link>
		<comments>http://www.vinodkram.com/update-query-in-symfony#comments</comments>
		<pubDate>Sat, 12 Dec 2009 06:04:54 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Symfony]]></category>

		<guid isPermaLink="false">http://www.vinodkram.com/2009/12/update-query-in-symfony/</guid>
		<description><![CDATA[Suppose you want to execute query like UPDATE tableName SET column1 = &#8216;abc&#8217;,column2 = &#8216;xyz&#8217; WHERE column =&#8217;1&#8242;; then you can use the below syntax to do so &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- $con = Propel::getConnection(); /* Here you have to set the condition for which you need to update */ $c1 = new Criteria(); $c1->add(TableNamePeer::COLUMN_NAME, $conditionForColumn1); /* Here [...]]]></description>
			<content:encoded><![CDATA[<p>Suppose you want to execute query like<br />
UPDATE tableName SET column1 = &#8216;abc&#8217;,column2 = &#8216;xyz&#8217; WHERE column =&#8217;1&#8242;;<br />
then you can use the below syntax to do so <img src='http://www.vinodkram.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>$con = Propel::getConnection();</p>
<p>/* Here you have to set the condition for which you need to update */<br />
$c1 = new Criteria();<br />
$c1->add(TableNamePeer::COLUMN_NAME, $conditionForColumn1);</p>
<p>/* Here you have to set the column value */<br />
$c2 = new Criteria();<br />
$c2->add(TableNamePeer::COLUMN_TO_UPDATE, $value);</p>
<p>BasePeer::doUpdate($c1, $c2, $con);</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vinodkram.com/update-query-in-symfony/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to set the meta tag information intemplate file in symfony</title>
		<link>http://www.vinodkram.com/how-to-set-the-meta-tag-information-intemplate-file-in-symfony</link>
		<comments>http://www.vinodkram.com/how-to-set-the-meta-tag-information-intemplate-file-in-symfony#comments</comments>
		<pubDate>Sun, 25 Oct 2009 14:46:02 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Symfony]]></category>

		<guid isPermaLink="false">http://www.vinodkram.com/2009/10/how-to-set-the-meta-tag-information-intemplate-file-in-symfony/</guid>
		<description><![CDATA[You can set the meta tag information in your template file as below. sfContext::getInstance()->getResponse()->setTitle(&#8216;Your meta title here&#8217;); sfContext::getInstance()->getResponse()->addMeta(&#8216;description&#8217;,&#8217; Meta description information&#8217;); sfContext::getInstance()->getResponse()->addMeta(&#8216;keywords&#8217;,'meta tag keywords seperated by commas&#8217;); That&#8217;s it. Thanks]]></description>
			<content:encoded><![CDATA[<p>You can set the meta tag information in your template file as below.</p>
<p>sfContext::getInstance()->getResponse()->setTitle(&#8216;Your meta title here&#8217;);<br />
					sfContext::getInstance()->getResponse()->addMeta(&#8216;description&#8217;,&#8217; Meta description information&#8217;);<br />
					sfContext::getInstance()->getResponse()->addMeta(&#8216;keywords&#8217;,'meta tag keywords seperated by commas&#8217;);</p>
<p>That&#8217;s it.</p>
<p>Thanks</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vinodkram.com/how-to-set-the-meta-tag-information-intemplate-file-in-symfony/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to configure the symfony project directory</title>
		<link>http://www.vinodkram.com/how-to-configure-the-symfony-project-directory</link>
		<comments>http://www.vinodkram.com/how-to-configure-the-symfony-project-directory#comments</comments>
		<pubDate>Wed, 22 Apr 2009 07:27:48 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Symfony]]></category>

		<guid isPermaLink="false">http://vinodkram.wordpress.com/?p=50</guid>
		<description><![CDATA[Your symfony project derectory is &#8220;/var/www/html/sf_sandbox&#8221; so in the browser you can acess this by this URL : &#8220;http://localhost/sf_sandbox/web/frontend.php/&#8221; So if you want to map the symfony project directoy to your web root directory ie i mean to say you just want to acess it my using the URL :&#8221;http://localhost/&#8221; then you have to add [...]]]></description>
			<content:encoded><![CDATA[<p>Your symfony project derectory is &#8220;/var/www/html/sf_sandbox&#8221; so in the browser you can acess this by this URL : &#8220;http://localhost/sf_sandbox/web/frontend.php/&#8221;</p>
<p>So if you want to map the symfony project directoy to your web root directory ie i mean to say you just want to acess it my using the URL :&#8221;http://localhost/&#8221; then you have to add the below line in the httpd.conf file and then restart your apache server.After that you can directly acess the symfony project from localhost url.</p>
<p>&lt;VirtualHost *:80&gt;<br />
ServerName http://localhost/<br />
DocumentRoot &#8220;/var/www/html/sf_sandbox/web&#8221;<br />
DirectoryIndex index.php<br />
&lt;Directory &#8220;/var/www/html/sf_sandbox/web&#8221;&gt;<br />
AllowOverride All<br />
Allow from All<br />
&lt;/Directory&gt;<br />
&lt;/VirtualHost&gt;</p>
<p>Rest of the things will be handled by symfony itself.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vinodkram.com/how-to-configure-the-symfony-project-directory/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

