HTML Tidy Component

2011-12-01 Thread Thiago Belem
Folks, I've just finished the HTML Tidy Component, it helps you to sanitize, clean and solve several HTML markup issues automatically. Just include it in your list of components you'll get a clean and valid output. I would like to hear from everyone,

Re: How to remove entries from two tables, from a controller delete() function

2011-12-01 Thread Tilen Majerle
no problem :) -- Lep pozdrav, Tilen Majerle http://majerle.eu 2011/12/2 GG > Wow, CakePhp is legit. Thank you Tilen Majerie. > > On Dec 1, 2:38 pm, Tilen Majerle wrote: > > http://book.cakephp.org/2.0/en/models/associations-linking-models-tog... > > look > > for hasMany association :) > > --

Re: Same Old?

2011-12-01 Thread Larry E. Masters
http://cakedc.com/jobs But please do not apply Why are you looking specifically for CakePHP jobs anyway? If you know PHP look for a PHP position and then discuss using CakePHP as a platform. You may also be surprised at the number of positions in PHP development that will list CakePHP experien

Re: Same Old?

2011-12-01 Thread Dr. Tarique Sani
I have followed your previous rants and people have told you before. You are comparing Apples to Oranges Wordpress & Drupal are CMS which solve a specific problem - people who have used them will want developers who are familiar with *that* particular software. CakePHP does not solve 1 specific pr

Re: Same Old?

2011-12-01 Thread John Hardy
perhaps all the positions are filled. at my company, we use cake. would you want a job working on drupal modules anyway?!? yuk! and wordpress? leave that for the rookies. we build web apps ;) Perhaps you need to search for 'MVC' show your mastery of the meta-pattern and transition everything t

Re: Is this it?

2011-12-01 Thread mark_story
Yes, this is the primary mailing list for the community. There are also other community resources: * http://ask.cakephp.org - Community question and answer site. * http://tv.cakephp.org - Community screencasts and conference videos. * http://bakery.cakephp.org - Community articles and blog. Ther

Open a new tab from the controller

2011-12-01 Thread Anup Kale
Hi, I have a form that outputs a PDF file in a new window. This works fine but now i have to validate the data and once the data is validated then want the output rendered in the new window, otherwise the error message should be displayed in the parent window. Anybody have a solution. I am in tim

Filtering Component - Correct way of filtering results between two dates

2011-12-01 Thread web_rene
I am quite new to CakePHp and the MVC way of thinking. Up to know I was able to create resultsetfiltering by the use of the Filter Component by Nik Chankov. The way I am using it, is to call it in my Controller, saving the condition statement and passing it to the Paginator. Now, I have one co

Selenium Integration Tests with fixtures in CakePHP 2.0

2011-12-01 Thread Anheng
How to do Selenium Integration Tests with fixtures in CakePHP 2.0? I'd like to implement and run Selenium tests on my local testing environment. To put the application in a defined state, I need to use fixtures. How can I do this with CakePHP 2.0? Is there a base class available that somehow exten

Ajax + CakePHP

2011-12-01 Thread NiReiC
Pourquoi est-ce aussi compliqué de faire de l'Ajax avec CakePHP ? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this

Same Old?

2011-12-01 Thread Krissy Masters
Wondering why you look at Krop / Craigslist/ Authentic Jobs no one wants Cake? 1 in 1000 jobs looks for Cake? Wonder why? Cake board with Cake or what ever it is has zero new job offers? Is there a reason? Same as before im going to get banned fron the Cake Board fine, open a new account bec

Re: Installation CakePHP 2.0n on a shared host

2011-12-01 Thread Moritz
I have exactly the same problem. Is there any solution? On 3 Nov., 08:46, berni wrote: > Hello all > > After messing up with the installation of CakePHP 2.0x in > aSharedHostingenvironement, > searching for solutions and playing around with different suggestions, > that did not > appear as a sol

Re: Installation CakePHP 2.0n on a shared host

2011-12-01 Thread Moritz
I have exactly the same problem. Is there any solution? On 3 Nov., 08:46, berni wrote: > Hello all > > After messing up with the installation of CakePHP 2.0x in > aSharedHostingenvironement, > searching for solutions and playing around with different suggestions, > that did not > appear as a sol

How to set uploaded photos size in pixel

2011-12-01 Thread CakePHP
Hi.I use cakephp version:1.2.0.5875 pre-beta I have image hosting and have issue with uploaded image size in PIXEL.When image pixel more 10.000x10.000 this problem for my site.Image can not converted.I want to set limit the uploaded image size.Please help me @@@ http://www.w3.org/ TR/xhtml11/DTD

Re: find('first') - How to limit contained tables results

2011-12-01 Thread web_rene
Thanks! This was exactly what I was searching for. Unfortunatelly I was not able to find this answer somewhere in the Documentation... same as many other questions. -- View this message in context: http://cakephp.1045679.n5.nabble.com/find-first-How-to-limit-contained-tables-results-tp4777899p5

Re: How to show different text in a view depending on the has_many association

2011-12-01 Thread ineffabilis
Your code is quite messy... Anyways: Hope this helps... -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group

HABTM & read.

2011-12-01 Thread Morgan De Clerck
Hi ! I have a little problem with the HABTM associations. Group hasManyAndBelongsTo Lesson Lesson hasManyAndBelongsTo Group *Groups* groups.id | groups.name | ... *Lessons* lessons.id | lessons.title | ... *Groups_Lessons* groups_lessons.id | groups_lessons.lesson_id | groups_lessons.group_id

CakePHP 1.3 AUTH

2011-12-01 Thread Toren Valone
I am working on AUTH and have this problem. I can use the views to Delete and list users in my database, however when I use the add function, it just stays on the ADD window and then when i do a list it does not list the new user. Any ideas, checked the Cake error and access logs and the mysql logs

Ajax + CakePHP

2011-12-01 Thread NiReiC
Pourquoi est-ce aussi compliqué de faire de l'Ajax avec CakePHP ? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this

Is this it?

2011-12-01 Thread David Mitchell
is this the only official forum type chat there is for CakePHP? this framework is one of the most popular frameworks there is and they don't have there own forum? am I missing something. David -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new

User and admin login

2011-12-01 Thread İNGİLTERE EMRE BEY
im trying to create user login and admin login section, btw im new to cakephp. i have no problem for creating admin section but when i use/enable admin prefix, i can not able to give access to user login. what i want is when user logged in give them permission for CRUD. i have user tabel and use

Re: 2.04 vs 1.3

2011-12-01 Thread Miloš Vučinić
Also one more question. Am I right to assume that cheat sheet from 2.* is the same as the one provided on http://cakephp.org/files/Resources/CakePHP-1.2-Cheatsheet.pdf . Thank you !! Milos On 2 дец, 00:50, Miloš Vučinić wrote: > Hi, > > just curious, so far I have developed apps in 1.3 .. I ha

2.04 vs 1.3

2011-12-01 Thread Miloš Vučinić
Hi, just curious, so far I have developed apps in 1.3 .. I haven't done any job in a while cause I was studying and now I see that the new version is up. How different is 2.* for coding ? Can anyone suggest which version to use for a simple scheduling app ... Thanx! Milos -- Our newest site f

Re: How to remove entries from two tables, from a controller delete() function

2011-12-01 Thread GG
Wow, CakePhp is legit. Thank you Tilen Majerie. On Dec 1, 2:38 pm, Tilen Majerle wrote: > http://book.cakephp.org/2.0/en/models/associations-linking-models-tog... > look > for hasMany association :) > -- > Lep pozdrav, Tilen Majerlehttp://majerle.eu > > 2011/12/1 Tilen Majerle > > > > > > > > >

How use .htaccess to redirect these urls

2011-12-01 Thread Điển vũ
How can i redirect these urls ( use Htaccess): http://example.com/webroot/posts/1/post_slug to http://example.com/posts/1/post_slug i read and do a lot but can't . Please help me solve this matter. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check ou

Re: How to remove entries from two tables, from a controller delete() function

2011-12-01 Thread Tilen Majerle
http://book.cakephp.org/2.0/en/models/associations-linking-models-together.html look for hasMany association :) -- Lep pozdrav, Tilen Majerle http://majerle.eu 2011/12/1 Tilen Majerle > do you have associations created ? > > you should have something like that > > Class hasMany Period > Class

Re: How to remove entries from two tables, from a controller delete() function

2011-12-01 Thread Tilen Majerle
do you have associations created ? you should have something like that Class hasMany Period Class hasMany Post Period hasMany Post (add here assocation key "dependent" => true) //so this will delete all posts for given period_id when you delete some period where Post.period_id = Period.id Period

How to remove entries from two tables, from a controller delete() function

2011-12-01 Thread GG
Right now, my PeriodsController.php delete() function, deletes entries in my periods table. (Not a problem). My PostsController.php delete() function, deletes entries in my posts table. (Also not a problem.) (The problem) = I would like my PeriodsController.php delete(), to also delete any posts (i

Re: Set auto login data

2011-12-01 Thread Tilen Majerle
which cake version are you using ? and, for hashing method use AuthComponent::password instead :) -- Lep pozdrav, Tilen Majerle http://majerle.eu 2011/12/1 heohni > Hi, > > when I want to add a new user, I want to add an "auto" login value for > username and password. > > The user is entering

Re: Best image resize and crop helper

2011-12-01 Thread Miles J
This should be done when the image is uploaded. On Dec 1, 8:08 am, phpMagpie wrote: > I'm using SLIR2:http://code.google.com/p/smart-lencioni-image-resizer/ > > HTH, Paul. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions s

Validation problems

2011-12-01 Thread Toby G
Hi there, Version: 1.3.12 I seem to be having a problem with the 'numeric' validation rule on an associated Model's fields. For some reason it is not validating '10' as a valid numeric value. Here are the validation rules for the (PhysicalTicket) no_of_tickets field in question...

Re: Send Email problem with multiple receivers

2011-12-01 Thread MetZ
ooh.. sorry... Cake 1.3.13 ;) Thanks for your time this far! -Tom On 1 Des, 10:19, euromark wrote: > if you are using the new EmailLib in 2.0 you should be using the > setter methods: > $this->Email->to() > etc > > On 1 Dez., 06:36, Graham Weldon wrote: > > > > > > > > > What CakePHP version

Re: Best image resize and crop helper

2011-12-01 Thread phpMagpie
I'm using SLIR2: http://code.google.com/p/smart-lencioni-image-resizer/ HTH, Paul. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To uns

Re: Spaces in Filenames (Theme / Themed / Upgrade Cake 1.3 to Cake 2.0)

2011-12-01 Thread zuha
Ah put up the answer a bit too fast. Here's a better version, where I changed... Line 275 in /lib/Cake/Routing/Dispatcher.php from... $fileFragment = implode(DS, $parts); to... $fileFragment = urldecode(implode(DS, $parts)); -- Our newest site for the community: CakePHP Video Tutorial

Re: Spaces in Filenames (Theme / Themed / Upgrade Cake 1.3 to Cake 2.0)

2011-12-01 Thread zuha
ah, found it. In case anyone else stumbles on this, I changed Line 277 & 278 in /lib/Cake/Routing/Dispatcher.php from... if (file_exists($path . $fileFragment)) { >$assetFile = $path . $fileFragment; > } to.. if (file_exists($path . str_replace('%20', ' ', $fileFragment))) { > $ass

Is the CakePHP book search not working?

2011-12-01 Thread Yves S. Garret
I'm working on trying to get LDAP to do authentication for my app. Having a heck of a time... I figured I'd at least give a cursory look at the book and see what I find (I didn't expect anything to show up). I searched and found 7 - 9 results right away! Alright! I click on the first and do a

Re: Spaces in Filenames (Theme / Themed / Upgrade Cake 1.3 to Cake 2.0)

2011-12-01 Thread zuha
#1 They can't be moved. #2 Yeah spaces are bad, I get it, but this is a legacy issue not a "moving forward" issue. Does anyone have any insight as to where Cake checks to see if the file exists, and returns the file to the browser if it does when using Themes. I'm happy to hack the core t

Re: How Check validate before save

2011-12-01 Thread phpMagpie
Adding 'validate'=>'only' will never save as your asking the function to only validate the data. If 'incorrect' data is passing validating then you have something wrong with your validation rules. Paul. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Chec

Re: Blog with posts and comments

2011-12-01 Thread phpMagpie
Not sure what it is you are struggling with ... if you want to add a comment to a Post then echo a form with a hidden field containing Comment.post_id. If wanting to view a Post and it's comments then: $this->set('post', $this->Post->find('first', array( 'conditions'=>array('Post.id'=>$id),

Re: Best image resize and crop helper

2011-12-01 Thread Vinícius Moraes de Araújo
http://code.google.com/p/timthumb/ Atenciosamente, Vinícius Moraes 2011/12/1 Alex Bovey > Hi all, > > What's everyone's favourite method (helper or otherwise) or resizing > and cropping images? > > Thanks, > > Alex > > -- > Alex Bovey > Web Developer | Alex Bovey Consultancy Ltd > Registered

Re: Spaces in Filenames (Theme / Themed / Upgrade Cake 1.3 to Cake 2.0)

2011-12-01 Thread euromark
or not using any spaces in filenames (bad thing to do anyway^^) On 1 Dez., 07:40, Graham Weldon wrote: > The alternative is moving your assets to the web root, instead of symlinking > them, I guess. > > Cheers, > Graham Weldonhttp://grahamweldon.com > e. gra...@grahamweldon.com > p. (+61) 0407

Re: any one else having trouble with table prefixes in 2.0?

2011-12-01 Thread euromark
yep - I applied a hack. see my ticket for details: http://cakephp.lighthouseapp.com/projects/42648/tickets/2277-caketestmodels-in-test-cases-do-not-set-model-tableprefix and http://cakephp.lighthouseapp.com/projects/42648/tickets/2206 or simply use the file from my current cake rep: https://github

Re: Form input Automagic on hasAndBelongsToMany when the model is not the model for the form?

2011-12-01 Thread phpMagpie
Can you show us an echo debug of your data array? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send ema

Re: Has many problem

2011-12-01 Thread phpMagpie
> It's normalized because data1, data2 and data3 are always the same fields, they don't change with the process :) Just because it works for you 'now' does not make it normalized ... a normalized database would work for processes with 1 or 1,000 data relations. What happens if you need more dat

Best image resize and crop helper

2011-12-01 Thread Alex Bovey
Hi all, What's everyone's favourite method (helper or otherwise) or resizing and cropping images? Thanks, Alex -- Alex Bovey Web Developer | Alex Bovey Consultancy Ltd Registered in England & Wales no. 6471391 | VAT no. 934 8959 65 -- Our newest site for the community: CakePHP Video Tutorial

Set auto login data

2011-12-01 Thread heohni
Hi, when I want to add a new user, I want to add an "auto" login value for username and password. The user is entering some data into a form which I can validate and before I do the if ($this->User->save($this->data)) { I need to set the fields for username and password, right? I tried: $this->

Re: js/css compression helpers for cakephp 2.0

2011-12-01 Thread majna
There's a shell task for that I think. On Wednesday, November 30, 2011 10:30:28 PM UTC+1, euromark wrote: > > I only thing I am wondering about that plugin is, whether it supports > assert compression by using the default > $this->Html->css/script syntax > Or if one would have to completely rewrit

Re: any one else having trouble with table prefixes in 2.0?

2011-12-01 Thread Mattia Manzati
I have the same problem on Cake 2.0.4. Any way to solve? On 31 Ott, 17:27, euromark wrote: > OK... it happens on normal views as well > just a simple find(first) with 2 contained hasMany relations > > same problem > even worse - it has nothing to do with the cache here (cache > deactivated) > joi

Re: How to show different text in a view depending on the has_many association

2011-12-01 Thread BenJsno
hello, if i understand your view display several posts if your jointable is named fav_posts_users for exemple you should have in your post model : var $hasAndBelongsToMany = array( 'Favorite' => array( 'className' => 'User', 'joinTable' => 'fa

[ASK: Installer script cakephp] Preventing index (plugin) to checking database.php

2011-12-01 Thread thom
Hello, it's been a while since my last time here. Well, I'm currently adopting croogo for cakephp's installer 'style'. FYI, Croogo is using plugin 'install' to setup the database etc. Here are what I did : 1. Copying the install plugin 2. Edited route.php ##app/config/route.php #start if (!file

Re: js/css compression helpers for cakephp 2.0

2011-12-01 Thread Sam Sherlock
true but that being the case has other benefits too. and asset_compress has many options and you can customize it to your every whim *almost* On 30 November 2011 21:30, euromark wrote: > I only thing I am wondering about that plugin is, whether it supports > assert compression by using the de

Re: Write unit test for a controller that uses AuthComponent in CakePHP 2.0.3

2011-12-01 Thread elitalon
After doing a `debug($this->User)` in UsersController I have found that it's not a mocked model. So what am I exactly mocking using `$this->generate()`? On Nov 30, 1:41 pm, elitalon wrote: > I have posted this question in StackOverflow and Jose Lorenzo answered > me this: > >     "The actual cor

Re: Send Email problem with multiple receivers

2011-12-01 Thread euromark
if you are using the new EmailLib in 2.0 you should be using the setter methods: $this->Email->to() etc On 1 Dez., 06:36, Graham Weldon wrote: > What CakePHP version are you on? > > Cheers, > Graham Weldonhttp://grahamweldon.com > e. gra...@grahamweldon.com > p. (+61) 0407 017 293 > Skype: graha