Welcome To Snipplr
Everyone's Recent Snippets Tagged cakephp
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
I needed to create several pages that didn't use any models and contained static data inside the default layout. My first thought was to create a controller for these pages and define an action for each static page I needed. However, this solution se...
0
790
posted 14 years ago by TioSolid
Save the source provided to /app/view/helpers/timezone_select.php
To use the below helper, just put this code into your view:
echo $timezoneSelect->select('timezone', 'Please select your timezone', 'Europe/London');
Also, don't forget to...
1
993
posted 14 years ago by richt
this is all the actions needed for auth and the users login/register system
0
770
posted 15 years ago by sevennbsp
this is the entire app_controller code with auth setup and use in it.
0
756
posted 15 years ago by sevennbsp
Another common use of Auth component variables is to allow access to certain methods without the user being logged in (by default Auth restricts access to every action except the login and logout methods).
0
879
posted 15 years ago by TioSolid