Re: change label/input generated code

2009-01-25 Thread brian
committees! I hate the float model, myself. Anyway, it'd be best if Cake's mark-up was as configurable as the specs allowed for. I'm not saying it isn't already. I'm probably missing something. And, if it isn't, I'm sure it's not trivial to make it so. I did once need (want) to change Cake's labe

Re: How to call validation in a form that doesn't use save()?

2009-01-25 Thread Dr. Loboto
You can call validation manually this way: $this->Book->data = $this->data; if ($this->Book->validates()) { // do your search } else { // display errors } On Jan 26, 12:28 am, brian wrote: > You'll need to validate the user's input before you call find(). If > you want, you can create m

Re: change label/input generated code

2009-01-25 Thread Miles J
Eh it may be valid, I just don't believe it should be used that way. That's what block elements like div are used for. You also have a lot more control over the styling when not wrapping it in the label. --~--~-~--~~~---~--~~ You received this message because you ar

Re: change label/input generated code

2009-01-25 Thread brian
looks like all of the various HTML & XHTML versions: http://www.w3.org/TR/WCAG20-TECHS/H44.html On Mon, Jan 26, 2009 at 12:16 AM, Brian Williams wrote: > just out of curiosity... valid for which doctype? > > > > On Sun, Jan 25, 2009 at 11:31 PM, brian wrote: >> >> Call it what you like, the s

Re: CakePHP In A Subdirectory?

2009-01-25 Thread Paolo Stancato
Find .htaccess files (there are two) and add "RewriteBase /myapp" into mod_rewrite section. Regards 2009/1/26 inVINCable : > > Hey all, > > Very simply question but cannot seem to find the answer. I have the > directory structure and everything in tact in the normal way. However, > on my server

Re: change label/input generated code

2009-01-25 Thread Brian Williams
just out of curiosity... valid for which doctype? On Sun, Jan 25, 2009 at 11:31 PM, brian wrote: > > Call it what you like, the syntax remains valid. > > On Sun, Jan 25, 2009 at 10:39 PM, Miles J wrote: > > > > Its called using a div or a span. > > > > > > > > > --~--~-~--~~-

Re: change label/input generated code

2009-01-25 Thread brian
Call it what you like, the syntax remains valid. On Sun, Jan 25, 2009 at 10:39 PM, Miles J wrote: > > Its called using a div or a span. > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post

Re: To bug or not to bug that is the question!

2009-01-25 Thread Dr. Loboto
It is just $components = array ('Session', 'Acl' => false, 'Auth' => false) Cake 1.2 allow components include with params (Acl and Auth form in this example, but no params actually) and without in "old style". It is just 2 styles of components include. On Jan 24, 3:34 pm, br1dil wrote: > Hello e

CakePHP In A Subdirectory?

2009-01-25 Thread inVINCable
Hey all, Very simply question but cannot seem to find the answer. I have the directory structure and everything in tact in the normal way. However, on my server I put the entire structure in the /myapp folder in the document root. Now, everything is all mest up and there is no CSS and files are

Re: change label/input generated code

2009-01-25 Thread Miles J
Its called using a div or a span. --~--~-~--~~~---~--~~ 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 cake-php

Cache[Xcache, Memcache, APC] engines and extra "expires" entry

2009-01-25 Thread Websta*
Hi folks, we are just delving a lot further into the use of memcache in our cake app, and we're somewhat perpelxed as to why cake's MemcacheEngine when setting & getting cache vars utilises a second cache entry holding the cache expiry time - when the method Memcache::set has an expires/ttl varia

Re: change label/input generated code

2009-01-25 Thread Marcelo Andrade
On Sun, Jan 25, 2009 at 8:21 PM, brian wrote: > > One reason for using the implicit syntax is for styling. In some > situations, it may be easier to define CSS rules for a label which > wraps the input. That's my case. I've found this ticket, but is not exactly related. https://trac.cakephp.org

Performing a Query using a curdate as condition, help asap?

2009-01-25 Thread Parris
Hi Everyone, I am just trying to perform a simple query using cakephp. In the conditions array I am trying to filter by dates. The results should be all 'events' that will be today or greater (in other words, any date in the future). $this->Event->find('all',array( 'conditions' =>array ('event_ca

Re: change label/input generated code

2009-01-25 Thread brian
That syntax is fine. The difference is that, in wrapping the input with the label, the label is implicit, and so the for attribute is unnecessary. When using the for="" syntax, the label is explicit. Both are acceptable but some screen-readers don't handle the implicit syntax well. One reason for

Re: How can I do this?

2009-01-25 Thread brian
Thanks. I knew there was something new that took over that function. On Sun, Jan 25, 2009 at 6:07 PM, Samuel DeVore wrote: > > You can also use Inflector::slug() > > http://api.cakephp.org/class_inflector.html#c88c8b31dc4769cb9b48c25bcd9fcb41 > > > > On Fri, Jan 23, 2009 at 8:51 PM, brian wrote

Re: How can I do this?

2009-01-25 Thread Samuel DeVore
You can also use Inflector::slug() http://api.cakephp.org/class_inflector.html#c88c8b31dc4769cb9b48c25bcd9fcb41 On Fri, Jan 23, 2009 at 8:51 PM, brian wrote: > > Personally, I'd create a slug for the user with their first & last > names. There's a SluggableBehavior you can use for that (thoug

Re: New Cake site

2009-01-25 Thread DRE
As the great Homer said - Dooh! Thanks Filip. On Sun, Jan 25, 2009 at 2:42 AM, Filip Camerman wrote: > > You click on the Edit link on the top left and then you change it :) > > You'll need to make a bakery account if you don't have one yet. > > On Jan 24, 6:40 pm, DRE wrote: > > Anybody know h

Multiple Uploads with MeioUpload

2009-01-25 Thread Arak Tai'Roth
I just recently started using the MeioUpload behaviour that I found and I love it. However I am struggling to figure out how I can be using it to do multiple file uploads. I have a table and a seperate model and controller just for uploading images, so one row in said table is equal to one image.

Custom data source

2009-01-25 Thread Josip Dzolonga
Hello everyone, So I'm designing a web site that has a very specific architecture. _Some_ of the data is handled by a Java RESTful web service (there is a database as well). There are actually two things stored which I would like to have as models: 1) Users 2) Documents However, there are permi

Re: Are we using the slowest PHP framework there is?

2009-01-25 Thread Adam Royle
Yes, it would be great to have a fully-fledged application example, complete with "time to develop" and "lines of maintainable code" benchmarks. And another one which measures mental anguish experienced by the framework. On Jan 26, 7:38 am, Miles J wrote: > Yes I always hate benchmarks because i

Re: change label/input generated code

2009-01-25 Thread Miles J
I do not believe that is possible unless you build the elements yourself without the helper. Is there a reason your wrapping it like that? I do believe that is incorrect syntax. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl

Re: Are we using the slowest PHP framework there is?

2009-01-25 Thread Miles J
Yes I always hate benchmarks because it only deals with "Hello world" applications. How about they build robust applications in each framework and then give us a real benchmark that matters. Also Symfony is slower then Cake. --~--~-~--~~~---~--~~ You received this

Are we using the slowest PHP framework there is?

2009-01-25 Thread chanon
I know there has been another thread about this, but I want to say that newcomers looking at http://www.yiiframework.com/performance might be afraid of investing into using CakePHP 1.2. >From those numbers, Yii with APC on is about 10x faster than CakePHP (!?) Even compared to CakePHP 1.1, CakeP

Re: RC3 file cache trouble

2009-01-25 Thread chanon
I just added a ticket for this here: https://trac.cakephp.org/ticket/6034 --~--~-~--~~~---~--~~ 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

Re: Wordpress and cakephp

2009-01-25 Thread Sam Sherlock
+1 for wf. The plugin version is available on github http://github.com/klevo/wildflower/tree/master Merging two different systems can end up like Frankensteins monster - and may be more complex than a complete cake version There are some other cake CMS's on github two - not sure how complete the

Re: Gziping JS and CSS files using .htaccess

2009-01-25 Thread Sam Sherlock
try http://marcgrabanski.com/pages/code/asset-mapper 2009/1/25 Sridhar Kuppalli > This is not working. :( > Is there any other method? > > Regards > Sridhar K N > > On Sat, Jan 24, 2009 at 2:36 PM, _k10_ wrote: > >> >> Hi, >> >> This helper might interest you. - >> http://bakery.cakephp.org/art

Re: Having trouble with FormHelper radio method

2009-01-25 Thread seedifferently
I am still experiencing this issue in 1.2.1.8004. Anyone? Seth --~--~-~--~~~---~--~~ 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

behavior settings and view

2009-01-25 Thread brian
I have some settings in a Behavior which I'll need exposed in the view. I haven't been able to come up with a good solution for this and so now I'm wondering if my entire approach is flawed. I'm working on a MediaBehavior. This class contains a few generic methods and is extended by MediaImageBeh

Re: Which editor for Mac OS X?

2009-01-25 Thread leo
doh! I saw that and assumed it meant the bottom of the page. Thanks. I'll try it a little more now - until the trial expires. On Jan 25, 8:04 pm, Jon Bennett wrote: > >  TextMate I tried, but please tell me I'm being dumb and you can show > >  line numbers without saving them in the file. > > Vi

Re: Any one looking for a freelance work

2009-01-25 Thread Jon Bennett
> I am interested, > > Please send me more information in a private message. ermm - why not just reply directly offlist!?! j -- jon bennett w: http://www.jben.net/ iChat (AIM): jbendotnet Skype: jon-bennett --~--~-~--~~~---~--~~ You received this message be

Re: Which editor for Mac OS X?

2009-01-25 Thread Jon Bennett
> TextMate I tried, but please tell me I'm being dumb and you can show > line numbers without saving them in the file. View > Gutter > Line numbers hth j -- jon bennett w: http://www.jben.net/ iChat (AIM): jbendotnet Skype: jon-bennett --~--~-~--~~~---~--~~

Re: Which editor for Mac OS X?

2009-01-25 Thread leo
Sorry to be slow getting back - we've had a thirty hour power outage following a storm that ripped off roofs and uprooted trees. A little unusual here in Spain. @everybody and nobody, I dislike Eclipse and Netbeans because 1. (without redoing the sums) I don't understand why an editor should use i

Re: How to call validation in a form that doesn't use save()?

2009-01-25 Thread brian
You'll need to validate the user's input before you call find(). If you want, you can create methods in the model for that and just pass $this->data to be checked. Have the method(s) check the values and return true/false back to the controller. On Sun, Jan 25, 2009 at 7:31 AM, libard...@gmail.

Re: international characters in db

2009-01-25 Thread brian
Check the character encoding in your browser when you have phpmyadmin open. This is a notorious issue with that application. The fix is to set the encoding in the config file. Sorry, I can't be more specific as I don't have a copy handy right now. On Sun, Jan 25, 2009 at 7:11 AM, kicaj wrote: >

Re: Which editor for Mac OS X?

2009-01-25 Thread rogwei
Maybe I'm missing something about Eclipse, but when I create a project for CakePHP (which seems to be a requirement in this discussion) I get inordinate bloat in the project explorer. Is there a workaround for this? How do people tolerate such a mess, given that one of the basic things you use an

change label/input generated code

2009-01-25 Thread Marcelo Andrade
Hi all, What's the better way to make the output of this echo $form->input('MyModel.field', array('label'=> 'My label:')); generate labels surrounding the input element like this My label: instead of "http://pa.slackwarebrasil.org/ For Libby's backstory be told on Lost http://www.petitionon

Re: CakePHP with Lighttpd using mod_rewrite

2009-01-25 Thread Marcelo Andrade
On Sat, Jan 24, 2009 at 10:40 AM, Guy Rutenberg wrote: > > CakePHP's documentation instruct users how to install Cake on lighttpd > using mod_magnet (Lua). As I don't like adding the Lua overhead to > lighttpd (overall it should be light), I've worked out a solution > using only mod_rewrite. > >

Re: twitter users?

2009-01-25 Thread Marcelo Andrade
http://twitter.com/mfandrade Mainly in portuguese. -- MARCELO DE F. ANDRADE (aka "eleKtron") Belem, PA, Amazonia, Brazil Linux User #221105 [...@pará ~]# links http://pa.slackwarebrasil.org/ For Libby's backstory be told on Lost http://www.petitiononline.com/libby423/petition.html --~--~-

Re: Any one looking for a freelance work

2009-01-25 Thread Marcus Silva
I am interested, Please send me more information in a private message. Regards Marcus Silva On Jan 25, 8:55 am, Novice Programmer wrote: > Hello, > > Please get in touch with me if you are looking for a freelance work. I have > a site based on cakephp and want to add a few features to it. >

Re: Any one looking for a freelance work

2009-01-25 Thread Kappa
I'm interested, we can discuss about it, please send me the details in a private mail, thanks, Andrea On Jan 25, 9:55 am, Novice Programmer wrote: > Hello, > > Please get in touch with me if you are looking for a freelance work. I have > a site based on cakephp and want to add a few features

Re: cakeapp.com

2009-01-25 Thread SS
Excellent work! Will this app be released? if so it can be used on local machines by our dev team. wishes: - editing of generated codes for controllers, models and views - designing views through wizard On Dec 20 2008, 9:34 am, powtac wrote: > Added auto creation of hasmany-, belongsto-, HABTM-r

Re: Memory problem with Xml in a loop

2009-01-25 Thread Yves Latour
Now it seems to work, I have added: $xml->__killParent(); $xml->__destruct(); $xml = null; unset($xml); I do not know which lines I ca

Re: Which editor for Mac OS X?

2009-01-25 Thread rgreenphotodesign
Eclipse is nice because it's the same on all OS. If you use Windows at work and Mac at home, it still works pretty much the same. That and I've been using it since version 1 and I'm kind of used to it. I've tried CODA and it's pretty cool. I like the CSS editior which is something most pure IDEs

Re: Memory problem with Xml in a loop

2009-01-25 Thread Yves Latour
It seems to be a PHP problem, like described here: http://blog.hma-info.de/2007/10/02/propel-and-php-garbage-collector/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send emai

Re: File Upload Limit?

2009-01-25 Thread Smelly_Eddie
What exactly is 'dont work out well'? By default Apache does not limit size, and you would see a 403 or 413 error if that was at fault, but by default does cap script execution to 300 seconds. To expand on Jon's comment; MOre likely is PHP configuration. To check the limits on php use phpinfo

Re: Which editor for Mac OS X?

2009-01-25 Thread Janoma
I'd go for Smultron, though I don't think the newest versions work on non-intel macs. On Jan 23, 11:01 am, leo wrote: > Having spent months trying to find an adequate editor for Windows, I > eventually settled on Komodo. Now I'm working on a Mac and Komodo is > available, but version 5 is so slo

Re: best component to manage login/registration in 1.2?

2009-01-25 Thread Smelly_Eddie
Willie: I can offer my help with the lost passwords bit. I wrote a simple ticket system that allows users to enter there email, and receive a password reset token for 1 use. http://edwardawebb.com/programming/php-programming/cakephp/reset-lost-passwords-cakephp You could reuse the basic concep

Re: articles search - by name and by tags

2009-01-25 Thread Paamayim
Thanks for the suggestion, I'll try it. --~--~-~--~~~---~--~~ 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 ca

Re: Website hosting for CakePHP

2009-01-25 Thread genfish
Otherwise I'd be happy to make you an account on my dedicated server for a small donation to the cost, feel free to get in touch, Chris On Jan 25, 11:52 am, Mauricio Morales wrote: > I recommend A2Hosting, that Company has a great support and good > servers.  (http://www.a2hosting.com) > > On J

Re: Gziping JS and CSS files using .htaccess

2009-01-25 Thread Sridhar Kuppalli
This is not working. :( Is there any other method? Regards Sridhar K N On Sat, Jan 24, 2009 at 2:36 PM, _k10_ wrote: > > Hi, > > This helper might interest you. - > http://bakery.cakephp.org/articles/view/minify-helper-for-cakephp > (includes gziping of js and css assets) > > _k10_ > http:///www

Re: Wordpress and cakephp

2009-01-25 Thread jason m
+1 for wildflower. I'm not sure if it's done yet but I think the wildflower developer wanted to make it into a plugin so you could just pop it into your plugin folder and use it right away, while the rest of your app is separate. On Jan 24, 6:15 pm, "ache...@gmail.com" wrote: > You might look in

How to call validation in a form that doesn't use save()?

2009-01-25 Thread libard...@gmail.com
I am learning Cake with a test project. As far as I know, validation automatically occurs when the Model's save () method is called from within a controller. So, if I have defined validation rules in my model, those rules will be scrutinized before actually either saving or editing data. Now, wh

Re: articles search - by name and by tags

2009-01-25 Thread Jon Bennett
> Thanks but unfortunately doesn't work. > > $hasMany(s) [ie: Comments] and $hasAndBelongsToMany(s) are not even > included in the generated SQL query [ie: Tags] :( > > SELECT COUNT(*) AS `count` FROM `app_articles` AS `Article` LEFT JOIN > `app_users` AS `User` ON (`Article`.`user_id` = `User

international characters in db

2009-01-25 Thread kicaj
Hi I set in database.php encoding to utf8, my table and fields set to utf8-unicode-ci, and when i adding record to db, a see in my phpmyadmin "bushes", why? ...but in on the site all it's okey:) Sorry, for my english:) --~--~-~--~~~---~--~~ You received this mes

Re: Which editor for Mac OS X?

2009-01-25 Thread Mauricio Morales
I've got Coda and Eclipse PDT, with no doubts I recommend Eclipse PDT and I think I will do it for all life. Although Coda is thin and pretty, isn't as robust as Eclipse, with Eclipse you can install a big quantity of plugins to manage databases, UML graph, FTP integration, SVN integration, and s

Re: Website hosting for CakePHP

2009-01-25 Thread Mauricio Morales
I recommend A2Hosting, that Company has a great support and good servers. (http://www.a2hosting.com) On Jan 24, 9:49 pm, Petorama wrote: > Hi all, > > My site was done with CakePHP (Petorama.com) and I love the way it > came out, but my hosting company serves it very slowly. I use > GoDaddy.c

Re: How to change default value of Date input instead of current date

2009-01-25 Thread ProFire
An update... I added a hidden field and suddenly, the default date works... I'm not sure if this is by design or a bug Here is my code: input("Subject.id", array("type" => "hidden", "value" => $subject["Subject"]["id"])); ?> input("SubjectAuth

Memory problem with Xml in a loop

2009-01-25 Thread Yves Latour
Hi I am trying to parse a huge xml file originating from a feed which cannot load at once, so I have to use: while (!feof($handle)) { $line = stream_get_line($handle, 100, "\n"); $xml = new Xml($line); Above is a simplified version, actually I modified $line in order to be the xml

Re: How to change default value of Date input instead of current date

2009-01-25 Thread ProFire
I am facing the same problem too... I can't change the default or the selected fields. Here's my code: input("SubjectAuthorization.expiry_date", array ("selected" => strtotime("2008-01-02"))); ?> --~--~-~--~~~---~--~~ You received this message because you are subsc

Re: AuthComponent usage

2009-01-25 Thread Robert
Miles, thanks, I didn't know about it. On 19 Sty, 09:30, Miles J wrote: > If you want public comments or something, just have the user_id in the > database = 0. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakeP

Re: Element placeholder help

2009-01-25 Thread Braindead
Hi Dave, you could select the element to show based on the controller and / or action that is currently used. $this->params['controller'] and $this->params['action'] should help you in your view. Markus --~--~-~--~~~---~--~~ You received this message because you

Re: articles search - by name and by tags

2009-01-25 Thread Paamayim
> Maybe try this: > > $articles = $this->paginate('Article', array( > 'conditions'=>array( > 'OR'=>array( > 'Article.name LIKE ' => '%' .$q .'%', > 'Tag.name LIKE ' => '%' .$q .'%' > ) > ) > )); Thanks but unfortunately doesn't work. $hasMany(s) [ie: Comme

simple and complete file upload behaviour

2009-01-25 Thread fain182
someone knows if there is a file upload behaviour, that manage adding, editing and deleting of files in a simple way? thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group,

Validating the value of a selectboxes to be in a dynamic list

2009-01-25 Thread Braindead
Hi everyone, I'm searching for a way to validate selectboxes. I'm using the SecurityComponent and Cake 1.2. Let's assume I want to write an article. The article belongs to one category and the categories are stored in my database and therefore dynamic. So I have a selectbox on my form for the c

Any one looking for a freelance work

2009-01-25 Thread Novice Programmer
Hello, Please get in touch with me if you are looking for a freelance work. I have a site based on cakephp and want to add a few features to it. -- Thanks & Regards, Novice. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: New Cake site

2009-01-25 Thread Filip Camerman
You click on the Edit link on the top left and then you change it :) You'll need to make a bakery account if you don't have one yet. On Jan 24, 6:40 pm, DRE wrote: > Anybody know how I could get my site on that list > ?http://book.cakephp.org/view/510/Sites-in-the-wild? --~--~-~--~---

Re: error 404 throws blank page

2009-01-25 Thread Nick
Exactly what I just did. Turns out it was an issue with using the Javascript helper in my default.ctp file. When it called error404.ctp the error controller didn't have javascript added as a helper and therefore threw a blank page. Once I added that I got my 404 error. Thanks for the quick sug

Re: error 404 throws blank page

2009-01-25 Thread Miles J
Perhaps set your debug to 2 and see if it throws an error why? On Jan 24, 11:53 pm, Nick wrote: > I can't seem to figure out what I did wrong or where to fix it, but > I've got my debug level set to 0 in my core.php file and saved the > default cake 404 error message page into app/views/errors/