<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://tech.snathan.org/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://tech.snathan.org/feed.php">
        <title>Senthil&#039;s Tech Wiki/Blog - tech:yii2</title>
        <description></description>
        <link>https://tech.snathan.org/</link>
        <image rdf:resource="https://tech.snathan.org/_media/wiki/dokuwiki.svg" />
       <dc:date>2026-04-29T07:26:58+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://tech.snathan.org/tech/yii2/console_application?rev=1626780490&amp;do=diff"/>
                <rdf:li rdf:resource="https://tech.snathan.org/tech/yii2/crud?rev=1416064423&amp;do=diff"/>
                <rdf:li rdf:resource="https://tech.snathan.org/tech/yii2/mail_setup?rev=1646396931&amp;do=diff"/>
                <rdf:li rdf:resource="https://tech.snathan.org/tech/yii2/setup_alt?rev=1416064423&amp;do=diff"/>
                <rdf:li rdf:resource="https://tech.snathan.org/tech/yii2/setup?rev=1416064423&amp;do=diff"/>
                <rdf:li rdf:resource="https://tech.snathan.org/tech/yii2/yii2_main?rev=1626694059&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://tech.snathan.org/_media/wiki/dokuwiki.svg">
        <title>Senthil's Tech Wiki/Blog</title>
        <link>https://tech.snathan.org/</link>
        <url>https://tech.snathan.org/_media/wiki/dokuwiki.svg</url>
    </image>
    <item rdf:about="https://tech.snathan.org/tech/yii2/console_application?rev=1626780490&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-07-20T11:28:10+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>console_application</title>
        <link>https://tech.snathan.org/tech/yii2/console_application?rev=1626780490&amp;do=diff</link>
        <description>Console Application Example in Yii2

&lt;note&gt;This is based on Yii2 Advanced Application template&lt;/note&gt;

Related info

The console/config/main.php config file has the line &#039;controllerNamespace&#039; =&gt; &#039;console\controllers&#039; which includes the everything in the</description>
    </item>
    <item rdf:about="https://tech.snathan.org/tech/yii2/crud?rev=1416064423&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2014-11-15T15:13:43+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>crud</title>
        <link>https://tech.snathan.org/tech/yii2/crud?rev=1416064423&amp;do=diff</link>
        <description>Yii2 - gii and CRUDing

Enable gii

You can access gii via &lt;http://somehost/path/to/frontend/web/?r=gii&gt;

However if you are accessing gii from a remote client, you will have to enable that IP address.

The yii2 manual states to add this configuration to frontend/config/main-local.php:


&#039;gii&#039; =&gt; [
    &#039;class&#039; =&gt; &#039;yii\gii\Module&#039;,
    &#039;allowedIPs&#039; =&gt; [&#039;127.0.0.1&#039;, &#039;::1&#039;, &#039;192.168.0.*&#039;, &#039;192.168.178.20&#039;] // adjust this to your needs
],</description>
    </item>
    <item rdf:about="https://tech.snathan.org/tech/yii2/mail_setup?rev=1646396931&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-03-04T12:28:51+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>mail_setup</title>
        <link>https://tech.snathan.org/tech/yii2/mail_setup?rev=1646396931&amp;do=diff</link>
        <description>Yii2 Setting up email

&lt;note&gt;This is based on Yii2 Advanced Application template.&lt;/note&gt;

Configuration (Multiple)

In file common/config/main-local.php set &#039;useFileTransport&#039; =&gt; false from the default of true

Update common/config/main-local.php to include below where two configurations are used.</description>
    </item>
    <item rdf:about="https://tech.snathan.org/tech/yii2/setup_alt?rev=1416064423&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2014-11-15T15:13:43+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>setup_alt</title>
        <link>https://tech.snathan.org/tech/yii2/setup_alt?rev=1416064423&amp;do=diff</link>
        <description>Alternate yii2 setup

Composer setup

Install php5-json as it is required for composer.

As root:


cd /tmp
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin
ln -s /usr/bin/composer.phar /usr/bin/composer


Directory Setup

Choose and create a directory to install yii2. E.g. /data/yii2</description>
    </item>
    <item rdf:about="https://tech.snathan.org/tech/yii2/setup?rev=1416064423&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2014-11-15T15:13:43+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>setup</title>
        <link>https://tech.snathan.org/tech/yii2/setup?rev=1416064423&amp;do=diff</link>
        <description>Yii 2.0 Setup

Composer setup

Install php5-json as it is required for composer.

As root:


cd /tmp
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin
ln -s /usr/bin/composer.phar /usr/bin/composer


Directory Setup

Create the following directories assuming</description>
    </item>
    <item rdf:about="https://tech.snathan.org/tech/yii2/yii2_main?rev=1626694059&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-07-19T11:27:39+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>yii2_main</title>
        <link>https://tech.snathan.org/tech/yii2/yii2_main?rev=1626694059&amp;do=diff</link>
        <description>Yii 2.0 Main Page

	*  Yii 2.0 Setup
	*  Optionally setup Markdown to access .md files in yii
	*  Yii 2.0 CRUDing
	*  Console Application
	*  Setting up mail</description>
    </item>
</rdf:RDF>
