Welcome To Snipplr


Everyone's Recent Snippets Tagged cakephp



3 2389 posted 16 years ago by damanlovett
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 1506 posted 16 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 1942 posted 16 years ago by richt
2 1790 posted 16 years ago by kwanhon
this is all the actions needed for auth and the users login/register system
0 1430 posted 16 years ago by sevennbsp
this is the entire app_controller code with auth setup and use in it.
0 1406 posted 16 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 1774 posted 16 years ago by TioSolid
1 1884 posted 16 years ago by gerhardsletten
2 4002 posted 16 years ago by jmiller
PHP code is CakePHP style, replace with regular html
4 3576 posted 16 years ago by gerhardsletten
This works fine, except that it repeats a lot of code
0 1372 posted 16 years ago by squarepegsys
0 1729 posted 17 years ago by jpsirois
1 2097 posted 17 years ago by jpsirois
3 2308 posted 17 years ago by jpsirois
0 1572 posted 17 years ago by benjaminpearson
2 1976 posted 17 years ago by sveggiani