- http://example.com/terms-and-conditions (english)
- http://example.com/impressum (german)
- http://example.com/mentions-legales (french)
hello guys now i am going to show you how to Reuse File Upload Code across multiple projects.
I needed all messages with their translation into javascript. This is my solution:
To secure your database from inconsistencies resulting from failing (complex) operations, you (should) use transactions. However, complex methods often rely on other complex methods that themselves build on transactions. This HowTo presents a method to nest or embed transactions without relying on the database's nesting capabilities.
In order to get your Yii logs into Heroku's logs, you have to work a little bit of magic. You'll need to modify the boot.sh script and add the following two lines: ~~~ touch /app/apache/logs/app_log tail -F /app/apache/logs/app_log & ~~~ This will set up the log and tail it so that when you request "heroku logs", this log is included.
To replace the application component 'format', which is registered by CApplication by default, you can put this in your application 'components' config:
I recently built a tarpit for bad bots.
In some cases, we have to limit the number of page views for the guests users. Yii provide an efficient method to get this.
This wiki shows how to get the geolocation info of the client using another server API It could be write also as extension but there are a lots of APIs that change the below code So, I wrote the below code that works for one of them (using www.geoplugin.net)
My CMS supports multiple sites using one code base therefore the db connection can only be configured by detecting the site's domain.
Once you have installed and configured the rights extension in your application, you can change the table name from 'User' to any table name you want and similarly for 'username' column to any other column name.