qatechnotes.blogspot.com
My Tech Notes: Yii Active Records
http://qatechnotes.blogspot.com/2013/06/yii-active-records.html
Sunday, June 30, 2013. Assuming we have a database table with ID, title, content, category id and user id as a field. Example of what Yii Active record can return. Model = Post: model()- find('id = 1');. Echo $model- title;. Model = Post: model()- find('category id = 2 AND user id = 1');. Echo $model- title;. Alternatively you can use Yii Active record find by attributes. Model = Post: model()- findByAttributes(array(. Category id' = 2,. User id' = 1,. Echo $model- title;. Or you can use findByPk.
qatechnotes.blogspot.com
My Tech Notes: Yii Require Once Error Cpanel
http://qatechnotes.blogspot.com/2013/07/yii-require-once-error-cpanel.html
Monday, July 1, 2013. Yii Require Once Error Cpanel. I tried to install Yii the first time on my cpanel hosting. However, when I try to launch my website I got the following errors:. Warning: require once(/home/user name/public html/yii/demos/your app/././YII/framework/yii.php) [function.require-once]: failed to open stream: No such file or directory in /home/user name/public html/yii/demos/your app/index.php on line 12. However, when I try the Yii demo apps like hangman, it works. Yii Require Once Error...
qatechnotes.blogspot.com
My Tech Notes: May 2013
http://qatechnotes.blogspot.com/2013_05_01_archive.html
Friday, May 31, 2013. PHP error - It is not safe to rely on the system's timezone settings. To fix the bellow error:. 1 Find you php.ini files. 2 to see your php.ini files- you need to pass in the INFO GENERAL parameters as without the parameters you will get the same error as phpinfo() will trigger the timezone issue settings. 3 Edit your php.ini files and go to. Defines the default timezone used by the date functions ; http:/ php.net/date.timezone ;date.timezone =. Ps: don't forget to delete the ";".
qatechnotes.blogspot.com
My Tech Notes: Jenkins fecthing upstream git changes take forever
http://qatechnotes.blogspot.com/2013/07/jenkins-fecthing-upstream-git-changes.html
Friday, July 5, 2013. Jenkins fecthing upstream git changes take forever. Started by user anonymous. Building remotely on Windows Server 2003. In workspace c: jenkins workspace your app Checkout:your app / c: jenkins workspace your app - hudson.remoting.Channel@4296f09:Windows Server 2003 Using strategy: Default Last Built Revision: Revision 9dc0a0401d62dd02f41a85ce00450d23ca85114f (origin/master) Fetching changes from 1 remote Git repository Fetching upstream changes from origin. It just never ends.
qatechnotes.blogspot.com
My Tech Notes: August 2012
http://qatechnotes.blogspot.com/2012_08_01_archive.html
Saturday, August 25, 2012. PHP Parse error: syntax error, unexpected '=' in. I recently get the following error in PHP:. Syntax error, unexpected '=' in . line 109. Apparently it is because I created a variable with "-" in it. To resolve the issue, I rename the variable from "$cart-content" to "$cart content". PHP iterating all cookies. To iterate all of the cookies that have been set in PHP:. Foreach ($ COOKIE as $cookie name = $cookie value). Echo "$cookie name with value $cookie value";.
qatechnotes.blogspot.com
My Tech Notes: January 2013
http://qatechnotes.blogspot.com/2013_01_01_archive.html
Tuesday, January 22, 2013. How to remove custom Alexa toolbar from Chrome extension completely. I created a custom free Alexa toolbar and installed it as an extension on my Chrome. So whenever I open my chrome, the custom alexa extension appears as another menu on chrome. However, the extension apparently makes my browser test automation to fail. I remove the extension manually from the chrome setting. I thought the extension is removed completely. Subscribe to: Posts (Atom).
qatechnotes.blogspot.com
My Tech Notes: July 2013
http://qatechnotes.blogspot.com/2013_07_01_archive.html
Monday, July 8, 2013. Alias "{alias}" is invalid. Make sure it points to an existing PHP file and the file is readable. The following error occur on my Yii web app. Alias "ext.dropdown.DropDownBox" is not valid. Make sure it points to an existing PHP file and the file is readable. I have checked that all of the permission is readable. This error only occurs in production and not in our test environment (mac and windows). It turns out that our prod environment is using Centos and in my code I call. Labels...
qatechnotes.blogspot.com
My Tech Notes: June 2013
http://qatechnotes.blogspot.com/2013_06_01_archive.html
Sunday, June 30, 2013. Assuming we have a database table with ID, title, content, category id and user id as a field. Example of what Yii Active record can return. Model = Post: model()- find('id = 1');. Echo $model- title;. Model = Post: model()- find('category id = 2 AND user id = 1');. Echo $model- title;. Alternatively you can use Yii Active record find by attributes. Model = Post: model()- findByAttributes(array(. Category id' = 2,. User id' = 1,. Echo $model- title;. Or you can use findByPk. 1 Down...
qatechnotes.blogspot.com
My Tech Notes: How to enable Gii Tools In YII
http://qatechnotes.blogspot.com/2013/06/how-to-enable-gii-tools-in-yii.html
Sunday, June 30, 2013. How to enable Gii Tools In YII. Setting GII Tools in YII. 1 Open your app/protected/config/main.php. 2 uncomment the following th enable the Gii tool. Class'= 'system.gii.GiiModule',. Password'= 'Enter Your Password Here',. If removed, Gii defaults to localhost only. Edit carefully to taste. IpFilters'= array('127.0.0.1',': 1'),. 3 The UrlManager code needs to be uncommented as well. Controller: w / id: d '= ' controller /view',. Controller: w / action: w '= ' controller / action ',.
SOCIAL ENGAGEMENT