Re: CakeFest 2011 schedule announced (and discount tickets are ending soon!)

2011-07-13 Thread WebbedIT
Wow, only just realised CakeFest is in UK this year! Would really love to come to whole thing, but I have not got £1k floating around to fund 3-4 days in Manchester :o( Considering just going to workshops or conference as would only have to fund one night, but can't make my mind up what would

couchDB datasource

2011-07-13 Thread Clément Hallet
Hello to cakePHP I created a CouhDB datasource at my company, and we released it as open source. It handles CRUD methods on a document, and can query the CouchDB views. Code and documentation are available here : https://github.com/PathMotion/cakephp-couchsource If you're interested in review,

Re: couchDB datasource

2011-07-13 Thread Thomas Ploch
Hi, I am currently doing the same for my company as well. You are going to face a bit of trouble here, since I can't see how you model your couchdb views to fetch relations. See an introduction on Entity Relations with couchdb views here: http://wiki.apache.org/couchdb/EntityRelationship As an

Re: couchDB datasource

2011-07-13 Thread Thomas Ploch
As an addition to my last post, here is what I am currently doing: - Develop a special CouchDB Model that application models will extend - Add a required docType field to the Models (might be defaulting to Model::$alias) to check for in automatically created views. - In the CouchDB Model

Data Validation using Model - field_one OR field_two OR field_three

2011-07-13 Thread Sanfly
Hi Im doing some data validation from a form using my model. I have a form with phone numbers added: phone_home, phone_mobile, phone_work With my model, I want to validate that at least one of the three is filled, but doesnt have to be all three. Is there any way to do that? -- Our newest

Re: couchDB datasource

2011-07-13 Thread Clément Hallet
Hi Thomas, Indeed, we use the one database for one model approach. Since Couchdb doesn't have hardcoded relations, I'd share your conclusion that it's not easy to have it automaticlay handled with a relationnal oriented ORM. Then, you could still have several models with the same database

Re: Data Validation using Model - field_one OR field_two OR field_three

2011-07-13 Thread Jeremy Burns | Class Outfit
Here's a custom validation rule that works: function hasOnePhone() { $addressTypes = array( 'OrderAddress', 'BillingAddress', 'Customer' ); foreach ($addressTypes as $addressType): if

Re: couchDB datasource

2011-07-13 Thread Clément Hallet
Hard task you're working on there ;) I have also think about automatically created views when building the datasource. That was for filtering document type too, if I remember well. Imho, the main point here is that couchDB documents can have so many shapes and format, that doing a strong ORM over

What is the problem with this link configuration?

2011-07-13 Thread taqman filler
$html-link($article['User']['username'],array('controller' = 'users','action' = 'view_profile',$article['User']['id'],array('class' = 'button','onmouseover'=loadtooltip(this,'$userid'),'onmouseout'='hidetooltip()'; I got problem this http://upic.me/i/q4/05cats.jpg I'm doing wrong? thank --

Re: What is the problem with this link configuration?

2011-07-13 Thread Tilen Majerle
first parameter in link method is name for link, second is array or string for LINK, third parameter is for other attributes in link -- Lep pozdrav, Tilen Majerle http://majerle.eu 2011/7/13 taqman filler taqman...@gmail.com $html-link($article['User']['username'],array('controller' =

Re: What is the problem with this link configuration?

2011-07-13 Thread taqman filler
can you help me config pls 2011/7/13 Tilen Majerle tilen.maje...@gmail.com first parameter in link method is name for link, second is array or string for LINK, third parameter is for other attributes in link -- Lep pozdrav, Tilen Majerle http://majerle.eu 2011/7/13 taqman filler

Re: What is the problem with this link configuration?

2011-07-13 Thread Tilen Majerle
$html-link($article['User']['username'], array( 'controller' = 'users', 'action' = 'view_profile', $article['User']['id'] ), array( 'class' = 'button', 'onmouseover'=loadtooltip(this,'$userid'), 'onmouseout'='hidetooltip()' ) ); you

Re: What is the problem with this link configuration?

2011-07-13 Thread Jeremy Burns | Class Outfit
You are missing a ) after $article['User']['id'] Jeremy Burns Class Outfit http://www.classoutfit.com On 13 Jul 2011, at 11:55, taqman filler wrote: $html-link($article['User']['username'],array('controller' = 'users','action' = 'view_profile',$article['User']['id'],array('class' =

Re: What is the problem with this link configuration?

2011-07-13 Thread Jeremy Burns | Class Outfit
This is how it should be: $html-link( $article['User']['username'], array( 'controller' = 'users', 'action' = 'view_profile', $article['User']['id'] ), array( 'class' = 'button',

Re: CakeFest 2011 schedule announced (and discount tickets are ending soon!)

2011-07-13 Thread Graham Weldon
Hey Paul, This years event is cheaper than last years. We've made sure that our sponsors are aware of our costs and concerns, and that the venue is co-operating so we can deliver a more cost effective solution. If you're only able to attend one of the portions, then you need to decide if you

cakephp working fine on localhost but not on server

2011-07-13 Thread baljit
Hi, I have cakephp site working fine on my localhost.I downloaded same site from server and changed paths and db which works fine.But same site on server is not working fine.Its nic server for govt sites. I did setup for site without htaccess also.But for that its not picking some paths of

Generate a drop down list with other table

2011-07-13 Thread Alberto Mendoza
Hi, I'm new to CakePHP and actually I'm creating my first app with it. I'm trying to find out how to add a drop down list with the data of a column of another table. I mean, I have an add view for a students table, the students is related to a people table and people table is related to

Advice for a project configuration

2011-07-13 Thread lebert
Hello, I need to create a website like this: - Home page with public access for everyone. - This Home page contains a login/register section and links to several mini-sites (this number will start small but will grow over time) - The minisites will have same header (logo/menu) and footer

Re: cakephp working fine on localhost but not on server

2011-07-13 Thread Jeremy Burns | Class Outfit
What server software is running. Is it Apache? Zeus? IIS? Jeremy Burns Class Outfit http://www.classoutfit.com On 13 Jul 2011, at 08:21, baljit wrote: Hi, I have cakephp site working fine on my localhost.I downloaded same site from server and changed paths and db which works fine.But same

How to cache static content (css, images,js files)?

2011-07-13 Thread Santiago Basulto
Hello people. I need to set some HTTP headers Expires, Cache-Control, Last-Modified, for resources as CSS files, Images files, js files, etc (Webroot content). I've read that there's some functionality, through Configure::write('Asset.timestamp', true); // In core.php and the

Re: How to cache static content (css, images,js files)?

2011-07-13 Thread Santiago Basulto
Ok, i've solved the css (and js) thing with this tutorials: http://milesj.me/blog/read/cakephp-asset-compression http://www.bunchacode.com/programming/get-cakephp-build-in-css-compression-to-work/ Now, how can i do that for images? I think just have to intercept the image GET request and add

Setting a minMonth / minDay like minYear and maxYear?

2011-07-13 Thread Shaz
http://book.cakephp.org/view/1390/Automagic-Form-Elements ^^ It's possible for me to make sure a user doesn't choose beyond a minimum and maximum years, but whats the best way of putting limits on the months and days as well? Basically I want to make sure a user can only select a date in the

Re: Setting a minMonth / minDay like minYear and maxYear?

2011-07-13 Thread euromark
use a js datepicker those can be configured to disable those dates and always make sure the validation in php (backend) is there as well (as frontend js validation can be tempered with in the browser) On 13 Jul., 18:38, Shaz shazam...@gmail.com wrote:

Re: CakeFest 2011 schedule announced (and discount tickets are ending soon!)

2011-07-13 Thread Sam Sherlock
Previous confs have been uploaded or streamed video feed I am unable to make this one, are some of these talks going to be added to the cake TV site? Particularly the cake 2.0 ones :) - S On 13 July 2011 15:06, Graham Weldon predomin...@gmail.com wrote: Hey Paul, This years event is

Re: Security form validation: is there a log somewhere?

2011-07-13 Thread DragonFlyEye
Thank you for this information. Basically, I should just not count on CSRF protection in AJAX, which I get. I'm assuming I must be making some change to the form in question via AJAX, I guess I'll have to turn off the validation. -- Our newest site for the community: CakePHP Video Tutorials

cake2 and configure load

2011-07-13 Thread euromark
playing around with cake2.0 head I could not get configure::load() to load my custom configs.php: Configure::load('configs'); /app/Config/configs.php: $config['X'] = 'y'; ... Configure::read() would not display the new ones anything I am missing? -- Our newest site for the community: CakePHP

Re: How to cache static content (css, images,js files)?

2011-07-13 Thread majna
you don't read images with PHP or cake. on apache you can use mod_expires. webroot/htaccess: IfModule mod_expires.c ExpiresActive On ExpiresByType image/jpg access plus 1 day ExpiresByType image/jpeg access plus 1 day ExpiresByType image/gif access plus 1 day ExpiresByType

Re: Data Validation using Model - field_one OR field_two OR field_three

2011-07-13 Thread Sanfly
Works perfectly, thanks. On Jul 13, 10:07 pm, Jeremy Burns | Class Outfit jeremybu...@classoutfit.com wrote: Here's a custom validation rule that works: function hasOnePhone() {         $addressTypes = array(                 'OrderAddress',                 'BillingAddress',                

Re: cakephp / tdd / hudson

2011-07-13 Thread mark_story
I've never used cruisecontrol, but Jenkins is pretty simple to setup. I just use the testsuite shell to execute the tests, as of a mid-cycle 1.3 release the test runner will exit non-zero on test failure which Jenkins can use to break the build. -Mark On Jul 11, 10:06 pm, Meroe Kush

Re: Debug why cake decides to clear a cache file

2011-07-13 Thread mark_story
Cake clears the core cache files after 10 seconds in development. And 999 years in debug = 0. There is no magic decisions to be found :) -Mark On Jul 12, 4:44 am, Thomas von Hassel darx...@gmail.com wrote: Hello good people I have a somewhat complex CakePHP site where various views are

RE: cakephp / tdd / hudson

2011-07-13 Thread Meroe Kush
Mark, Thanks for the response. I'll check out Jenkins. -Original Message- From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of mark_story Sent: Wednesday, July 13, 2011 11:07 PM To: CakePHP Subject: Re: cakephp / tdd / hudson I've never used cruisecontrol,

Re: Proper use of JsHelper::object() OR JsHelper::value()

2011-07-13 Thread O.J. Tibi
I guess that question was a little too hard to answer, so I'm going to replace it a little. :) By personal preference, when you output JSON to the view, do you use JsHelper::object() or JsHelper::value()? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org

How to config ajax to work

2011-07-13 Thread taqman filler
I try to use tooltip but got problem this http://upic.me/show/26118528 I do not know where the problem comes from this code http://bin.cakephp.org/view/1377568168 thank -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site

Private Messaging system (PMS)

2011-07-13 Thread JPM
HI, Can I get any component for PMS in cakephp? Thanks Regards Jay -- 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