Re: What's the best way to get Twitter Bootstrap into Cake?

2012-12-16 Thread SpazzyV
I would say the best plugin I have used by far is http://plugins.cakephp.org/package/slywalker/TwitterBootstrap. We are actually using it at our development shop, and have that it handles overriding the bake skeletons, and extending all of the core html, form, and pagination classes. You still

Re: What's the best way to get Twitter Bootstrap into Cake?

2012-12-16 Thread Greg Skerman
1) throw out the default cake css file...you wont need it 2) load up the twitter bootstrap CSS files 3) modify the layout and the views to comply with twitter bootstrap's way of doing things. There are a number of things which help you out with respect to this. Here are a couple which spring to mi

Re: CakePHP executes select before update

2012-12-16 Thread Reuben
Have posted all the code that is getting run? You initially assign an instance of the model to $model, and then you use $myModel in the loop. Something smells a bit fishy, and I dont think you have included all of the code from your controller. On Saturday, 15 December 2012 01:53:04 UTC+10, vit

Re: Difference between Blocks and templates

2012-12-16 Thread Reuben
First, we should probably start by using the terminology that is used by CakePHP. We have layouts, views, elements and blocks. Layouts, views and elements all use CakePHP templates, as denoted by the extension "ctp". As a result, blocks complement templates, whether it be layouts, views or el

Need some HABTM help retrieving related posts

2012-12-16 Thread MetZ
Okei, so I have a HABTM setup: - posts - tags - posts_tags When creating posts => select multiple tags: example: Tag1, Tag2, Tag3 Each selected tag is saved to posts_tags: id:1, post_id: 44, tag_id: 3 (and so on). Now, displaying my posts, and listing the selected tags, is no problem. Everyth

Choosing the Right Abstraction

2012-12-16 Thread Patrick Leahy
If abstractions are the greatest tool to reduce complexity in a system, then the primary task of the competent programmer is to choose the right abstraction. In the same way that one may define an arbitrarily complex fractal with

Re: concerns regarding arrays in urls

2012-12-16 Thread euromark
any comments here? :) how would you handle it? or do you just let php throw errors and notices here for your log files? Am Montag, 10. Dezember 2012 16:26:16 UTC+1 schrieb euromark: > > By accident and looking at the error logs I found something that concerns > me. > Currently sth like this is

Re: Using database session in the filemanager

2012-12-16 Thread mebibyte
Hey Reuben Thanx for your reply. I'm certainly going to try out your article. Op zaterdag 8 december 2012 13:16:17 UTC+1 schreef mebibyte het volgende: > > Hey > > I'm using the simogeo filemanager and I want to check if the user is > authorized to acces the filemanager. > When I use the php se