<?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>Webscriptz.be &#187; project</title>
	<atom:link href="http://webscriptz.be/tags/project/feed" rel="self" type="application/rss+xml" />
	<link>http://webscriptz.be</link>
	<description></description>
	<lastBuildDate>Sat, 17 Apr 2010 12:45:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>YII framework configuration</title>
		<link>http://webscriptz.be/2009/12/20/yii-framework-configuration/253</link>
		<comments>http://webscriptz.be/2009/12/20/yii-framework-configuration/253#comments</comments>
		<pubDate>Sun, 20 Dec 2009 22:47:49 +0000</pubDate>
		<dc:creator>webscriptz</dc:creator>
				<category><![CDATA[tutorials]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[oop]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php5]]></category>
		<category><![CDATA[project]]></category>
		<category><![CDATA[yii]]></category>
		<category><![CDATA[yii framework]]></category>

		<guid isPermaLink="false">http://webscriptz.be/?p=253</guid>
		<description><![CDATA[I&#8217;m toying with the Yii Framework for some time now and even if i cost me a lot of anger and frustration in the beginning I&#8217;m starting to like it more and more, alas I do have to say that the documentation isn&#8217;t always that clear and for someone who begins or who&#8217;ll write some [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m toying with the Yii Framework for some time now and even if i cost me a lot of anger and frustration in the beginning I&#8217;m starting to like it more and more, alas I do have to say that the documentation isn&#8217;t always that clear and for someone who begins or who&#8217;ll write some large applications the configuration file can be a hassle so here&#8217;s my solution:</p>
<blockquote><p>Brake down the configuration file in multiple files, this will give you some speed disadvantage and some will  saying that I&#8217;m raping Yii framework purpose for speed but at least to me it seems more clear</p></blockquote>
<p>This is the protected.config/main.php</p>
<pre class="brush:[php]">
dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
'name'=&gt;'WEBSITENAME',
'modules'=&gt;array(
'users'=&gt;array(
//sub modules in the module users
'modules'=&gt;array(
'messaging',
'profile',
'dashboard',
)
),
'about',
'forums',
),
// preloading 'log' component active loading
'preload'=&gt;array('log'),

// autoloading model and component classes lazy loading
// I make the difference between CformModel and CActiveRecord
'import'=&gt;array(
'application.models.*',
'application.models.forms.*',
'application.models.database.*',
),

// application components
'components'=&gt;array(
// enable cookie-based authentication
'user'=&gt;array('allowAutoLogin'=&gt;true),

// data relinquished to database.php
// for easy access and usability as also for the future
// installation procedure, it's less to write to a file
'db'=&gt;include(dirname(__FILE__).'/database.php'),

// for a better overview we exculded url routes to a seperate file
'urlManager'=&gt;include(dirname(__FILE__).'/routes.php'),

//authentication component needs data from db for CdbConnection
'authManager'=&gt;array(
'class'=&gt;'CDbAuthManager',
'connectionID'=&gt;'db',
'defaultRoles'=&gt;array('authenticated', 'guest'),
),

//security measures
'request'=&gt;array(
'enableCsrfValidation'=&gt;true,
'enableCookieValidation'=&gt;true,
),
),

// application-level parameters that can be accessed
// using Yii::app()-&gt;params['paramName']
// uncomment the following if you want static params in the application
//'params'=&gt;array(include(dirname(__FILE__).'/params.php'))
);</pre>
<p>database.php</p>
<pre class="brush:[php]">
'CDbConnection',
'connectionString'=&gt;'mysql:host=localhost;dbname=mysql',
//'connectionString'=&gt;'pgsql:host=localhost;port=5432;dbname=mysql',
'username' =&gt; 'root',
'password' =&gt; '',
);
?&gt;
</pre>
<p>routes.php</p>
<pre class="brush:[php]">
'path', // path or get
'urlSuffix' =&gt; '', //.html .whateverextentionyouwant
'showScriptName' =&gt; true,
'rules'=&gt;array(
'users/recovery/perimeterSecurity/'=&gt;'users/recovery/perimeterSecurity',
),
);
?&gt;
</pre>
<p>param.php</p>
<pre class="brush:[php]">//nothing in it at the moment</pre>
]]></content:encoded>
			<wfw:commentRss>http://webscriptz.be/2009/12/20/yii-framework-configuration/253/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Register &amp; Yii projects</title>
		<link>http://webscriptz.be/2009/09/24/register-yii-projects/244</link>
		<comments>http://webscriptz.be/2009/09/24/register-yii-projects/244#comments</comments>
		<pubDate>Thu, 24 Sep 2009 22:09:19 +0000</pubDate>
		<dc:creator>webscriptz</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[myself and me]]></category>
		<category><![CDATA[AR]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[me]]></category>
		<category><![CDATA[php5]]></category>
		<category><![CDATA[project]]></category>
		<category><![CDATA[RBAC]]></category>
		<category><![CDATA[register]]></category>
		<category><![CDATA[yii]]></category>

		<guid isPermaLink="false">http://webscriptz.be/?p=244</guid>
		<description><![CDATA[So, I think ti&#8217;s time for some updates on the website. I has been a bit wild the last 3 weeks. School has started yet again and I had a project to finish not to mention that i&#8217;m starting to see through the Yii framework structure. I&#8217;ve been writing diagrams for different project that I [...]]]></description>
			<content:encoded><![CDATA[<p>So, I think ti&#8217;s time for some updates on the website.</p>
<p>I has been a bit wild the last 3 weeks. School has started yet again and I had a project to finish not to mention that i&#8217;m starting to see through the Yii framework structure. I&#8217;ve been writing diagrams for different project that I have in my head too and that takes a lot of time. Besides figuring out how I want the database to be and my database system had schifted, alto mysql is the favorite, a friend encouraged that i take a look to postgresql. Yii has given me a hard time to basically because it&#8217;s been a bit of a struggle to change coding methodes in function of Yii and then I don&#8217;t start talking about the RBAC system it has build-in. It took every neuron to understand everything form begin to end. Models was also something, Yii has two model types and the active records model is something to understand, I was a bit lost at how I would have to write my own AR functions but thanks to the forums I got that figured out too. All in all everything is good at the moment.</p>
<p>I&#8217;ll be uploading some pictures of the system I wrote recently so you can get some sneaky peaks at it but unfortunately it won&#8217;t be open source system.</p>
]]></content:encoded>
			<wfw:commentRss>http://webscriptz.be/2009/09/24/register-yii-projects/244/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP app installer</title>
		<link>http://webscriptz.be/2009/02/09/php-app-installer/210</link>
		<comments>http://webscriptz.be/2009/02/09/php-app-installer/210#comments</comments>
		<pubDate>Mon, 09 Feb 2009 22:41:55 +0000</pubDate>
		<dc:creator>webscriptz</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[ideas]]></category>
		<category><![CDATA[installer]]></category>
		<category><![CDATA[ongoing]]></category>
		<category><![CDATA[part of]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[project]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[Webscriptz.be]]></category>

		<guid isPermaLink="false">http://webscriptz.be/?p=210</guid>
		<description><![CDATA[The last 2 to 3 days I&#8217;ve been working on a system that can be easely integrated into any application so that it can install itself on a server. I&#8217;ve added some ideas to suit myself, one is that data is installed to 2 databases. One for the users and one for the data of [...]]]></description>
			<content:encoded><![CDATA[<p>The last 2 to 3 days I&#8217;ve been working on a system that can be easely integrated into any application so that it can install itself on a server. I&#8217;ve added some ideas to suit myself, one is that data is installed to 2 databases. One for the users and one for the data of the users.</p>
<p>Why? Because you can scale a lot easier if parts are in other databases. And it includes some of my projects that I want to start, see Google, users tend to user a website more when they are registerated but what if, like google, I register for Gmail and I can have Google docs with the same account but not the annoying registration? That is what I want to do.</p>
<p>Great and Free? &#8230;..I&#8217;m not yet at that stage</p>
<p>TODO:</p>
<ul>
<li>The things that are left for me to do is basically that I scale everything more</li>
<li>Maybe port to smarty all the vars and everything</li>
<li>Maybe make a installer creator script for the people who want to implement my script.</li>
<li>Do something to the mysql files</li>
<li>Make more comments in the code</li>
<li>Document the script</li>
<li>&#8230;</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://webscriptz.be/2009/02/09/php-app-installer/210/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
