Wiki

Sorted by ratingX
Displaying 291-300 of 777 result(s).

How to setup RBAC with a php file

Created 6 years ago by bettorHow-tos17 comments – viewed 62,312 times – ( +26 / -5 ) – version 1.1
In this cookbook I will attempt to explain how to use the lightweight version of Role-Based Access Control using a php file. This version does not use database but a php file and is controlled by CPhpAuthManager class.

Force a User to Change Their Password (ChangePasswordFilter)

Created 4 years ago by waterloomattTutorials2 comments – viewed 17,578 times – ( +16 / -2 ) – version 1.1
Sometimes you need to force a user to change their password after x number of days. This article describes how to implement this using a filter, ChangePasswordFilter.

Updating fields on a form with Ajax and Json

Created 5 years ago by Russell EnglandHow-tos4 comments – viewed 54,358 times – ( +12 / -1 ) – version 1.1
I'm developing a website that has an option to look up a car's registration number via SOAP and return additional details such as make, model, colour etc.

Avoiding duplicate script download when using CActiveForm on Ajax calls

Created 4 years ago by Antonio RamirezTutorials2 comments – viewed 18,816 times – ( +12 / -1 ) – version 1.1
Sometimes the active form we wish to use to edit/add a new element on our database is too small and we believe that is much better to use an AJAX'ed dialog/slide form rather than reloading the page to just display one or two fields.

Multiple Databases and Multiple Domains

Created 6 years ago by got 2 doodleTutorials2 comments – viewed 38,225 times – ( +15 / -2 ) – version 1.1
Add these lines in /config/main.php
tags: database

Model password confirmation field.

Created 4 years ago by twisted1919How-tos10 comments – viewed 67,568 times – ( +11 / -1 ) – version 1.1
I had some troubles with the password confirmation field for when adding updating user records, so i thought that i should share the way i got it working.

Mantis Manager: An Asset Manager that minifies, combines, and publishes

Created 3 years ago by aarondfrancisTutorials1 comment – viewed 5,765 times – ( +7 )
Hello everybody.
tags: heroku, assets

TDD with PHPUnit_Story and Yii

Created 4 years ago by sidewinderTutorials1 comment – viewed 16,905 times – ( +7 ) – version 1.1
Unfortunately Sebastian Bergmann decided to remove PHPUnit_Story from future PHPUnit versions. Thanks to elvan for pointing me to the relevant comment. As an alternative Behat has been suggested but it seems too bloated for me TBH. There is also PHPSpec but it's non flexible enough for me and tightly bound with English language (What's the purpose of using DSL if customers can't speak English). Since both frameworks are quite young I think I'll just stick to PHPUnit and see what's going on on the BDD frameworks arena. Even PHPUnit_Story parts of this entry are going to be deprecated soon, rest is still valid! When doing TDD, please write tests with design and behaviour of application in mind instead of testing single functions.

Functional Testing in Yii using Goutte and PHPUnit

Created 4 years ago by puteraTutorials2 comments – viewed 21,155 times – ( +7 ) – version 1.1
Functional Testing in Yii using Goutte and PHPUnit

Running applications with Docker

Created about a year ago by schmunkTutorials1 comment – viewed 13,455 times – ( +7 ) – version 2.0
When building PHP web applications you usually have to take care about defining and providing a consistent development and production environment for your team. This includes your application packages, PHP-extensions, database servers and often further components such as a mail server or workers.