Yesterday I had a very frustrating issue implementing CKEditor (an awesome open-source WYSIWYG editor) in a CakePHP 2.3.2 installation. I thought the issue had something to do with CakePHP … ow boy, was I wrong
Yesterday I had a very frustrating issue implementing CKEditor (an awesome open-source WYSIWYG editor) in a CakePHP 2.3.2 installation. I thought the issue had something to do with CakePHP … ow boy, was I wrong
If you want to achieve file upload validation trough your CakePHP model, you can use the following code. For this tutorial I you have a database table with a field ‘pdf_path’ (of course, this can be anything you like).
As partial exams just passed at my work (devine.be), the job of carefully entering grades takes a lot of time. A common workflow is
As I was working I was thinking about how nice it would be if I could just speak to my computer and the grades would be filled in automatically.
For a few private projects the last couple of months I needed to implement a login system before the user could see the actual content.
It seemed like there were quite a few patterns people were using on how to implement such a system. The easiest way to go (imho
) is by creating a UIViewController which will serve the protected content and add it as the root view controller of your project. In that UIViewController you can then add a modal view controller which will present the login view. Continue reading
When you work with custom fonts in your IOS projects, you’ll need to find out the correct name for your font.
You can do this by looping though all the font families and then use the font family name to loop through all the fonts that belong to the family.
The following function will take care of this and return you a nice list ordered per font family.
|
1 2 3 4 5 6 7 8 9 10 11 |
- (void)enumerateFonts { NSLog(@"--Start enumerating font--"); for (NSString *fontFamilyStrings in [UIFont familyNames]) { NSLog(@"Font family: %@", fontFamilyStrings); for (NSString *fontStrings in [UIFont fontNamesForFamilyName:fontFamilyStrings]) { NSLog(@"-- Font: %@", fontStrings); } } NSLog(@"--End enumerating font--"); } |
I’ve also created a gist on github You can find it right here.
For those in need, I’ve created a SQL dump with all the cities of Belgium linked to their provinces in two tables (cities & provinces). Most SQL dumps have all the Belgian cities and provinces stored in one table which is not always very convenient.
Thanks to @anthonyvanoyen and @jverdeyen for pointing me to some start files.
You can find the dump on my Github account.
Today I’ll show you how you can use cakePHP layout files and elements. This way you can easily create different layouts for your pages and with elements you can write efficient code instead of copy/pasting the same code over and over again.
In this tutorial I will show you the power of associations in cakePHP. With associations you can link up your models and get related data when you fetch results from one model.
In this example I’ll show you how to create an association between a User and a Product.
Since OSX 10.7 Apple has decided to hide the ~/Library folder from your users directory. When you are using the iPhone Simulator or other development applications, you spend a fair amount navigating around in the Library. So if you are tired of using command+shift+G all the time, you can easily unhide the Library folder forever and ever, without showing all the hidden files on your system!