Unauthorized Cake PHP Guide
Today I found a tweet of an unauthorized cakephp guide, which turnred out to be a wiki with usefull cakephp information.
Site : Unauthorized cake guide
The official CakePHP ( aka the cakephp book ) can be found over here
Cakephp and ACL – how to work with users and groups
Today my webdevelopment collegue Eelco pointed me at an interesting article at the site komunitasweb. The tutorial explains how to work with ACL and how ACL is implemented in CakePHP.
Definitely a must read if you write webapplications in cakephp which need user or group based restrictions
http://komunitasweb.com/2009/03/cakephp-acl-tutorial-what-and-how/
A call for cakephp favourite links
Hi Y'all.
I want to make a special part on my blog, containing your favourite and best links regarding cakephp.
If you feel, you got that perfect, ideal link to a blog, pdf or site please feel free to use the comments form!
I'll start of with a few...
- http://www.cakephp.org/ - Cakephp Home
- http://webexpose.org/2007/05/09/cakephp-routes/ - Cake routes explained easily
- http://www.pagebakers.nl/ - blog of a developer with great cakephp plugins and components!
- http://book.cakephp.org/ - The Cakephp Book
- http://bakery.cakephp.org/ - The Bakery - Everything Cakephp related
- http://cakeforge.org/ - Cakeforge, the place where all happy cakephp projects go!
Cakephp : JsController could not be found
Today I was figuring out how to build an ajax login, but got this very strange error "JsController could not be found". After a couple of hours searching I noticed that I did not had copied all the javascript files that I needed to the webroot/js folder.
No rss feed for cakephp changelog?
This morning I searched for a possibility for a rss feed that shows the changelog of cakephp.
Unfortunately, untill now I haven't found anything...
To be continued...
Yes people actually there is (thanks to Max Westen) :
https://trac.cakephp.org/timeline?changeset=on&max=50&daysback=90&format=rss
Undefined variable: javascript in cakePHP with scriptaculous
This weekend I was trying to get scriptaculous work with cakephp. Unfortunately I did always end up with the same error:
[code]Undefined variable: Javascript[/code]
After a couple of hours searching I found the following things can cause this problem:
- You do not have the html, javascript and ajax helper defined in your own controller (eg. user_controller.php)[php]var $helpers = array('Html','Javascript','Ajax'); [/php]
- Your render action points to a view where no view file is existing for. ( so the view file HAS to be created![php]$this->render('the_method','ajax'); [/php]
Hope it helps somebody who is experiencing the same problem I had.
PHP Syntax highlighting for cakePHP files
Als je gebruik maakt van PHPEclipse voor het editen van je cakephp bestanden, zul je vast wel opgemerkt hebben dat deze niet om kan gaan met de cakePHP template ( thtml ) bestanden. Omdat het misschien wel zo handig is om een beetje syntax highlighting te krijgen kun je daarom het volgende doen:
- Start Eclipse (duh
) - ga naar 'Window' en kies voor 'Preferences'
- Kies onder 'General' voor 'Content Types'
- Klik op het pijltje voor 'Text'
- Klik op 'PHP Source File'
- Aan de rechterkant staat een knop 'Add', klik hier op.
- en voer in het invoervak *.thtml in en klik op 'Ok'
Mocht dit nog niet lukken dan kun je ook de thtml extenise toevoegen aan de optie 'General' > 'Editors' > 'File Association'
Ruby on Rails or PHP?
De hype van Ruby on Rails begint ook in Nederland op te komen. Met het MVC model wordt volgens menigeen verwacht dat Ruby on Rails een geduchte concurrent van PHP gaat worden. Nu is er echter in de vorm van CakePHP ook een PHP implementatie van het RAD ( Rapid Application Development ) aanwezig (voor php dus).
Wil je hier meer over weten/lezen dan moet je vooral de huidige editie ( issue 07.2006 ) van Internation PHP Magazine kopen via : http://www.php-mag.net
Voor een link naar CakePHP klik hier
Tip: Volg vooral even de screencasts welke beschikbaar zijn op de site van CakePHP.