Blog

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc ex sem, facilisis sed viverra nec, sagittis vel quam nulla nisi mi scelerisque quis.

Starting with Yii2

So, if you're anything like me, a busy independent developer, research and training projects always get pushed down to the bottom of that oh-so long list of things to do! So this is the start of a series of posts introducing Yii2 and helping you to get up to speed...

Yii CreatUrl not returning the full URL

You just can't seem to get the URL that you expect and all the forums say just call createUrl and it'll do everything for you! Na-ugh! Wrong!  It's returning just the action - or the controller/action but not the module. First First check your UrlManager rules...

Using UTF-8 and libXML

As you can guess from the title, this is not a really a Yii based article.  Recently, I spent a few frustrating hours trying to get some data loaded through libXML using simplexml_load_string with various odd parsing errors like: It's not...

Cook your own User Authentication in Yii – Part 4

I know it's been a long break since the previous articles,but a t last, here is the final article in the Series "Cook your own User Authentication in Yii". Previously We already have a fully working User Authentication system.  A user can signup,...

Cook your own User Authentication in Yii – Part 3

This is the last but one in a series of 4 tutorials demonstrating how to implement a simple role based user administration system in Yii.   The first two parts can be found here;  user authentication - part 1 and user authentication - part 2 Previously We've update...

Cook your own User Authentication in Yii – Part 2

In Cook your own User Authentication in Yii – Part 1 , we saw how to over-ride the CUserIdentity class to implement our own user validation against a database table. In this tutorial, we will see how to use the CWebUser class to load the user details into the user's...

Cook your own User Authentication in Yii – Part 1

This is the first of  four articles demonstrating how to build your own simple User Authentication system by extending core Yii classes and just a few views. There are a number of Extensions, Modules and RBAC systems available in the Yii extensions directory and, of...

Yii – Maintaining created and updated date

A very simple way to maintain date-time stamps on records is to use the behaviors method in the data Model, linked with the CTimestampbehavior within Zii widgets. To implement this, in each of your data models, use a behaviors function as follows:- ...

Yii – Converting MySql dates to locale dates

It seems strange to me that two systems that have been around for so long and worked so closely together, do not manipulate dates in the same way. It is also so easy to waste hours of time trying to manipulate dates, check that date A is less than date B and so on......

Subscribe