<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Cronaca di un'avventura formativa</title>
	<atom:link href="http://micheledallatorre.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://micheledallatorre.wordpress.com</link>
	<description>Michele Dalla Torre - stage presso Fondazione Bruno Kessler</description>
	<lastBuildDate>Mon, 17 Mar 2008 14:40:11 +0000</lastBuildDate>
	<language>it</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='micheledallatorre.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Cronaca di un'avventura formativa</title>
		<link>http://micheledallatorre.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://micheledallatorre.wordpress.com/osd.xml" title="Cronaca di un&#039;avventura formativa" />
	<atom:link rel='hub' href='http://micheledallatorre.wordpress.com/?pushpress=hub'/>
		<item>
		<title>TRASFERIMENTO BLOG SU MDT.NETSONS.ORG</title>
		<link>http://micheledallatorre.wordpress.com/2008/03/17/trasferimento-blog-su-mdtnetsonsorg/</link>
		<comments>http://micheledallatorre.wordpress.com/2008/03/17/trasferimento-blog-su-mdtnetsonsorg/#comments</comments>
		<pubDate>Mon, 17 Mar 2008 14:34:32 +0000</pubDate>
		<dc:creator>micheledallatorre</dc:creator>
				<category><![CDATA[comunicazioni]]></category>
		<category><![CDATA[trasferimento_blog_su_www.mdt.netsons.org]]></category>

		<guid isPermaLink="false">http://micheledallatorre.wordpress.com/?p=12</guid>
		<description><![CDATA[AVVISO A causa delle limitazioni imposte da wordpress.com il blog è stato spostato su WWW.MDT.NETSONS.ORG<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=micheledallatorre.wordpress.com&amp;blog=3021719&amp;post=12&amp;subd=micheledallatorre&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2>AVVISO</h2>
<h3>A causa delle limitazioni imposte da wordpress.com il blog è stato spostato su</h3>
<p><a href="http://www.mdt.netsons.org"> WWW.MDT.NETSONS.ORG </a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/micheledallatorre.wordpress.com/12/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/micheledallatorre.wordpress.com/12/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/micheledallatorre.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/micheledallatorre.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/micheledallatorre.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/micheledallatorre.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/micheledallatorre.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/micheledallatorre.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/micheledallatorre.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/micheledallatorre.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/micheledallatorre.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/micheledallatorre.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/micheledallatorre.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/micheledallatorre.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/micheledallatorre.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/micheledallatorre.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=micheledallatorre.wordpress.com&amp;blog=3021719&amp;post=12&amp;subd=micheledallatorre&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://micheledallatorre.wordpress.com/2008/03/17/trasferimento-blog-su-mdtnetsonsorg/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dd6e162a5a5737d0a364d4e9703e4451?s=96&#38;d=identicon" medium="image">
			<media:title type="html">micheledallatorre</media:title>
		</media:content>
	</item>
		<item>
		<title>CakePHP: aggiunta di editor WYSIWYG di Ext JS (parte 2)</title>
		<link>http://micheledallatorre.wordpress.com/2008/03/11/cakephp-aggiunta-di-editor-wysiwyg-di-ext-js-parte-2/</link>
		<comments>http://micheledallatorre.wordpress.com/2008/03/11/cakephp-aggiunta-di-editor-wysiwyg-di-ext-js-parte-2/#comments</comments>
		<pubDate>Tue, 11 Mar 2008 02:12:00 +0000</pubDate>
		<dc:creator>micheledallatorre</dc:creator>
				<category><![CDATA[stage]]></category>

		<guid isPermaLink="false">http://micheledallatorre.wordpress.com/?p=11</guid>
		<description><![CDATA[UPDATE: i codici sotto riportati sono incompleti a causa di problemi con wordpress. Provvederò quanto prima a sistemarli. Eravamo rimasti ai problemi di interazione tra il form di Ext JS e CakePHP. Ecco la soluzione: similmente a quanto fatto per la funzione add creiamo nel file posts_controller.php le due funzioni edit ed edi2: function edit($id [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=micheledallatorre.wordpress.com&amp;blog=3021719&amp;post=11&amp;subd=micheledallatorre&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><b><font color="#ff0000"> UPDATE: i codici sotto riportati sono incompleti a causa di problemi con wordpress. Provvederò quanto prima a sistemarli.</font></b></p>
<p>Eravamo rimasti ai problemi di interazione tra il form di Ext JS e CakePHP.</p>
<p>Ecco la soluzione:</p>
<ol>
<li>similmente a quanto fatto per la funzione add creiamo nel file posts_controller.php le due funzioni edit ed edi2:<br />
<blockquote><p>	function edit($id = null) {<br />
//carico i dati del post<br />
$this-&gt;data = $this-&gt;Post-&gt;read();<br />
// uso set per passare i dati alla view<br />
$this-&gt;set(&#8216;data&#8217;, $this-&gt;data);<br />
}</p>
<p>function edit2($id = null)<br />
{<br />
Configure::write(&#8216;debug&#8217;, &#8217;0&#8242;);     //turn debugging off; debugging breaks ajax<br />
$this-&gt;layout = &#8216;Ajax&#8217;;              //set the layout to Ajax so the ajax doesn&#8217;t break</p>
<p>if (empty($this-&gt;data))<br />
{<br />
$this-&gt;Post-&gt;id = $id;<br />
$this-&gt;data = $this-&gt;Post-&gt;read();<br />
$this-&gt;set(&#8216;success&#8217;, &#8216;{success:true}&#8217;);  //this is a json statement.  EXT forms need this to know if things worked</p>
<p>}<br />
else<br />
{<br />
if ($this-&gt;Post-&gt;save($this-&gt;data['Post']))<br />
{<br />
$this-&gt;set(&#8216;success&#8217;, &#8216;{success:true}&#8217;);  //this is a json statement.  EXT forms need this to know if things worked</p>
<p>}<br />
else {<br />
$this-&gt;set(&#8216;success&#8217;, &#8216;{success:false}&#8217;);  //EXT forms need this to know if something went wrong</p>
<p>}<br />
}<br />
}</p></blockquote>
<p>Da notare l&#8217;uso nella funzione edit di read per caricare i dati del post in memoria e di set per passare questi dati alla view.</li>
<li>nella view edit.thtml andremo a scrivere il seguente codice:<br />
<blockquote><p>  $myTextArea = addslashes($data['Post']['body']);<br />
$myTextArea = preg_replace(&#8220;/\n/&#8221;,&#8221;\\n&#8221;,$myTextArea);<br />
$myTextArea = preg_replace(&#8220;/\r/&#8221;,&#8221;\\r&#8221;,$myTextArea);<br />
?&gt;</p>
<p>var titolo=&#8221;;<br />
var body=&#8221;;</p>
<div> link(&#8216;myFormEDIT&#8217;); ?&gt;</div>
</blockquote>
<p>Quanto scritto non fa altro che fare l&#8217;escape del messaggio contenuto nel post (per evitare situazioni spiacevoli che causano errori di sintassi), salvarlo nella variabile myTextArea ed assegnare quest&#8217;ultima alla variabile body definita in javascript; tale variabile, insieme a quella titolo, verrà usata nel form di Ext JS. Infine carichiamo il file javascript myFormEDIT.js che si occuperà della renderizzazione del form in Ext JS.</li>
<li>il file myFormEdit.js differisce dal form usato per la funzione add solamente per due righe, collocate rispettivamente nell&#8217;item textfield e nell&#8217;item htmleditor (ovvero il campo di testo per il titolo e la textarea per il contenuto del post): con la riga value:titolo assegniamo al textfield il contenuto della variabile titolo definita al punto 2., similmente con la riga value:body assegniamo all&#8217;htmleditor il contenuto della variabile body.</li>
</ol>
<p>Per chiarire quanto spiegato finora descriviamo brevemente il flusso dell&#8217;applicazione per la funzione edit:</p>
<ul>
<li>cliccando su Edit viene caricata la view edit.thtml che renderizza il form tramite il file myFormEDIT.js</li>
<li>a questo punto facciamo le nostre modifiche al post e lo salviamo. Quando clicchiamo su Save viene chiamata la view edit2.thtml che restituisce
<pre>{success:true}</pre>
</li>
<li>il file myFormEDIT.js pertanto mostra un messaggio di alert comunicando l&#8217;avvenuto salvataggio (&#8220;It worked!&#8221;) e rindirizza l&#8217;utente alla lista dei posts ricaricando la pagina.</li>
</ul>
<p>Al momento sto lavorando affinchè i post editati non vengano non salvati in un nuovo post e sto cercando di capire perchè l&#8217;applicazione si comporti, nonostante il codice sia lo stesso, in modo differente se caricata in locale o in remoto.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/micheledallatorre.wordpress.com/11/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/micheledallatorre.wordpress.com/11/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/micheledallatorre.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/micheledallatorre.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/micheledallatorre.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/micheledallatorre.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/micheledallatorre.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/micheledallatorre.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/micheledallatorre.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/micheledallatorre.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/micheledallatorre.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/micheledallatorre.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/micheledallatorre.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/micheledallatorre.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/micheledallatorre.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/micheledallatorre.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=micheledallatorre.wordpress.com&amp;blog=3021719&amp;post=11&amp;subd=micheledallatorre&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://micheledallatorre.wordpress.com/2008/03/11/cakephp-aggiunta-di-editor-wysiwyg-di-ext-js-parte-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dd6e162a5a5737d0a364d4e9703e4451?s=96&#38;d=identicon" medium="image">
			<media:title type="html">micheledallatorre</media:title>
		</media:content>
	</item>
		<item>
		<title>CakePHP: aggiunta di editor WYSIWYG di Ext JS</title>
		<link>http://micheledallatorre.wordpress.com/2008/03/05/cakephp-aggiunta-di-editor-wysiwyg-di-extjs/</link>
		<comments>http://micheledallatorre.wordpress.com/2008/03/05/cakephp-aggiunta-di-editor-wysiwyg-di-extjs/#comments</comments>
		<pubDate>Wed, 05 Mar 2008 00:04:58 +0000</pubDate>
		<dc:creator>micheledallatorre</dc:creator>
				<category><![CDATA[stage]]></category>
		<category><![CDATA[cakephp]]></category>
		<category><![CDATA[FBK]]></category>

		<guid isPermaLink="false">http://micheledallatorre.wordpress.com/?p=8</guid>
		<description><![CDATA[Oggi ho cercato di modificare il blog creato nei giorni scorsi con CakePHP sostituendo l&#8217;editor TinyMCE con quello incorporato in Ext JS; per fare ciò ho preso spunto da questo tutorial. Purtroppo devo dire che ho incontrato molte difficoltà e tuttora non sono riuscito a fare ciò che mi ero proposto. Le cose principali che [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=micheledallatorre.wordpress.com&amp;blog=3021719&amp;post=8&amp;subd=micheledallatorre&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Oggi ho cercato di modificare il blog creato nei giorni scorsi con CakePHP sostituendo l&#8217;editor TinyMCE con quello incorporato in <a href="http://extjs.com" target="_blank">Ext JS</a>; per fare ciò ho preso spunto da <a href="http://www.ntatd.org/mark/?p=31" target="_blank">questo tutorial</a>.</p>
<p>Purtroppo devo dire che ho incontrato molte difficoltà e tuttora non sono riuscito a fare ciò che mi ero proposto. Le cose principali che mi hanno dato problemi sono state la:</p>
<ol>
<li><b>visualizzazione del form creato con Ext JS in CakePHP:</b> nonostante il form funzionasse correttamente se visualizzato in una pagina a sè, importandolo in CakePHP vi erano numerosi errori di visualizzazione (pulsanti invisibili o non allineati e layout del form che non rispettava le specifiche inserite); dopo molte prove ho capito che il problema era causato da un conflitto tra il foglio di stile css di CakePHP e quello di Ext JS e sono riuscito a risolverlo</li>
<li><b>interazione tra il form di Ext JS e CakePHP</b>: la creazione di un nuovo articolo funziona, mentre la modifica di un articolo già esistente ed il suo caricamento nel form cliccando su &#8220;Edit&#8221; no; inoltre l&#8217;eventuale formattazione del testo (grassetto, colore, ecc.) di un nuovo articolo non viene salvata da nessuna parte, pertanto visualizzandolo il testo appare non formattato.</li>
</ol>
<p>Potete dare un&#8217;occhiata a quest&#8217;ultima versione che presenta le limitazioni appena esposte <a href="http://mdt.netsons.org/cake/app2/posts" target="_blank">qui</a>.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/micheledallatorre.wordpress.com/8/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/micheledallatorre.wordpress.com/8/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/micheledallatorre.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/micheledallatorre.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/micheledallatorre.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/micheledallatorre.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/micheledallatorre.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/micheledallatorre.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/micheledallatorre.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/micheledallatorre.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/micheledallatorre.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/micheledallatorre.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/micheledallatorre.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/micheledallatorre.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/micheledallatorre.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/micheledallatorre.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=micheledallatorre.wordpress.com&amp;blog=3021719&amp;post=8&amp;subd=micheledallatorre&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://micheledallatorre.wordpress.com/2008/03/05/cakephp-aggiunta-di-editor-wysiwyg-di-extjs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dd6e162a5a5737d0a364d4e9703e4451?s=96&#38;d=identicon" medium="image">
			<media:title type="html">micheledallatorre</media:title>
		</media:content>
	</item>
		<item>
		<title>CakePHP: aggiunta di TinyMCE (editor WYSIWYG)</title>
		<link>http://micheledallatorre.wordpress.com/2008/03/04/cakephp-aggiunta-di-tinymce-editor-wysiwyg/</link>
		<comments>http://micheledallatorre.wordpress.com/2008/03/04/cakephp-aggiunta-di-tinymce-editor-wysiwyg/#comments</comments>
		<pubDate>Mon, 03 Mar 2008 23:30:40 +0000</pubDate>
		<dc:creator>micheledallatorre</dc:creator>
				<category><![CDATA[stage]]></category>
		<category><![CDATA[cakephp]]></category>
		<category><![CDATA[FBK]]></category>

		<guid isPermaLink="false">http://micheledallatorre.wordpress.com/?p=5</guid>
		<description><![CDATA[Dopo aver visto come creare un semplice blog con CakePHP, ho pensato di aggiungere un editor WYSIWYG (what you see is what you get) per rendere più intuitivo l&#8217;inserimento e la modifica di testo in un articolo. Per fare ciò ho seguito questo tutorial che spiega come aggiungere TinyMCE (uno dei più diffusi editor WYSIWYG) [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=micheledallatorre.wordpress.com&amp;blog=3021719&amp;post=5&amp;subd=micheledallatorre&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://manual.cakephp.org/appendix/blog_tutorial">Dopo aver visto</a> come creare un semplice blog con CakePHP, ho pensato di aggiungere un editor WYSIWYG (what you see is what you get) per rendere più intuitivo l&#8217;inserimento e la modifica di testo in un articolo.</p>
<p>Per fare ciò ho seguito <a href="http://bakery.cakephp.org/articles/view/using-tinymce-with-cakephp">questo tutorial</a> che spiega come aggiungere TinyMCE (uno dei più diffusi editor WYSIWYG) a CakePHP.  I passi da seguire sono i seguenti:</p>
<ol>
<li>scaricare TinyMCE da <a href="http://tinymce.moxiecode.com/download.php">qui</a>, estrarre il file compresso e copiare la cartella <i>tinymce/jscripts/tiny_mce</i> in <i>/webroot/js</i></li>
<li>creare un nuovo layout <i>default.thtml</i> nella cartella<i> /cake/app/views/layouts</i> con questo codice di base:</li>
<blockquote><p>&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;&lt;?php echo $title_for_layout?&gt;&lt;/title&gt;<br />
&lt;?php<br />
if(isset($javascript)):<br />
echo $javascript-&gt;link(&#8216;tiny_mce/tiny_mce.js&#8217;);<br />
endif;<br />
?&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;?php echo $content_for_layout ?&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p></blockquote>
<li>aggiungere questo codice in ogni file di tipo view in cui vogliamo mostrare l&#8217;editor:</li>
<blockquote><p>&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
tinyMCE.init({<br />
theme : &#8220;simple&#8221;,<br />
mode : &#8220;textareas&#8221;,<br />
convert_urls : false<br />
});<br />
&lt;/script&gt;</p></blockquote>
</ol>
<p>Alcuni consigli personali:</p>
<ul>
<li>il codice del punto 3. potete inserirlo direttamente nel file <i>default.thtml</i>, se pensate di usare l&#8217;editor in tutte le views che avete creato</li>
<li> attenzione al codice<br />
<blockquote><p> &lt;?php<br />
if(isset($javascript)):<br />
echo $javascript-&gt;link(&#8216;tiny_mce/tiny_mce.js&#8217;);<br />
endif;<br />
?&gt;</p></blockquote>
<p>che deve stare<b> prima del tag </b><i><b>&lt;/head&gt;</b> </i>della pagina html, altrimenti non funzionerà l&#8217;editor! Per questo motivo non potete inserire il codice visto al punto 2. direttamente nelle views, perché verrebbe caricato dentro il <i>&lt;body&gt;</i> (e quindi <b>dopo </b>il tag <i>&lt;/head&gt;</i>) della pagina html.</li>
<li>potete modificare il layout creato al punto 2. caricando i fogli di stile css ed usando i tag <i>&lt;div&gt;</i> nel <i>&lt;body&gt; </i>della pagina (ad esempio potremmo creare un div header per l&#8217;intestazione, un div content per il contenuto e un div footer per il piè di pagina), in modo da applicare uno stile ben definito al nostro documento.</li>
</ul>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/micheledallatorre.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/micheledallatorre.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/micheledallatorre.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/micheledallatorre.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/micheledallatorre.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/micheledallatorre.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/micheledallatorre.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/micheledallatorre.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/micheledallatorre.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/micheledallatorre.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/micheledallatorre.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/micheledallatorre.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/micheledallatorre.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/micheledallatorre.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/micheledallatorre.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/micheledallatorre.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=micheledallatorre.wordpress.com&amp;blog=3021719&amp;post=5&amp;subd=micheledallatorre&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://micheledallatorre.wordpress.com/2008/03/04/cakephp-aggiunta-di-tinymce-editor-wysiwyg/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dd6e162a5a5737d0a364d4e9703e4451?s=96&#38;d=identicon" medium="image">
			<media:title type="html">micheledallatorre</media:title>
		</media:content>
	</item>
		<item>
		<title>CakePHP: installazione su spazio web online</title>
		<link>http://micheledallatorre.wordpress.com/2008/03/03/cakephp-installazione-su-spazio-web-online/</link>
		<comments>http://micheledallatorre.wordpress.com/2008/03/03/cakephp-installazione-su-spazio-web-online/#comments</comments>
		<pubDate>Mon, 03 Mar 2008 22:31:17 +0000</pubDate>
		<dc:creator>micheledallatorre</dc:creator>
				<category><![CDATA[stage]]></category>
		<category><![CDATA[cakephp]]></category>
		<category><![CDATA[FBK]]></category>

		<guid isPermaLink="false">http://micheledallatorre.wordpress.com/?p=6</guid>
		<description><![CDATA[Come già detto, CakePHP necessita di mysql per poter funzionare; pertanto è necessario avere uno spazio web che supporta la creazione di database mysql. Ci sono diversi servizi gratuiti di questo tipo, come altervista (che però limita il numero di queries), gigacities e netsons. Io ho scelto di usare quest&#8217;ultimo. Una volta creata la nostra [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=micheledallatorre.wordpress.com&amp;blog=3021719&amp;post=6&amp;subd=micheledallatorre&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Come già detto, CakePHP necessita di mysql per poter funzionare; pertanto è necessario avere uno spazio web che supporta la creazione di database mysql.</p>
<p>Ci sono diversi servizi gratuiti di questo tipo, come <a href="http://www.altervista.org">altervista</a> (che però limita il numero di queries), <a href="http://www.gigacities.net/">gigacities</a> e <a href="http://www.netsons.org/">netsons</a>. Io ho scelto di usare quest&#8217;ultimo.</p>
<p>Una volta creata la nostra applicazione in locale con CakePHP basterà uploadare i nostri file tramite FTP sull&#8217;account precedentemente creato di netsons; a questo punto si dovrà configurare il file <i>database.php</i> situato nella cartella <i>/cake/app/config</i> nel seguente modo:</p>
<blockquote><p>var $default = array(&#8216;driver&#8217; =&gt; &#8216;mysql&#8217;,<br />
&#8216;connect&#8217; =&gt; &#8216;mysql_connect&#8217;,<br />
&#8216;host&#8217; =&gt; &#8216;mysql5.netsons.org&#8217;,<br />
&#8216;login&#8217; =&gt; &#8216;<i>tuo_login_di_netsons</i>&#8216;,<br />
&#8216;password&#8217; =&gt; &#8216;<i>tua_password_di_netsons</i>&#8216;,<br />
&#8216;database&#8217; =&gt; &#8216;<i>nome_database</i>&#8216;,<br />
&#8216;prefix&#8217; =&gt; &#8221;);</p></blockquote>
<p><span class="postbody"></span></p>
<p><b>Attenzione alla riga<i> &#8216;host&#8217; =&gt; &#8216;mysql5.netsons.org&#8217; </i>dove dovrete inserire <i>mysql5.netsons.org </i>se avete creato un database mysql5 oppure <i><i>mysql4.netsons.org </i></i>nel caso di un database mysql4.</b></p>
<p>Se tutto è andato a buon fine a questo punto la vostra applicazione dovrebbe essere pronta; <a href="http://www.mdt.netsons.org/cake/app/posts" target="_blank">qui</a> potete vedere la mia.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/micheledallatorre.wordpress.com/6/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/micheledallatorre.wordpress.com/6/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/micheledallatorre.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/micheledallatorre.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/micheledallatorre.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/micheledallatorre.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/micheledallatorre.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/micheledallatorre.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/micheledallatorre.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/micheledallatorre.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/micheledallatorre.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/micheledallatorre.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/micheledallatorre.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/micheledallatorre.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/micheledallatorre.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/micheledallatorre.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=micheledallatorre.wordpress.com&amp;blog=3021719&amp;post=6&amp;subd=micheledallatorre&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://micheledallatorre.wordpress.com/2008/03/03/cakephp-installazione-su-spazio-web-online/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dd6e162a5a5737d0a364d4e9703e4451?s=96&#38;d=identicon" medium="image">
			<media:title type="html">micheledallatorre</media:title>
		</media:content>
	</item>
		<item>
		<title>CakePHP: installazione in locale e creazione di un blog</title>
		<link>http://micheledallatorre.wordpress.com/2008/03/02/cakephp-installazione-e-creazione-di-un-blog/</link>
		<comments>http://micheledallatorre.wordpress.com/2008/03/02/cakephp-installazione-e-creazione-di-un-blog/#comments</comments>
		<pubDate>Sun, 02 Mar 2008 16:49:49 +0000</pubDate>
		<dc:creator>micheledallatorre</dc:creator>
				<category><![CDATA[stage]]></category>
		<category><![CDATA[cakephp]]></category>
		<category><![CDATA[FBK]]></category>

		<guid isPermaLink="false">http://micheledallatorre.wordpress.com/?p=3</guid>
		<description><![CDATA[CakePHP è un framework per PHP che fa uso del pattern MVC (Model-view-controller) molto utile per sviluppare rapidamente web applications. Innanzitutto per installarlo è necessario disporre di un server con php e database, io ho usato Apache e MySql; i passi da seguire sono sostanzialmente i seguenti per chi usa Windows: scaricare ed installare xampp [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=micheledallatorre.wordpress.com&amp;blog=3021719&amp;post=3&amp;subd=micheledallatorre&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>CakePHP è un framework per PHP che fa uso del pattern MVC (Model-view-controller) molto utile per sviluppare rapidamente web applications.</p>
<p>Innanzitutto per installarlo è necessario disporre di un server con php e database, io ho usato Apache e MySql; i passi da seguire sono sostanzialmente i seguenti per chi usa Windows:</p>
<ol>
<li>scaricare ed installare xampp (la versione lite va più che bene) che comprende Apache, PHP e MySql pronti per l&#8217;uso (ci sono altri programmi simili, ad esempio EasyPHP)</li>
<li>scaricare ed estrarre CakePHP nella cartella &#8220;htdocs&#8221; di xampp</li>
<li>creare un file di configurazione &#8220;database.php&#8221; nella cartella &#8220;app/config&#8221; di CakePHP inserendo i dati relativi al database (host, utente, password, nome del database)</li>
<li>far partire xampp ed andare all&#8217;indirizzo &#8220;http://localhost/cake&#8221; (&#8220;cake&#8221; è il nome della cartella dove è stato estratto CakePHP)</li>
</ol>
<p>Se è andato tutto bene dovremmo vedere una pagina che ci mostra che CakePHP è stato installato e funziona correttamente.</p>
<p>Per maggiori dettagli rimando a <a href="http://agro1986.wordpress.com/2006/07/19/how-to-get-cakephp-up-and-running-on-windows-etc/" target="_blank">questo articolo</a>.</p>
<p>Per comprendere i principi di CakePHP è molto utile seguire <a href="http://manual.cakephp.org/appendix/blog_tutorial" target="_blank">questo tutorial</a> che ci porterà in breve tempo alla creazione di un blog molto semplice.</p>
<p>Devo dire che sono rimasto piacevolmente sorpreso dalle possibilità che questo framework mette a disposizione, infatti semplifica di molto la creazione di applicazioni web; forse all&#8217;inizio può sembrare un po&#8217; complicato, ma una volta capito il suo funzionamento applicazioni anche complesse diventeranno facili da sviluppare e gestire grazie al modello MVC.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/micheledallatorre.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/micheledallatorre.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/micheledallatorre.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/micheledallatorre.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/micheledallatorre.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/micheledallatorre.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/micheledallatorre.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/micheledallatorre.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/micheledallatorre.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/micheledallatorre.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/micheledallatorre.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/micheledallatorre.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/micheledallatorre.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/micheledallatorre.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/micheledallatorre.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/micheledallatorre.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=micheledallatorre.wordpress.com&amp;blog=3021719&amp;post=3&amp;subd=micheledallatorre&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://micheledallatorre.wordpress.com/2008/03/02/cakephp-installazione-e-creazione-di-un-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dd6e162a5a5737d0a364d4e9703e4451?s=96&#38;d=identicon" medium="image">
			<media:title type="html">micheledallatorre</media:title>
		</media:content>
	</item>
		<item>
		<title>Apre il mio blog!</title>
		<link>http://micheledallatorre.wordpress.com/2008/03/01/apre-il-mio-blog/</link>
		<comments>http://micheledallatorre.wordpress.com/2008/03/01/apre-il-mio-blog/#comments</comments>
		<pubDate>Sat, 01 Mar 2008 22:29:22 +0000</pubDate>
		<dc:creator>micheledallatorre</dc:creator>
				<category><![CDATA[comunicazioni]]></category>

		<guid isPermaLink="false">http://micheledallatorre.wordpress.com/?p=4</guid>
		<description><![CDATA[Più volte ho pensato di aprire un mio blog, ma sono sempre stato un po&#8217; restio perché credevo &#8211; e tuttora credo &#8211; di avere molto di più da imparare e leggere che non da scrivere o dire. Per questo preferisco passare il mio tempo libero a leggere articoli di altre persone che non a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=micheledallatorre.wordpress.com&amp;blog=3021719&amp;post=4&amp;subd=micheledallatorre&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Più volte ho pensato di aprire un mio blog, ma sono sempre stato un po&#8217; restio perché credevo &#8211; e tuttora credo &#8211; di avere molto di più da imparare e leggere che non da scrivere o dire. Per questo preferisco passare il mio tempo libero a leggere articoli di altre persone che non a scriverne personalmente.</p>
<p>Ora, più per &#8220;dovere&#8221; che per mia convinzione, inizia questa avventura in cui cercherò di raccontare (a chi?) il mio stage presso la Fondazione Bruno Kessler.</p>
<p>Non escludo che in un secondo momento, qualora dovessi prenderci particolarmente gusto o nel caso questo modesto blog diventasse abbastanza frequentato da darmi sufficienti gratificazioni, inizierò a pubblicare non solo resoconti del mio stage, ma anche notizie più personali o interessanti.</p>
<p>Buona lettura, ciao!</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/micheledallatorre.wordpress.com/4/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/micheledallatorre.wordpress.com/4/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/micheledallatorre.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/micheledallatorre.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/micheledallatorre.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/micheledallatorre.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/micheledallatorre.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/micheledallatorre.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/micheledallatorre.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/micheledallatorre.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/micheledallatorre.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/micheledallatorre.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/micheledallatorre.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/micheledallatorre.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/micheledallatorre.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/micheledallatorre.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=micheledallatorre.wordpress.com&amp;blog=3021719&amp;post=4&amp;subd=micheledallatorre&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://micheledallatorre.wordpress.com/2008/03/01/apre-il-mio-blog/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dd6e162a5a5737d0a364d4e9703e4451?s=96&#38;d=identicon" medium="image">
			<media:title type="html">micheledallatorre</media:title>
		</media:content>
	</item>
	</channel>
</rss>
