Yii tutorial
I.
installing yii
* nadiscuss na to ni sir Mique …..di ko na ididiscuss
——–
II. setting up your folder using cmd
1.set path=c:\wamp\bin\php\php5.2.9-2 //hanapin mu kung saan ang ung php.exe at iset mu as path
2. cd\wamp\www\yeah\framework // balik ka sa framework ng yii
3. yiic webapp c:\wamp\www\blog // enter this command to create your application folder
4. press y
—
setting up database and creating a model
1edit protected/config/main.php uncomment mysql using notepad ++
2.create testdrive database in phpadmin
4. import mu ung mysql sa protected/data
5. run cmd
6.set path=c:\wamp\bin\php\php5.2.9-2
7.cd\wamp\www\blog\protected //punta ka sa protected
8.yiic shell c:\wamp\blog\index.php //type mu yan
9.model User tbl_user// ang model ay class, etong command nato eh gagawa ng model para sa table na user sa loob ng magagawang model makikita ung accessible variables
10.crud User//type mu yan–> gagawa ng create read,update delete na feature sa site para sa user table
11.http://localhost/blog2/index.php?r=user ->>itype nyo sa browser , diba pede ng magedit , update ,delete na ng user un ang crud…
—
reference:Building a Blog System using Yii by Qiang Xue
au
last saturday we had our christmas party exclusive with our friends, we play , we swim and we eat and we had a lot of fun, after 7 hours of having fun , we give our gift to each other and i excitedly open my gift… and i receive a very wonderful cap..and naruto action figures hehe i realy like it hahahahahah
Q1. “can you describe an action that is legal but ethically wrong?”
A: there are alot of person ’s action that are considered legal but ethically wrong .An example of these are the traditions, practices cultures from our nation and other countries like the “Hara-kiri” of Japan ,the ritual of sucide. This tradition of Japanese is legal to them but commiting a suicide is morally wrong, thus unethical.
Euthanasia is another action that is legal but ethically wrong. Euthanasia is a practice of ending a life of a person in a painless manner who is suffering from terminal painful disease or in a vegetative stated. Terminating the life of the patient is taken either by the doctor or the relatives of the patient is considered legal but it is ethical since this is equivalent to killing a person. Killing a person is an immoral act.
Q2. is every ethical action legal?
A: Not all ethical actions are legal. A concrete example for this is adopting a child without undergoing the legal process or court proceedings. A mother who can not afford to support her child to have a decent life consented to have her child adopted by foster parents who are willing to look after the child and considered as their own. This act is considered ethical since the foster parents are saving the child from the deprivation of the basic needs in life. However, this is illegal since this is not rightful process of child adoption under the law.
Q3.Is law not ethics the only guide that only bus. managers need to consider?
A: Both Law and ethics are the guides needed by business managers because the absences of one of them will lead to destruction of a business. For example you practice ethics but not following the law, The goverment may close your business for not following there terms and conditions. In another way around where you practice law but not ethics, In this situation your business integrity and reputation is at risked because your customer may not trust you anymore because your doing immoral things.
Q4.Is it possible for an employee to be successful in the workplace without acting ethically?
A: it is possible for the employee to be successful without acting ethically.For example the politicians, many of the them are very successful in their political career because they doing some unethical things such as using the money of their constituents, using money to kill their enemies, they practice crab mentality in order to advance with their career.
This is the first post I’m going to put in my blog, there is nothing yet special to be found on my blog cause i just started a while back and right now I’m busy changing some of design …ha! I finished doing my not so beautiful banner ,but to me it seems to be good. ehhh… the shikamaru and the moon that i put in the banner are not originally mine i just put them together using photoshop and do some editing I hope the original owners will not get mad ^__^. that alls
ps
I hope the reader will enjoy my future posts