Re: Habtm maddness

2010-08-09 Thread bartez
this is the sql: SELECT DISTINCT tags.title FROM tags INNER JOIN pages_tags ON pages_tags.tags_id = tags.id WHERE pages_tags.pages_id IN ( SELECT pages.id FROM pages INNER JOIN pages_tags ON pages_tags.pages_id = pages.id INNER JOIN tags ON tags.id = pages_tags.tags_id Check out the new CakePHP

Habtm maddness

2010-08-09 Thread bartez
Hey! Ok i have pages which have and belong to many tags. I do not want to use categories so i'm using tags instead. For example, i'm tagging a page with help, development, design or article, development, peace When i load the page /views/article, i would like to load all the tags that belong to

Blank screen with errors set to 2

2008-12-04 Thread bartez
Hey all, I am having issues with blank screens even with debug set to 2. localhost/admin works but / does not. Before I post any code, has anyone come across this problem before? Many thanks Alex --~--~-~--~~~---~--~~ You received this message because you are s

Re: Sending config options to fckconfig.js in fckeditor

2008-10-23 Thread bartez
Can anyone help pleeease?? Thanks, alex --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [

Re: Sending config options to fckconfig.js in fckeditor

2008-10-17 Thread bartez
Anyone got any ideas? Cheers Alex --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL

Sending config options to fckconfig.js in fckeditor

2008-10-16 Thread bartez
Hey all, I've set up FCKeditor using the following code in my helper: webroot . 'js' . $jsDS . 'fckeditor' . $jsDS; $skinDir = $js . 'editor' . $jsDS . 'skins' . $jsDS; $templateDir = $skinDir . (is_dir( $skinDir . $template ) ? $template : 'default') . $jsDS; $code = "

Re: javascipt onclick in $html->image

2008-09-30 Thread bartez
Panic over answer is: 'onclick'=>'open_win('. $id .')' cheers a --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from

javascipt onclick in $html->image

2008-09-30 Thread bartez
hey all, This is really bugging me and i'm sure it's something that i'm not doing. my code is: $id = $module['Module']['id']; echo $form->input($module['Module']['refer_name'], array(

Re: Saving to multiple tables from one form

2008-09-18 Thread bartez
tbudzins, Have a look at this section here: http://book.cakephp.org/view/84/Saving-Related-Model-Data-hasOne-hasMany-belongsTo If for example, if the address belongs to username and password then save the parent first. good luck a --~--~-~--~~~---~--~~ You recei

Image resizing --> point in right direction please :)

2008-09-18 Thread bartez
hey guys, we are coming across the problem of users insisting on uploading 2000 x 2000px images onto our system and regardless of how amuzing it is to see your computer screen being eaten by a oversized product image, it is very annoying. We need to create a way of automatically resize (both dim

Mail server

2008-09-09 Thread bartez
Hey all, Anyone know anything about integrating email onto a server, as in send AND receive mail using smtp and POP3? cheers alex --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this gr

mail

2008-09-05 Thread bartez
Hello, I'm having issues with mail() in cake. I'm working on a localhost so i wasn't actually expecting the emails to work (not using simplemail) but they did! But now they are not working again. I haven't touched anything and occasionally one email will go through. For a period, i was sending

Re: File upload

2008-08-20 Thread bartez
estination' > => 'yourpath')); > > you can construct the path from variables available to your > controller. > > On 19 Aug., 22:18, bartez <[EMAIL PROTECTED]> wrote: > > > Hey all, > > > I've scouted both here and the bakery etc

File upload

2008-08-19 Thread bartez
Hey all, I've scouted both here and the bakery etc and have had no success in finding the answer to my problem. I would like to upload an image and save it in a file system (not a database). I would like the structure to be as follows img / items / groups /id

Re: Question on scaffolding and MS SQL Server

2006-08-09 Thread Santo Bartez
Well, I just ignored that little issue and I created a new controller and model to point it at the point of this whole exercise: a series of "legacy" tables. Again connecting to the tables was a snap, and pulling some data from it was pretty straightforward, but I'm stuck again. Maybe this will b

Question on scaffolding and MS SQL Server

2006-08-09 Thread Santo Bartez
I've managed to installed CakePHP (1.1.7.3363) on Windows 2000, SQL Server 2000, and IIS (w/ISAPI_Rewrite). I've followed the tutorial located here grahambird.co.uk/cake/tutorials/scaffolding.php. I can list and insert and edit entries into the bookmarks with one exception. The created/modified d