Self note Using index: Or select by value:
Category: Website Development
Yii overwrite accessRules in base class
Suppose you defined a base class Controller with basic accessRules and you want to add (overwrite) rules in derived class, using array_merge here how you do it: As best practice your base class default access rule is deny all by default.
Play!
Out of my boredom I usually tune in some random Khmer Oldies Songs just to remind myself the glorious era where sound of the music would flew into the deepest of my heart and cheer me up. What I did in the pass was collect all my favorite songs and classified it manually and sometime after … Continue reading Play!
.NET developer survive on linux
I've been joking with my friends "the open source fan boyz" that I am a Microsoft slave for the fact that I am a dedicated .NET developer. But for all the joke I found some competitive disadvantage for me moving forward. If customer is looking for a low cost solution .NET is not the way to … Continue reading .NET developer survive on linux
Mocking ASP.NET MVC 2 Context & Session using RhinoMock
Watching video record from #mvcconf about "Making ASP.NET Apps Testable" by Eric B. Sowell. He showing how to test ASP.NET MVC Session make me wonder how difficult it is for RhinoMock so I load sample app and here how I test it. Since and the action: So, what you think? it just fine to love … Continue reading Mocking ASP.NET MVC 2 Context & Session using RhinoMock
Storm the Castle in Action
felt bore today and decided to tune into studio and record some stuff :D hope you enjoy it. I know, I know the quality is bad but I don't know I am not do much with youtube so it the luck I get :) BUT as always orginal video can be download here. Source code: … Continue reading Storm the Castle in Action
PHP date diff
I call out for an excuse for not practicing PHP enough recent year; with just a simple date_diff could knock me out :) not to open my complain of having different version of PHP to check before using a function(s) I got a request from a friend to help workout how many days from two … Continue reading PHP date diff
Rhino-Tools a smarter Guard
When Ayende typed Guard.Against(condition, error_message) it clicked in my brain. I thought wow that was nice and easy to use what it does was check if the condition is true it will throw and exception with error message specify. I had an idea using this litle beast for business validation, since it doesn't required any … Continue reading Rhino-Tools a smarter Guard
Brail Daily Use Macros #2
Imagine you had to associate multiple skill to your "Profile" Suppose we have the following Profile & Skill class Assume that we know how to apply AR attribute on these two class make it persist able to a database. The important thing is Profile has many Skills that all you have to concentrate on right … Continue reading Brail Daily Use Macros #2
Life without Firefug
I shouldn't complain about this since I accept the fact to run on Windows 7 beta build. I wouldn't get support from third party software just as fast as I want. But I believe eventually thing will get back on track. However I am suck at the movement I wonder if it was just me … Continue reading Life without Firefug