i18n shell validation msgs not being extracted

2013-09-17 Thread aka
I'm trying to generate the pot files from my site with cake's i18n shell useing cake 2.3. As mentioned in the cake docs the shell should automatically extract the validation msgs. However, none of the validation strings are added to my pot files. My validation array simply looks like: public

Re: Pagination with i18n field condition (pagination + translation behavior error)

2013-09-10 Thread aka
'%')); That doesn't change the outcome though.. On Tuesday, September 10, 2013 12:30:53 PM UTC+2, aka wrote: > > Why is this no working (throws a column not found) : > > $conditions = array('OR' => array( 'I18n__title.co

Pagination with i18n field condition (pagination + translation behavior error)

2013-09-10 Thread aka
Why is this no working (throws a column not found) : $conditions = array('OR' => array( 'I18n__title.content LIKE' => '%'.$searchKey.'%')); $this->paginate = array( 'conditions' => $conditions ); $results = $this->paginate(); *Error: * SQLSTATE[42S22

i18n Search for string in multiple translations

2013-09-03 Thread aka
Hi there, Im trying to set up a search function for a multilingual website. I'm using cake's (2.2) translation behavior and my translated fields are saved in a separate table (for example: I18n__titleTranslation) Now i would like to search these records and their translations but the only way

Calling controller methods from an external php class.

2011-08-09 Thread Michael IV (aka SasMaster)
Hi to All Cakers .I have the following problem.I need to integrate a flash application inside Cake based website.The flash app communicates with cake via a WebOrb PHP server (in AMF format to increase the speed of data transfer).So basically inside Flash I call a method on a PHP service deployed i

Re: CakeFest 2010, who is going?

2010-06-30 Thread Larry E. Masters aka PhpNut
Mike, Great! Looking forward to seeing you there. -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ On Wed, Jun 30, 2010 at 10:23 AM, Mike Karthauser wrote: > > On Wed, June 30, 2010 4:12 pm, Larry E. M

Re: CakeFest 2010, who is going?

2010-06-30 Thread Larry E. Masters aka PhpNut
CakePHP :) -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ On Wed, Jun 30, 2010 at 10:07 AM, Mike Karthauser wrote: > Hi Larry > am thinking about it. Do you know what the early bird ticket prices are? >

Re: CakeFest 2010, who is going?

2010-06-30 Thread Larry E. Masters aka PhpNut
Shaz, Are you afraid to fly? :) -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ On Wed, Jun 30, 2010 at 9:42 AM, Shaz wrote: > I'd come if it wasn't so far away from London! > > On Jun 30

CakeFest 2010, who is going?

2010-06-30 Thread Larry E. Masters aka PhpNut
who is coming or planning to come to the event? -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions

Re: Cookies from CAKE and other branding

2010-06-29 Thread Larry E. Masters aka PhpNut
mplates to use in all of your other projects so you are not "cleaning out" your installs every time. -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ On Mon, Jun 28, 2010 at 10:01 PM, Vangel wrote:

Re: Removal of post

2010-06-04 Thread Larry E. Masters aka PhpNut
ring aka PhpNut * @access public */ On Fri, Jun 4, 2010 at 5:04 AM, Jayesh Wadhwani wrote: > Hello, > > Per terms and conditions of Google groups please remove all postings > related to me. My email is jwadhw...@gmail.com > > Thanks > > Jayesh Wadhwani > > Check

Re: Organizing controllers in folders

2010-02-05 Thread Larry E. Masters aka PhpNut
ame * @param string $realName * @returns string aka PhpNut * @access public */ On Fri, Feb 5, 2010 at 9:30 AM, Mandy Singh wrote: > hi, > > is it possible to organize controllers under /app/controllers in sub- > folders ? > > my module is growing huge and i would like to create su

Re: 1.3 on a production server?

2010-01-12 Thread Larry E. Masters aka PhpNut
s/How/Have/ -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ Why would I be sarcastic? How you follow the CakePHP project for any length > of time? You will notice the alpha releases are more stable then m

Re: 1.3 on a production server?

2010-01-12 Thread Larry E. Masters aka PhpNut
Why would I be sarcastic? How you follow the CakePHP project for any length of time? You will notice the alpha releases are more stable then most projects stable versions. -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access

Re: 1.3 on a production server?

2010-01-11 Thread Larry E. Masters aka PhpNut
Yes all client work is on 1.3 -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ On Mon, Jan 11, 2010 at 9:17 PM, Jamie wrote: > Is anyone using 1.3 on their live, high traffic production servers? > I

Re: Out of office reply

2010-01-01 Thread Larry E. Masters aka PhpNut
David, I removed the account last night, 13 more days of that would drive me insane. -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ On Fri, Jan 1, 2010 at 3:20 AM, David Roda wrote: > Wow... this

Re: Default __() parameters causes problems

2009-12-17 Thread Larry E. Masters aka PhpNut
I have plans to change the __*() functions to return by default it has not been implemented yet -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ On Thu, Dec 17, 2009 at 12:31 PM, euromark wrote: > i do ag

Re: Javascript libraries with images/css inside Cake Plugins

2009-12-03 Thread Larry E. Masters aka PhpNut
http://code.cakephp.org/wiki/1.3/new-features/plugin-assets -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ On Thu, Dec 3, 2009 at 4:53 AM, peterchenadded wrote: > Have a look at mediaview (h

Re: About multilingual websites

2009-11-26 Thread Larry E. Masters aka PhpNut
w catalog from POT file... -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this m

Re: CakePHP performance 1.2 - is future any better?

2009-11-24 Thread Larry E. Masters aka PhpNut
ar string $userName * @param string $realName * @returns string aka PhpNut * @access public */ Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP

Re: CakePHP performance 1.2 - is future any better?

2009-11-24 Thread Larry E. Masters aka PhpNut
fter 2.0 are also likely to offer improvements as > more and more code is php5 optimized. Yes -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ -- You received this message because you are subscribed to th

Re: About multilingual websites

2009-11-23 Thread Larry E. Masters aka PhpNut
w. Using the console you can extract these string with the following command. cake i18n extract This will create the pot file that you would use to create the .po files using a tool like www.poedit.net /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns stri

Re: Where can I get "The Chaw"?

2009-11-21 Thread Larry E. Masters aka PhpNut
It never was open sourced. -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ On Sat, Nov 21, 2009 at 8:13 PM, itsnotvalid wrote: > Just searched a few websites and there is no indication of a git r

Re: best merge port with po translation

2009-11-19 Thread Larry E. Masters aka PhpNut
poedit.net Choose: Catalog > Update from POT file... -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ On Thu, Nov 19, 2009 at 8:06 AM, andrzejborkow...@gmail.com < andrzejborkow...@gmail.com> wrote:

Re: CakeFest IV - America - Help us pick a location!

2009-11-13 Thread Larry E. Masters aka PhpNut
Nashville Tn. since I live in Tn now and it would be easier for me to deal with the venues. Chicago like Walker Hamilton suggested, that is my old "home town" and would be nice to visit. -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns

CakeFest IV - America - Help us pick a location!

2009-11-13 Thread Larry E. Masters aka PhpNut
Trying to set this back to original thread in google. -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ On Fri, Nov 13, 2009 at 6:59 PM, Larry E. Masters aka PhpNut < php...@gmail.com> wrote: &

Re: I now have an iPhone (was: CakeFest IV - America - Help us pick a location!)

2009-11-13 Thread Larry E. Masters aka PhpNut
Chris, Thanks for breaking the thread :) Everyone please reply to the email/thread titled: CakeFest IV - America - Help us pick a location! -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ On Fri, Nov 13

Re: cookie data corrupted

2009-11-13 Thread Larry E. Masters aka PhpNut
I am curious if you are using Suhosin php extension? -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ On Fri, Nov 13, 2009 at 12:25 PM, Quess wrote: > I have exactly the same problem. On developing ser

CakePHP Questions - Now out of beta!

2009-11-10 Thread Larry E. Masters aka PhpNut
content of the site please contact us: cak...@cakephp.org -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To po

Re: cakephp.org hacked?

2009-11-03 Thread Larry E. Masters aka PhpNut
ers * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ On Tue, Nov 3, 2009 at 11:17 PM, Josh K wrote: > > I agree. This theme has me worried. Halloween is past anyway. > > On Nov 3, 2:50 pm, on24 wrote: > > Hmmm, I just don&#

Re: gwoo Leaving CakePHP??

2009-10-14 Thread Larry E. Masters aka PhpNut
what is in store with the 1.3 and 2.0 releases, more to be announced on these later :). -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ On Wed, Oct 14, 2009 at 5:18 PM, Adam wrote: > > "[gwoo] resign

Re: find __() function parameters in /app and update *.po - automated

2009-10-14 Thread Larry E. Masters aka PhpNut
he 160+ on that site using slugs like you suggest. You can use the code however you like though. -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ On Wed, Oct 14, 2009 at 11:21 AM, Miles J wrote: > > Add

Re: find __() function parameters in /app and update *.po - automated

2009-10-14 Thread Larry E. Masters aka PhpNut
ot; Which means: "Welcome to my home page of the applications I have built using CakePHP my framework of choice." This is not translating text, and it not what I18n is to be used for. -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string

Re: find __() function parameters in /app and update *.po - automated

2009-10-13 Thread Larry E. Masters aka PhpNut
Cool, let me know if you have any questions. -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ On Tue, Oct 13, 2009 at 7:46 PM, Miles J wrote: > > Well see now a lot of it makes sense. The guide is pretty

Re: find __() function parameters in /app and update *.po - automated

2009-10-13 Thread Larry E. Masters aka PhpNut
back online in the next few weeks. They will also be added to the book, with corrections on the proper use of these functions soon. If you need the correct plural form before then, let me know and I can reply with it. -- /** * @author Larry E. Masters * @var string $userName * @param string $realName

Re: find __() function parameters in /app and update *.po - automated

2009-10-13 Thread Larry E. Masters aka PhpNut
So you are basically using these as "defines"? -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ On Tue, Oct 13, 2009 at 2:19 PM, euromark (munich) < dereurom...@googlemail.com> wrote: > &

Re: find __() function parameters in /app and update *.po - automated

2009-10-13 Thread Larry E. Masters aka PhpNut
Name * @param string $realName * @returns string aka PhpNut * @access public */ On Tue, Oct 13, 2009 at 11:12 AM, Miles J wrote: > > I am personal extremely against naming your ids the full sentence, > what purpose does that serve? Its longer in both the .po and .ctp file > and its a

Re: find __() function parameters in /app and update *.po - automated

2009-10-13 Thread Larry E. Masters aka PhpNut
slate your application if they have everything they need in the 1 .po file vs looking for the text related to a place holder. -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ On Tue, Oct 13, 2009 at 9:13 AM, Rob wrote:

Re: find __() function parameters in /app and update *.po - automated

2009-10-13 Thread Larry E. Masters aka PhpNut
There is a shell script to do this. If the cake console is in your environment path, this command will work. cake i18n extract -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ On Tue, Oct 13, 2009 at 9:13 AM

Re: Release: CakePHP 1.2.5

2009-10-01 Thread Larry E. Masters aka PhpNut
I do not, so that is why I no longer reply :) -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ On Thu, Oct 1, 2009 at 11:02 PM, Robert Popplewell wrote: > I wonder if every other member of the Cake

Re: Enterprise Level App using cakephp

2009-09-24 Thread Larry E. Masters aka PhpNut
Serious though, http://book.cakephp.org/view/510/Sites-in-the-wild -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ On Thu, Sep 24, 2009 at 4:17 PM, Larry E. Masters aka PhpNut < php...@gmail.com> wrote:

Re: Enterprise Level App using cakephp

2009-09-24 Thread Larry E. Masters aka PhpNut
> > Is anybody use cakephp for developing an Enterprise Level > Application? Yes. > and What Kind of App was developed? > A big one. -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut *

Re: Internationalization

2009-08-17 Thread Larry E. Masters aka PhpNut
It is __(); notice the double underscore. -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ On Mon, Aug 17, 2009 at 3:52 PM, RhythmicDevil wrote: > > Hi, > I am trying to understand h

Re: nightly build failed

2009-08-08 Thread Larry E. Masters aka PhpNut
Should be working now, I have not had time to replace the SSL cert on the server after it expired so the nightly build would fail with the svn export. -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ On Sat, Aug

Re: Tinyints cause big problems

2009-06-01 Thread Larry E. Masters aka PhpNut
p://book.cakephp.org/view/68/Creating-Database-Tables -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ > > > The cookbook mentions tinyint only the context of forms. The api is > silent. Golding (Beginni

Re: Tinyints cause big problems

2009-06-01 Thread Larry E. Masters aka PhpNut
I know this is documented and it is part of the CakePHP conventions. Maybe it is time to upgrade your 1.44 floppy to something like a zip drive? -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ On Mon, Jun 1

imap_open causes Debugger Error

2009-05-12 Thread Brad V. aka iBspoof
When trying to use imap_open() command with CakePHP either r8120 or r8166 when debug is set to 1 or 2 I get the following error: Fatal error: Class 'Debugger' not found in ../cake/libs/debugger.php on line 169 # TimeMemory FunctionLocation 1 0.1322 1828636 Debugger->hand

Re: cake 1.2 Auth component not logging in

2009-03-03 Thread aka
blic actions in your controller? > > Auth is tricky, but following the tutorial step by step should work. > > On Feb 27, 4:40 pm, aka wrote: > > > I keep running in to this problem over and over again. > > > Whenever I implement the cakephp 1.2 Auth component I can

cake 1.2 Auth component not logging in

2009-02-27 Thread aka
I keep running in to this problem over and over again. Whenever I implement the cakephp 1.2 Auth component I can't login (and yes, I'm sure the login credentials are right). The password is saved with the sha1 algorithm and the salt value has been changed. New cake installation + a new database (

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

2009-02-19 Thread Rafael Bandeira aka rafaelbandeira3
We can't forget that even not using $uses, when loading a Model it will construct all its links, and its link will construct all of their links, and so forth... So, anyway, you are most probably going to load each and every model by just loading a single one - even though they might have nothing t

Re: implementing keyboard shortcuts

2009-01-29 Thread Brad V. aka iBspoof
MichTex- I have used this before with great success: http://code.google.com/p/js-hotkeys/ Works with jQuery. Brad On Jan 29, 12:18 pm, MichTex wrote: > Has anyone implemented keyboard shortcuts (hotkeys) for CakePHP > applications? I'm looking for real, single-key shortcuts, such as > Gmail a

Re: Loading models within the controller action

2009-01-10 Thread Brad V. aka iBspoof
Miles- Try - App::import('Model', "_insert_model_name"); Brad On Jan 10, 6:08 pm, Miles J wrote: > In one of my controllers, I use nearly 10-15 models. The problem is > that I dont need all these models, each model is respective to a > certain action and loading all these models seems like it

Re: Issue when saving HABTM form on RC4

2008-12-19 Thread Larry E. Masters aka PhpNut
test case and diff against core model.test.php and open a ticket http://book.cakephp.org/view/759/Bugreport -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ On Fri, Dec 19, 2008 at 8:48 AM, Martin Westin wrote

Re: Can a model belong to and habtm one model?

2008-12-12 Thread Rafael Bandeira aka rafaelbandeira3
yes you can, just assign different aliases like 'Owner' and 'OwnerFriends' eagerterrier wrote: > I have a facebook type app that I need to build for a client (don't we > all?) and in it I have a model that ideally needs to be owned by one > user, and also habtm other users (the owners friends) >

Re: REgarding using Mysql functions like NOW(), CURDATE() etc

2008-11-29 Thread Rafael Bandeira aka rafaelbandeira3
> Finally if you are hopping that cake allow you to make mysql function calls > inside a query you should read thishttps://trac.cakephp.org/ticket/5345as > stateted that "it would actually > make SQL injection a *feature" > Notice that every user input should be properly sanitized and escaped if

Re: multiple [controllerName].po files + normal core.po?

2008-11-28 Thread Rafael Bandeira aka rafaelbandeira3
> PS a controller should itself have very few __ calls (only flash messages) ... And be said that even this can be delegated to the view layer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post

Re: calling exit() after redirect STILL redirects

2008-11-27 Thread Rafael Bandeira aka rafaelbandeira3
> Deleting this key solved the problem. instead of deleting the session key, why don't you set the right url on AuthComponent::$loginRedirect? $this->Auth->loginRedirect = array('controller' => 'user', 'action' => 'info'); --~--~-~--~~~---~--~~ You received this m

Re: JQuery and AjaxHelper

2008-11-27 Thread Rafael Bandeira aka rafaelbandeira3
> I was wondering if there is anyway in order to still use the Ajax > helper (I don't really want to write all the code to implement it > everytime) while using JQuery instead of Prototype and Scriptaculous? No. There's no way of doing this. AjaxHelper only spits code based on Prototype and Scrip

Re: HABTM pagination

2008-11-27 Thread Rafael Bandeira aka rafaelbandeira3
grigri wrote: > @Markus and Rafael Oh come on... I wasn't asking, I was answering... the code supplied by the thread author is invalid, and I pointed it out. Every method presented since then is just fine. --~--~-~--~~~---~--~~ You received this message because y

Re: HABTM pagination

2008-11-27 Thread Rafael Bandeira aka rafaelbandeira3
> $this->set('filters',$this->Listing->Cuisine->find('all',array > ('conditions'=>array('Cuisine.id'=>$searchby))), $this->paginate()); what is it supposed to do? I think that what you really want to do is: // in the controller $this->set('filter', $this->paginate()); --~--~-~--~~

Re: What you people use: Browser based automated tests or Cake's Inbuilt lib?

2008-11-27 Thread Rafael Bandeira aka rafaelbandeira3
... forgot the last paragraph: and he is always giving support over cakebaker.42dh.com. --~--~-~--~~~---~--~~ 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

Re: What you people use: Browser based automated tests or Cake's Inbuilt lib?

2008-11-27 Thread Rafael Bandeira aka rafaelbandeira3
> BTW, I did tested Daniel's code before, It was not of much help, as it > didn't worked out with latest versions. And I think no one is using it > right now. are you sure? He just pushed SeleniumHelper to github --~--~-~--~~~---~--~~ You received this message bec

Re: What you people use: Browser based automated tests or Cake's Inbuilt lib?

2008-11-27 Thread Rafael Bandeira aka rafaelbandeira3
Abhimanyu Grover wrote: > Hey Bakers, > > From quite a few days, Selenium IDE is seducing me as its a huge time > saver in writing tests. Earlier I was using CakeWebTestCase which > fulfilled our team's needs easily. Now I'm stuck in dilemma whether we > should use Cake's Inbuilt CakeWebTestCase

Re: Agregating multiple databases

2008-11-26 Thread Rafael Bandeira aka rafaelbandeira3
For sure that's a way to do that. > > Can I create a model that will show me a list of all users in Ohio and > Kentucky? > Are both dbs on same host and can they be accessed by same app's db client and therefore be used in a same sql query? --~--~-~--~~~---~--~~

Re: Multiple views

2008-11-23 Thread Rafael Bandeira aka rafaelbandeira3
> On the front-page of my application I want to be able to display > numerous other views. For example I may want to display a view of my > pages controller (for example a welcome message), and a view from my > calendar controller. > > How would I do this? use View::element(), as such: $this->el

Re: Named parameters VS $_GET

2008-11-20 Thread Rafael Bandeira aka rafaelbandeira3
ted data or something that has no direct > impact on the pages content, you might instead choose query strings. > > Hope that helps, > EW > > On Nov 19, 4:55 am, Rafael Bandeira aka rafaelbandeira3 > > <[EMAIL PROTECTED]> wrote: > > Query strings are evil for

Re: cakePHP auth help (for a cake newbir)

2008-11-20 Thread Rafael Bandeira aka rafaelbandeira3
>It's important to know what's out there! Totally agreed, I've done it before. The conclusion: almost every other framework is a) ugly and/or b) unlogical and/or c) useless and/ or d) too complex for it's too unsensible featurity. And yes. CI is totally unlogical and bloated with lots of crap feat

Re: cakePHP auth help (for a cake newbir)

2008-11-20 Thread Rafael Bandeira aka rafaelbandeira3
the easiest way to get you on the path to the success is: quit CI and all other non-logic based framework out there. you little heretic man... ;-) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To po

Re: Mambo on CakePHP brainstorm

2008-11-19 Thread Rafael Bandeira aka rafaelbandeira3
What I see a lot is people looking for a admin backend that actually works. A CMS just for the MS. I think that a fashion way of delivering data to views, and a good UI work on admin end is what people really seek. Modularity and extensibility are huge pluses - but not strictly necessary. --~--~--

Re: Named parameters VS $_GET

2008-11-19 Thread Rafael Bandeira aka rafaelbandeira3
Query strings are evil for seo. That's why. --~--~-~--~~~---~--~~ 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: Fatal error: Maximum execution time of 30 seconds exceeded

2008-11-14 Thread Rafael Bandeira aka rafaelbandeira3
Tópicos em português devem ser postados no fórum pt-br. ok? --~--~-~--~~~---~--~~ 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 grou

Re: How to dynamically load controller based on field in database.

2008-11-13 Thread Rafael Bandeira aka rafaelbandeira3
On 13 nov, 03:53, Nick <[EMAIL PROTECTED]> wrote: > Basically I am using wildflower cms which is built on cakephp. > It routes are setup so that / goes to the pages controller. > I am building a product catalog and could simply have the urls be / > products/category/product-name > however I do n

Re: Model Validation -> 'blank' rule triggered without beeing set

2008-11-13 Thread Rafael Bandeira aka rafaelbandeira3
> triggered? And how can i avoid it without changing the cakecore? set the 'rule' key on $validate for each field, and specify the rule you want it to follow, when a validation scheme is set on $validate but no rule is specified, the 'blank' rule is assumed. Please refer to the cookbook for more

Re: HABTM Model::save() or Model::__saveMulti() seems to be broken :-/

2008-11-12 Thread Rafael Bandeira aka rafaelbandeira3
> Model.[0].[key]='a' > Model.[0].[key]='b' > Model.[0].[key]='c' what is it? the structure should be like this: $data['HABTMModel']['HABTMModel'] = array( array('HABTMAssociationForeignKey' => 1), array('HABTMAssociationForeignKey' => 2), array('HABTMAssociationForeignKey' => 3) );

Re: HABTM Model::save() or Model::__saveMulti() seems to be broken :-/

2008-11-11 Thread Rafael Bandeira aka rafaelbandeira3
Forgot to mention, if you just want to keep your tables as they are, refer to #5722¹ to see the correct data set format to use. ¹ - https://trac.cakephp.org/ticket/5722#comment:2 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl

Re: HABTM Model::save() or Model::__saveMulti() seems to be broken :-/

2008-11-11 Thread Rafael Bandeira aka rafaelbandeira3
Model::__saveMulti() was changed in the last few days due to a bug, new tests were added, and everything seems to be working just as expected. The problem is that the data format you are using is only supported by numeric ids and uuids, being processed only if it's values are 36 char long or numer

Re: Fatal error Call to undefined method Controller Html()

2008-10-31 Thread Rafael Bandeira aka rafaelbandeira3
> link('Activate account', > array('controller'=>'users', 'action' => 'activate', $userid); ?> ^ it's missing a close bracket here -^ anyway: > Is there a way the above can be used to print out an absolute url ? $html->link('Activate account', $html- >url(arr

Re: internazionalization | gettext not working on production server: any idea?

2008-10-15 Thread Larry E. Masters aka PhpNut
Unless you are using an old version of CakePHP this should have been corrected months ago. -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ On Wed, Oct 15, 2008 at 4:14 PM, cakeFreak <[EMAIL PROTECTED]>

Ldap_source Addition

2008-10-13 Thread Brad V. aka iBspoof
I noticed there wasn't the ability to limit the fields in a hasMany, hasOne, or belongsTo association in LdapSource so I added one. Below is the code to replace generateAssociationQuery(). Make sure your foreign key is within your limited fields if used. function generateAssociationQuery(& $mo

Re: In controller using too many models hit the performance?

2008-10-11 Thread Larry E. Masters aka PhpNut
Should have added, refresh your page within 10 seconds and you should see the caching does work. -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ On Sat, Oct 11, 2008 at 9:42 PM, [EMAIL PROTECTED] < [EM

Re: In controller using too many models hit the performance?

2008-10-11 Thread Larry E. Masters aka PhpNut
http://groups.google.com/group/cake-php/browse_thread/thread/93560397e44819e6/e69f61828e527664 -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ On Sat, Oct 11, 2008 at 9:42 PM, [EMAIL PROTECTED] < [EM

Re: HABTM & Belongs_To Together?

2008-10-11 Thread Larry E. Masters aka PhpNut
Keith, Bin you models and send the link to the bin in your email, I will show you how to fix it. http://bin.cakephp.org/add/Keith -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ On Sat, Oct 11, 2008 at 8:45 PM

Re: HABTM & Belongs_To Together?

2008-10-11 Thread Larry E. Masters aka PhpNut
avior." -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ On Sat, Oct 11, 2008 at 6:59 PM, <[EMAIL PROTECTED]> wrote: > > Ok yea i am not sure abt the first part but David was right the > debuging

Re: AppController being ignored

2008-10-10 Thread Larry E. Masters aka PhpNut
class EventsController extends Controller { should be: class EventsController extends AppController { -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ On Fri, Oct 10, 2008 at 10:09 AM, Fabricio Leonardo

Mozilla's Laura Thomson on The Show

2008-10-06 Thread Jeff Loiselle aka phishy
For those of you that missed Laura Thomson's presentation at CakeFest, or left wanting to know more, we are pleased to announce that on Wednesday October 22, 2008 6:00 UTC-4 she will be joining us on The Show (http://live.cakephp.org). Laura has been working at Mozilla for over a year now, and has

Re: CakePHP 1.1, AJAX and forms not doing anything.

2008-09-30 Thread aka
Yes Sorry clemos, was alittle tired on this afternoon. Here is the question completely rewritten :) 1. Download the latest stable release of CakePHP (1.1.19.6305) 1.1 Set it up and running. 2. Download the prototype.js library and copy it to your fresh cake installation "js" -folder. 3. Lets c

CakePHP 1.1, AJAX and forms not doing anything.

2008-09-30 Thread aka
Hi! I have a controller, which fetches other controllers data through requestAction(). The first element contains a form in which there is an $ajax- >submit(...); the problem here is that the form does nothing. The form doesen't even send XHR request. However, the $ajax->link's works just fine

Re: class 'Routes' not found

2008-09-25 Thread Rafael Bandeira aka rafaelbandeira3
> class 'Routes' not found You are mispelling "Router" somewhere in your application, probably on app/config/routes.php --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send ema

Re: To model or not to model

2008-09-25 Thread Rafael Bandeira aka rafaelbandeira3
> > Still thinks that executing queries is needed? > > Yes. Sometimes You have uncommon database design, and You can't > EFFECTIVELY receive data just by using standard, even magic, model Definetly correct, my sentence wasn't much happy. I meant for the cases he presented. Anyway, keep in mind th

Re: Weird behavior with characters

2008-09-24 Thread Rafael Bandeira aka rafaelbandeira3
tried to set your source code files encoding to UTF-8? The default of many IDEs is to set them as ISO-8859-1, wich messes up with accented chars, make sure you are rendering your content in UTF-8 too. But anyway, I would like to point that it's not a good idea, accented chars are generally a pain

Re: bulk load data into CakePHP?

2008-09-24 Thread Rafael Bandeira aka rafaelbandeira3
t know if anyone's done any sort of > measurements about "CPU X, with memory Y GB, Cake can draw Z records > into memory in A milliseconds", but it would be fascinating to see :) > > Thanks again for the quick, really helpful response! > (And, for what it's worth, I'

Re: To model or not to model

2008-09-24 Thread Rafael Bandeira aka rafaelbandeira3
> > Rule of thumb perhaps? :) > If you really mean it: Let's say rule of thumb isn't exactly a rule. Now, if you were being ironic: Yay right, that's the kind of rule that can be applied to a pattern! --~--~-~--~~~---~--~~ You received this message because you are

Re: bulk load data into CakePHP?

2008-09-24 Thread Rafael Bandeira aka rafaelbandeira3
Mike, I think it's not "how much data is Cake intended to deal with" is how much data your app is intended to deal with, thousands of records is not something that should be dealed by php, the database does it much faster and safer. Having lots of data in database doesn't mean you have to deal wit

Re: To model or not to model

2008-09-24 Thread Rafael Bandeira aka rafaelbandeira3
First of all people: what Rule? It's not made of rules, it's a pattern to follow - but follow as you want. Second, no, it doesn't "break the Rule" it only makes your code uglier and hard to read - see above - but the thing is, why to use a hand made query when you can easily/prettier/"readablier"

Re: bulk load data into CakePHP?

2008-09-23 Thread Rafael Bandeira aka rafaelbandeira3
Hey Mike, it's totally not a matter of performance here. First of all, there's no reason on use this approach for a that huge amout of data, you should probably import it to your db. But if you want to do this in the app layer, maybe it's a feature - I don't know, you should definetly build INSERT

Re: Models: Why not more Object Oriented??

2008-09-23 Thread Rafael Bandeira aka rafaelbandeira3
I don't really get it... you can easily handle your data in Model side, even more now since [7640] - wich actually encourages you to do so. Ok, but lets focus on the "iterating more than once" problem. After all isn't it what you actually do in every MVC based app? i.e: db (iteration over table da

Re: .po files look weird

2008-09-22 Thread Larry E. Masters aka PhpNut
More standard? The file format is THE standard. Do a little research on gettext. http://www.google.com/search?q=gettext -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ On Mon, Sep 22, 2008 at 9:00 AM, toby78

Re: Simply aligning form->input fields and labels nicely....

2008-09-22 Thread Rafael Bandeira aka rafaelbandeira3
You can use an array to specify label's tag attributes: $form->input('Schedule.expected_check_in', array('label' => array('class' => 'input-label', 'text' => 'Expected Arrival', 'title' => 'When are you expecting to arrive at the place?'))); The 'text' key is the one to be used as the text, so t

Re: cake 1.2 custom route

2008-09-03 Thread aka
t; "view"), >     array('id' => '[0-9]+', 'pass' => array('id')) > ); > > On Sep 3, 1:37 pm, aka <[EMAIL PROTECTED]> wrote: > > > Ok, i've been breaking my head over this. > > > I'm

cake 1.2 custom route

2008-09-03 Thread aka
Ok, i've been breaking my head over this. I'm trying to change the routing of my app so that (for my base controller, lets say 'posts') it will be hidden in the url. That is to say that i can use url's like www.mysite.com/view/1 instead of www.mysite.com/posts/view/1. Effectively just hiding (or

  1   2   3   4   5   >