<?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 on: Writing an installer for your CakePHP application</title>
	<atom:link href="http://cakebaker.42dh.com/2007/04/16/writing-an-installer-for-your-cakephp-application/feed/" rel="self" type="application/rss+xml" />
	<link>http://cakebaker.42dh.com/2007/04/16/writing-an-installer-for-your-cakephp-application/</link>
	<description>baking cakes with CakePHP</description>
	<lastBuildDate>Sat, 13 Mar 2010 15:19:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2007/04/16/writing-an-installer-for-your-cakephp-application/comment-page-1/#comment-135053</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Sun, 23 Aug 2009 15:32:33 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/04/16/writing-an-installer-for-your-cakephp-application/#comment-135053</guid>
		<description>@scls19fr: Your point about messy code is true, and not only for wiki software ;-)  

Using a framework can prevent this to some degree by offering you a certain structure, but in the end it is up to the developers whether the code ends in a mess... However, it definitely decreases the learning curve for users (developers) who already know the framework. 

And yes, a well-known application could be a good promoter of the framework itself.

Anyway, I am looking forward to your wiki application :)</description>
		<content:encoded><![CDATA[<p>@scls19fr: Your point about messy code is true, and not only for wiki software ;-)  </p>
<p>Using a framework can prevent this to some degree by offering you a certain structure, but in the end it is up to the developers whether the code ends in a mess&#8230; However, it definitely decreases the learning curve for users (developers) who already know the framework. </p>
<p>And yes, a well-known application could be a good promoter of the framework itself.</p>
<p>Anyway, I am looking forward to your wiki application :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: scls19fr</title>
		<link>http://cakebaker.42dh.com/2007/04/16/writing-an-installer-for-your-cakephp-application/comment-page-1/#comment-134937</link>
		<dc:creator>scls19fr</dc:creator>
		<pubDate>Fri, 21 Aug 2009 16:32:55 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/04/16/writing-an-installer-for-your-cakephp-application/#comment-134937</guid>
		<description>I&#039;m using wikis since several years.
When you have a look at the code it&#039;s often so messy !
(I won&#039;t say what wiki I&#039;m using ;-) )
Using a good framework such as CakePHP would be interresting because medium users could more easily change layout, add new features, ...

Moreover if an application based on the framework is well know it full urge many other developpers to have a look at the framework.</description>
		<content:encoded><![CDATA[<p>I&#8217;m using wikis since several years.<br />
When you have a look at the code it&#8217;s often so messy !<br />
(I won&#8217;t say what wiki I&#8217;m using ;-) )<br />
Using a good framework such as CakePHP would be interresting because medium users could more easily change layout, add new features, &#8230;</p>
<p>Moreover if an application based on the framework is well know it full urge many other developpers to have a look at the framework.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: scls19fr</title>
		<link>http://cakebaker.42dh.com/2007/04/16/writing-an-installer-for-your-cakephp-application/comment-page-1/#comment-134936</link>
		<dc:creator>scls19fr</dc:creator>
		<pubDate>Fri, 21 Aug 2009 16:31:08 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/04/16/writing-an-installer-for-your-cakephp-application/#comment-134936</guid>
		<description>I&#039;m using wikis since several years.
When you have a look at the code it&#039;s often so messy !
(I won&#039;t say what wiki I&#039;m using ;-) )
Using a good framework such as CakePHP would be interresting because medium users could more easily change layout, add new functionnality, ...</description>
		<content:encoded><![CDATA[<p>I&#8217;m using wikis since several years.<br />
When you have a look at the code it&#8217;s often so messy !<br />
(I won&#8217;t say what wiki I&#8217;m using ;-) )<br />
Using a good framework such as CakePHP would be interresting because medium users could more easily change layout, add new functionnality, &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2007/04/16/writing-an-installer-for-your-cakephp-application/comment-page-1/#comment-134933</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Fri, 21 Aug 2009 16:01:15 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/04/16/writing-an-installer-for-your-cakephp-application/#comment-134933</guid>
		<description>@scls19fr: Yes, I fully agree with you that you need a good installation method if you write a product people have to install. And for such projects this is important. However, of all projects realized with CakePHP I think only a minority will fall into this product category, most are custom web applications. And so providing an installer infrastructure probably has a low (or no) priority for the core devs. 

Hence it is something which has to be realized by some community members with a need for such an installer infrastructure...</description>
		<content:encoded><![CDATA[<p>@scls19fr: Yes, I fully agree with you that you need a good installation method if you write a product people have to install. And for such projects this is important. However, of all projects realized with CakePHP I think only a minority will fall into this product category, most are custom web applications. And so providing an installer infrastructure probably has a low (or no) priority for the core devs. </p>
<p>Hence it is something which has to be realized by some community members with a need for such an installer infrastructure&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: scls19fr</title>
		<link>http://cakebaker.42dh.com/2007/04/16/writing-an-installer-for-your-cakephp-application/comment-page-1/#comment-134877</link>
		<dc:creator>scls19fr</dc:creator>
		<pubDate>Thu, 20 Aug 2009 16:02:49 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/04/16/writing-an-installer-for-your-cakephp-application/#comment-134877</guid>
		<description>Let&#039;s imagine you want to build a wiki, a little CMS, a blog based on the CakePHP framework... 

I&#039;m personnaly very interrested in writing a wiki with a wikka like syntax)
The IBM tutorial http://www.ibm.com/developerworks/edu/os-dw-os-php-wiki1.html
Create an interactive production wiki using PHP seems to be a good starting point for this !

if you don&#039;t provide a convenient installation method the project wouldn&#039;t be available for the mass users.</description>
		<content:encoded><![CDATA[<p>Let&#8217;s imagine you want to build a wiki, a little CMS, a blog based on the CakePHP framework&#8230; </p>
<p>I&#8217;m personnaly very interrested in writing a wiki with a wikka like syntax)<br />
The IBM tutorial <a href="http://www.ibm.com/developerworks/edu/os-dw-os-php-wiki1.html" rel="nofollow">http://www.ibm.com/developerworks/edu/os-dw-os-php-wiki1.html</a><br />
Create an interactive production wiki using PHP seems to be a good starting point for this !</p>
<p>if you don&#8217;t provide a convenient installation method the project wouldn&#8217;t be available for the mass users.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2007/04/16/writing-an-installer-for-your-cakephp-application/comment-page-1/#comment-134875</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Thu, 20 Aug 2009 15:30:30 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/04/16/writing-an-installer-for-your-cakephp-application/#comment-134875</guid>
		<description>@scls19fr: Thanks for your comment!

Yes, table prefixes are a problem when using plain SQL. However, I think in the meantime this problem has been solved with the introduction of the schema concept, which allows you to specify the tables with PHP (and I assume it takes the table prefix in account when it translates those settings to SQL). 

I don&#039;t think there should be support for installation methods in the core framework because only a minority of applications would benefit from it. And so far no solution emerged from the community, which could mean nobody is interested in it, or that it is not that easy to write a generic solution...</description>
		<content:encoded><![CDATA[<p>@scls19fr: Thanks for your comment!</p>
<p>Yes, table prefixes are a problem when using plain SQL. However, I think in the meantime this problem has been solved with the introduction of the schema concept, which allows you to specify the tables with PHP (and I assume it takes the table prefix in account when it translates those settings to SQL). </p>
<p>I don&#8217;t think there should be support for installation methods in the core framework because only a minority of applications would benefit from it. And so far no solution emerged from the community, which could mean nobody is interested in it, or that it is not that easy to write a generic solution&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: scls19fr</title>
		<link>http://cakebaker.42dh.com/2007/04/16/writing-an-installer-for-your-cakephp-application/comment-page-1/#comment-134860</link>
		<dc:creator>scls19fr</dc:creator>
		<pubDate>Thu, 20 Aug 2009 08:37:26 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/04/16/writing-an-installer-for-your-cakephp-application/#comment-134860</guid>
		<description>There is an other problem with this kind of installation script...

Your are trying to execute a SQL script inside the php code... but your SQL script contains informations such as table prefix when you are building tables... but this kind of information could be modified by user... (it would be a very bad idea to have to change both app/config/database.php and the SQL script)

So the solution could be to have a SQL script with variables instead of table prefix (and database name)

Unfortunately I don&#039;t know how to do this.

I like CakePHP very much but I really think that a well suported installation method for application which are build with CakePHP should be supported

Two kinds of installations should be supported

- the first one, modifying manually app/config/database.php , executing a SQL script (with database name and table prefix as variable), and executing other PHP code for post install

- a second one with a form that user could fill in.</description>
		<content:encoded><![CDATA[<p>There is an other problem with this kind of installation script&#8230;</p>
<p>Your are trying to execute a SQL script inside the php code&#8230; but your SQL script contains informations such as table prefix when you are building tables&#8230; but this kind of information could be modified by user&#8230; (it would be a very bad idea to have to change both app/config/database.php and the SQL script)</p>
<p>So the solution could be to have a SQL script with variables instead of table prefix (and database name)</p>
<p>Unfortunately I don&#8217;t know how to do this.</p>
<p>I like CakePHP very much but I really think that a well suported installation method for application which are build with CakePHP should be supported</p>
<p>Two kinds of installations should be supported</p>
<p>- the first one, modifying manually app/config/database.php , executing a SQL script (with database name and table prefix as variable), and executing other PHP code for post install</p>
<p>- a second one with a form that user could fill in.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2007/04/16/writing-an-installer-for-your-cakephp-application/comment-page-1/#comment-113034</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Wed, 19 Nov 2008 18:24:09 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/04/16/writing-an-installer-for-your-cakephp-application/#comment-113034</guid>
		<description>@Symen: Ah, now I see the problem CCDC described. The problem is that the FormHelper tries to access the database, hence the &quot;missing database connection&quot; error. If you use plain HTML the error should disappear, but then you probably will have the problem that you cannot write database.php...

As I described in the article, I think you can expect a user will be able to modify database.php manually if you describe it in the installation instructions. 

Another option is, as you mention, to write an installation script. Either as a php script independent of cakephp, or as a cake shell script.

Hope that helps!</description>
		<content:encoded><![CDATA[<p>@Symen: Ah, now I see the problem CCDC described. The problem is that the FormHelper tries to access the database, hence the &#8220;missing database connection&#8221; error. If you use plain HTML the error should disappear, but then you probably will have the problem that you cannot write database.php&#8230;</p>
<p>As I described in the article, I think you can expect a user will be able to modify database.php manually if you describe it in the installation instructions. </p>
<p>Another option is, as you mention, to write an installation script. Either as a php script independent of cakephp, or as a cake shell script.</p>
<p>Hope that helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Symen Timmermans</title>
		<link>http://cakebaker.42dh.com/2007/04/16/writing-an-installer-for-your-cakephp-application/comment-page-1/#comment-113014</link>
		<dc:creator>Symen Timmermans</dc:creator>
		<pubDate>Wed, 19 Nov 2008 10:07:29 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/04/16/writing-an-installer-for-your-cakephp-application/#comment-113014</guid>
		<description>The problem CCDC describes is a very valid one. 
I&#039;m struggling with this one also. 
Perhaps the installer should run some php script outside of Cakephp to circumvent this problem...</description>
		<content:encoded><![CDATA[<p>The problem CCDC describes is a very valid one.<br />
I&#8217;m struggling with this one also.<br />
Perhaps the installer should run some php script outside of Cakephp to circumvent this problem&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cakebaker</title>
		<link>http://cakebaker.42dh.com/2007/04/16/writing-an-installer-for-your-cakephp-application/comment-page-1/#comment-101282</link>
		<dc:creator>cakebaker</dc:creator>
		<pubDate>Thu, 31 Jul 2008 17:19:10 +0000</pubDate>
		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/04/16/writing-an-installer-for-your-cakephp-application/#comment-101282</guid>
		<description>@CCDC: Hm, unless you use some database functionality in your AppController or you are calling the &quot;database&quot; action in the InstallerController I don&#039;t see why you should get a &quot;missing database connection&quot; error. Maybe you can be more specific on when you get the error?</description>
		<content:encoded><![CDATA[<p>@CCDC: Hm, unless you use some database functionality in your AppController or you are calling the &#8220;database&#8221; action in the InstallerController I don&#8217;t see why you should get a &#8220;missing database connection&#8221; error. Maybe you can be more specific on when you get the error?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
