Re: Special table/column name

2015-06-08 Thread Leo Wong
Hello euromark, Thanks a lot, beside Name and Title, any others ? If so, where can I found the full list. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "Cake

Re: cakephp 3.0- login and registration using custom tables

2015-06-07 Thread Leo Wong
Hello, I have the same question, cakephp provide advance feature but require some specific Talbe/Field, How can we know more detail about those name ? Thank you. On Monday, June 1, 2015 at 5:39:15 AM UTC+8, sakshi bhalla wrote: > > Hello, > > can anyone please help me with the source code for

Special table/column name

2015-06-07 Thread Leo Wong
Hi, It seems there are some special table/column name will have advantage for cakephp, like the column "name" will be show rather than id. Th username and password also. My question is, where can I found the information about the special name ? Thank you. Leo -- Like Us o

Re: $form->input interpreting 0 as unset in first parameter

2010-06-18 Thread leo
On 18 June, 14:34, euromark wrote: > "but it makes handling $this->data clumsy" > how come? > any examples on that matter? > Index after example: Array ( [Node] => Array ( [parent_id] => Array ( [1] => 0 [2] => 0 ...

Re: $form->input interpreting 0 as unset in first parameter

2010-06-18 Thread leo
Sorry, Cake version was 1.2.5. 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" group. To post to this group, send email to cake-php@googlegroups.c

Re: $form->input interpreting 0 as unset in first parameter

2010-06-18 Thread leo
> usually you have the counting part in the middle or the end: > > $form->input('NodeDescriptor.'.$count.'.title'); That's the way I did it first of all, but it makes handling $this- >data clumsy. Nor does it explain why the original fails. But thanks for your input! Check out the new CakePHP Ques

$form->input interpreting 0 as unset in first parameter

2010-06-18 Thread leo
This has me beat. I'm trying to create an array of fields in cakePHP 1.3 & PHP 5.3.2 The array is zero based. On the first iteration, $count == 0. For some reason the string concatenation seems to convert this to null or unset which cake then interprets as "insert controller name here", viz: f

Re: Install cakePHP in Ubuntu 10.04

2010-06-17 Thread leo
just copies the config file from > modules-available to modules-enabled) to enable mod_rewrite, then it > will work perfectly. > > On Jun 16, 3:33 am, leo wrote: > > > Installing AMP on Ubuntu is trivial. The confusing part is getting > > CakePHP to work. It is not out-of-t

Re: : reuseable view

2010-06-16 Thread leo
    'label' => 'List {%Ns}', >                 'url' => array('action' => 'index') >         ), >         array( >                 'label' => 'List {%Ns}', >                 'url' =&g

Re: Install cakePHP in Ubuntu 10.04

2010-06-16 Thread leo
Installing AMP on Ubuntu is trivial. The confusing part is getting CakePHP to work. It is not out-of-the-box because the Ubuntu default Apache config doesn't include mod_rewrite. Even when you have that set up, there is some Debian-ness to contend with. The trick is finding the right files to alter

Re: Automagic Form (Drop down list)

2010-06-16 Thread leo
> usually you dont pass the dummy field via controller > there is an empty field param for it > > echo $this->Form->input('category_id', array('options'=>$cats, > 'empty=>'dummyName'); I prefer to handle this kind of logic in the controller. Check out the new CakePHP Questions site http://cakeqs.

Re: CakePHP

2010-06-16 Thread leo
Ubuntu and Debian are quirky when it comes to Apache. Hopefully this will help: http://leoponton.blogspot.com/2010/05/getting-cakephp-up-and-running-on.html On 14 June, 17:07, Abrão Ximenes wrote: > can you send the steps how to install and configure cakePHP in Ubuntu 10.04 > LTS Lucid Lynx???

Re: CakePHP

2010-06-16 Thread leo
Ubuntu and Debian are quirky when it comes to Apache. Hopefully this will help: http://leoponton.blogspot.com/2010/05/getting-cakephp-up-and-running-on.html On 14 June, 17:07, Abrão Ximenes wrote: > can you send the steps how to install and configure cakePHP in Ubuntu 10.04 > LTS Lucid Lynx???

Re: CakePHP

2010-06-16 Thread leo
Ubuntu and Debian are quirky when it comes to Apache. Hopefully this will help: http://leoponton.blogspot.com/2010/05/getting-cakephp-up-and-running-on.html On 14 June, 17:07, Abrão Ximenes wrote: > can you send the steps how to install and configure cakePHP in Ubuntu 10.04 > LTS Lucid Lynx???

Re: Offline Manuals

2010-06-16 Thread leo
> just need to update the get script to point to the 1.3 manual. The > script currently points to the 1.2 manual. Yes, I should have pointed that out. For anybody who is confused about using the script, edit .../manual- builder/get to point to the desired manual using one of the above urls then i

Re: : reuseable view

2010-06-15 Thread leo
Yes, you can do that by having conditional code in the view and setting the template: $this->render('crudView'); and a mode in a view variable: $this->set('mode','edit'); In general, you be better off following the accepted way, though, as things can get terribly comfusing and complicated if you

Re: Automagic Form (Drop down list)

2010-06-15 Thread leo
You might also want to do this if you want to specify which fields to return: $this->set('categories', $this->Item->Category- >find('list',array('fields'=>array('id','other_name')); If you need to add a dummy field, try: $categories = array(0=>'unassigned') + $this->Item->Category- >find('list',ar

Re: Automagic Form (Drop down list)

2010-06-15 Thread leo
You might also want to do this if you want to specify which fields to return: $this->set('categories', $this->Item->Category- >find('list',array('fields'=>array('id','other_name')); If you need to add a dummy field, try: $categories = array(0=>'unassigned') + $this->Item->Category- >find('list',ar

Offline Manuals

2010-06-15 Thread leo
I'm sure they've been posted before, but some of you might find these links useful. They link to the manual in one page - useful for offline use or creating a PDF using Dardo Sordi Bogado's build script: http://rapidshare.com/files/218826372/manual-builder.zip Also see this thread: http://groups.

Re: case sensitivity on certain hosting

2010-05-28 Thread leo
27-5-10: "we do know that the word "users" is not reserved in any way by the operating system or Apache so the issue must be caused somehow in the code." 28-5-10: "We have removed the users/ redirect of the control panel. On 28 May, 15:39, leo wrote: > > I bet this

Re: case sensitivity on certain hosting

2010-05-28 Thread leo
> I bet this is related:http://www.absolute-escapes.com/user > > ...sounds like that really means they're sitting on their elbows. Well spotted. They must have very long arms. The error log, incidentally, was /var/log/httpd/error_log Thanks for your help. Check out the new CakePHP Questions sit

Re: case sensitivity on certain hosting

2010-05-28 Thread leo
URI} !^/awstats/ RewriteRule^$ app/webroot/[L] RewriteCond %{REQUEST_URI} !^/awstats/ RewriteRule(.*) app/webroot/$1 [L] On 28 May, 15:13, AD7six wrote: > On May 28, 3:49 pm, leo wrote: > > > I have examined the logs of two websites on the same hosting and there >

Re: case sensitivity on certain hosting

2010-05-28 Thread leo
I have examined the logs of two websites on the same hosting and there is nothing relating to users. The only site references are benign: exclog: site37: domain absolute-escapes.com I'm about to roll up my sleeves and dive into the auth component. Check out the new CakePHP Questions site http://c

Re: case sensitivity on certain hosting

2010-05-28 Thread leo
ed the question in in case anybody else had encountered the same issue. On 28 May, 13:29, leo wrote: > if you want to see it in action, try these links: > > http://www.absolute-escapes.com/users/login > > http://www.absolute-escapes.com/Users/login > > The first fails, the

Re: case sensitivity on certain hosting

2010-05-28 Thread leo
if you want to see it in action, try these links: http://www.absolute-escapes.com/users/login http://www.absolute-escapes.com/Users/login The first fails, the second works. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You rec

Re: case sensitivity on certain hosting

2010-05-28 Thread leo
on the same server - and still ONLY with users / Users. This leads me to believe it is either a server issue (it's running CentOS) or an obscure bug in Cake Auth. On 28 May, 12:45, AD7six wrote: > On May 28, 10:07 am, leo wrote: > > > @Andy: Sorry, I thought I'd inclu

Re: case sensitivity on certain hosting

2010-05-28 Thread leo
ve seen in this group. On 27 May, 17:47, Andy Dirnberger wrote: > Does that host have a "users" folder at ..users? > > On May 27, 11:37 am, leo wrote: > > > I'm having a problem on one of our hostings with case sensitivity. > > Strangely, it is only on the 

Re: case sensitivity on certain hosting

2010-05-28 Thread leo
ve seen in this group. On 27 May, 17:47, Andy Dirnberger wrote: > Does that host have a "users" folder at ..users? > > On May 27, 11:37 am, leo wrote: > > > I'm having a problem on one of our hostings with case sensitivity. > > Strangely, it is only on the 

case sensitivity on certain hosting

2010-05-27 Thread leo
I'm having a problem on one of our hostings with case sensitivity. Strangely, it is only on the 'users' controller. If I do '..users/login' it doesn't work. If I do '..Users/login' it does. If I move the application to a subfolder, it works for both upper and lower cases. No other controllers are

tree behaviour - remove from tree

2009-10-09 Thread leo
I'm using tree behaviour and want to remove a node from the tree without deleting its children. I'm having trouble getting this to work. The manual says 'removeFromTree()' and little else. It seems from the few snippets I googled that it takes id as a parameter. Logical, but does nothing. The AP

Routing offsite

2009-09-25 Thread leo
I have built a simple storefront that bolts onto an existing php website. The CakePHP application (the store) includes the dynamic menu from the existing CMS. The urls in the menu are relative, e.g. href="publications.html" and all have the '.html' extension. I need to route these pages to outsid

containable behaviour in app_model

2009-08-21 Thread leo
Is there any reason why it wouldn't be a good idea to globally add containable behaviour in app_model? viz: class AppModel extends Model { var $actsAs = array('Containable'); It would certainly save time over slavishly adding it to every model. --~--~-~--~~~---~--

knowledge base component

2009-08-03 Thread leo
Does anyone know of a knowledge base / wiki component for Cake? It's not an easy thing to search for on Google. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cak

bug? $html->addCrumb()

2009-07-28 Thread leo
As this worked in an earlier release, and nobody has responded to my previous post, I'm wondering if this is maybe a bug. If so, I'll log it. Some time ago I used the bread crumb functionality of HtmlHelper without a great deal of difficulty. Now, a year or so on, I'm at it again. This time I'm

Get the last query string

2009-07-23 Thread Leo
Hi Guys I've has a look through the API and searched a couple of forums but can't seem to find out how to get the last executed sql query string? Any idea? Thanks Leo --~--~-~--~~~---~--~~ You received this message because you are subscribed to

bread crumbs problem

2009-07-17 Thread leo
Some time ago I use the bread crumb functionality of HtmlHelper without a great deal of difficulty. Now, a year or so on, I'm at it again. This time I'm developing in a full release (previously it was RC2 or RC3) and it doesn't seem to work. I don't have access to my previous code for reference.

Test tables created are being pluralized!

2009-06-02 Thread Leo Mendoza
/tests/fixtures/faculty_fixture.php '1', 'event_id' => '1', 'headshot' => 'hs.1.jpg', 'name' => 'Dr. Willem Wildbrigade', 'title'=>'Master of the Universe', 'biography' => 'biogr

Re: Test table creation failing

2009-06-01 Thread Leo Mendoza
-+--------+ 3 rows in set (0.00 sec) Any thoughts? TIA - leo On May 31, 1:15 pm, Ricky Paz wrote: > In your model EventAdmin is there any relationship with some model > matched with test_event_admins's table? --~--~-~--~~~---~--~~ You receiv

Test table creation failing

2009-05-29 Thread Leo Mendoza
error message, create app/views/ errors/missing_table.ctp --- The "event_admins" table is there, and I see it getting "DESCRIBE"ed in the output below the error, and I know it's not permissions because I see it creating 2 or 3 other tables before failing. Any ideas? leo

Cake Sites Stats

2009-02-24 Thread leo
Are there any reliable statistics for real sites built with Cake? --~--~-~--~~~---~--~~ 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 thi

CMS opinion?

2009-02-24 Thread leo
All of my CakePHP work to date has been a CMS of one sort or another. I'm beginning to wonder if maybe I should be using an off the shelf CMS instead, at least for some of the projects (some are too bespoke to reasonably do that). While I've looked at Drupal, Joomla etc. the arguments for and aga

Re: user Profile protection howto

2009-02-19 Thread leo
Check who is the current user and only allow based on that? On Feb 19, 7:55 pm, amarradi wrote: > Hello together, > > How do i protect the userprofiles? > > Because i don't know how i protect the userprofiles mutually. if a > user is logged in and he visits > > /cakePHP/users/edit/1 he can edit

Re: email to blog functionality

2009-02-19 Thread leo
On Feb 19, 10:50 am, Adam Royle wrote: > I've done it using cpanel (quite easy actually), and from some googling > it seems possible with plesk too. Just search for " name> pipe email to script". > > With #1, you can use php imap extension, which lets you access both pop > and imap mailboxes. > >

Re: email to blog functionality

2009-02-19 Thread leo
instead of to a mailbox. > > I have used #2 and it works well because the script only runs when it > needs to. > > Either way, once you get the email content you'll need to parse it > somehow to find the relevant content. I've used the mailparse php > extension and it

email to blog functionality

2009-02-19 Thread leo
I'm looking at updating a blog by email - a la blogger & wordpress. Anybody have any ideas about how to go about this? Last time I thought about it I found some protocols and stuff through google, but google seems these days do be a bit chaffy and I can't remember what the protocol was. Anyway

Re: deprecation of useful functions

2009-02-17 Thread leo
Sorry, you're right. The book is, however, based on the info from the API. On Feb 17, 1:20 pm, AD7six wrote: > On Feb 17, 1:12 pm, leo wrote: > > > @Andy > > > > Why add comments? > > > The API extracts the comments from the code. Therefore, the function &

Re: Multiple validation rules per field

2009-02-17 Thread leo
A favourite of mine was a colleague who wasn't very literate (or hygienic). When he spell checked his docs in Word, if a word wasn't found, he'd add it to the shared dictionary. It wasn't found because he'd spelt it so badly. Anybody else spell checking their work would then have correct spellings

Re: deprecation of useful functions

2009-02-17 Thread leo
@Andy > Why add comments? The API extracts the comments from the code. Therefore, the function should be comprehensively commented. Staying with the example of find, without reference to the deprecated function findNeighbours, it is not possible to see what parameters need to be passed without de

Re: deprecation of useful functions

2009-02-16 Thread leo
> http://bakery.cakephp.org/articles/view/quick-tip-doing-ad-hoc-joins-... Granted this gives great flexibility, but it doesn't really answer my comment : I'm not calling into question the new find functionality - that was just an example. Look at the thread title and the first sentence of the co

Re: deprecation of useful functions

2009-02-16 Thread leo
t; You could always add your own wrappers to your AppModel :-) > > On Feb 16, 3:52 pm, leo wrote: > > > > I could never remember the order of the many many > > > arguments to find and had to look them up at least once a day. Putting > > > them info an associative

Re: Multiple validation rules per field

2009-02-16 Thread leo
That particular misspelling has bugged me for years. It was actually a keyword in a language I used to use. On Feb 16, 5:42 pm, WebbedIT wrote: > Hi Leo, > > It certainly seems to be down to allowEmpty which the book states ... > > "When set to true, an empty field will skip

Re: deprecation of useful functions

2009-02-16 Thread leo
> I could never remember the order of the many many > arguments to find and had to look them up at least once a day. Putting > them info an associative array helps me a lot because I don't have to > remember "pointless" index-numbers. I have the same problem the new way round. The associative arr

Re: Multiple validation rules per field

2009-02-16 Thread leo
I've just looked at some old code and I recall that I had to leave the message string empty for it to work. I didn't have a problem with the position of allowEmpty = true. then in the form, I handles the message like this: echo $form->label('title', __('TITULO_GA_BLOCS',true)); echo $for

Re: Multiple validation rules per field

2009-02-16 Thread leo
Also, you've misspellt dependency ;) On Feb 16, 4:05 pm, leo wrote: > Just a quick thought without really looking into it: try prepending > the fields with the model name viz: Something.date_operational > > L > > On Feb 16, 4:00 pm, WebbedIT wrote: > > > Hi,

Re: Multiple validation rules per field

2009-02-16 Thread leo
Just a quick thought without really looking into it: try prepending the fields with the model name viz: Something.date_operational L On Feb 16, 4:00 pm, WebbedIT wrote: > Hi, > > Can anyone spot what I am doing wrong?  I have read the book and a few > blog articles on this and think I have ever

deprecation of useful functions

2009-02-16 Thread leo
Maybe I'm being old fashioned, but I don't really see the sense in deprecating functions like findAll and findNeighbours in favour of a do-it-all-pseudo-overloaded find. The syntax of the find function I now find extremely confusing e.g. possible parameters 'field' & 'fields'. Made more so because

Re: Cache not configured properly on Mac OS X

2009-01-31 Thread leo
yep - didn't work for me though. Can't be bothered to look into it the as I'm the only one using my server. On Jan 30, 5:17 pm, Rick wrote: > Instead of setting permissions on all tmp files/directories you can > just chown the ownership of the tmp directory to "www" (the user that > apache runs

Re: problem with routing

2009-01-30 Thread leo
I don't quite see how it is rendering the report as there is no conditional redirect. But the problem you have is that once you drop through to the default condition, you have no redirect, so CakePHP's default action is to render a view file corresponding to the name of the function. I think I did

Re: svn or git?

2009-01-29 Thread leo
th svn, that is. :) > > (I love a server with cli but on a 24" screen I feel silly typing cli > commands all day) > > On Jan 28, 1:09 pm, leo wrote: > > > > > Should I be using one rather than the other? > > > > > Will CakePHP eventually migrate

Re: XAMPP for linux

2009-01-29 Thread leo
try the xampp or ubuntu websites On Jan 29, 12:18 pm, Sergi Pasoev wrote: > Hi! > > Plese, tell me where to download XAMPP for Ubuntu AMD 64. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post

Re: Cache not configured properly on Mac OS X

2009-01-29 Thread leo
Try 777. It's the only way I could get it to work. Fwiw, I don't enable the cache on my dev server as it can lead to confusion trying to debug. On Jan 28, 9:26 pm, Rick wrote: > Version 1.2.1.8004 > > I downloaded and installed Cake in my Apache document directory in new > "Test" Directory.  I c

Re: New api template =(

2009-01-29 Thread leo
> Tell me please where can I find API-manual in the old design? You can't - it was broken. See:- http://groups.google.com/group/cake-php/browse_thread/thread/9dc3f5648023e2b4?q= This isn't a new template or design. It is a new application. --~--~-~--~~~---~--~--

Re: New api template =(

2009-01-29 Thread leo
http://thechaw.com/api_generator/tickets/view/4 - fixed (thanks Mark) On Jan 29, 9:00 am, Martin Westin wrote: > The new api (new code all the way) was written by Mark Story and Gwoo. > > http://mark-story.com/posts/view/the-new-face-of-cakephp-s-api > > Since they just released it a few days a

Re: svn or git?

2009-01-29 Thread leo
Thanks, Gwoo, that's what I wanted to know. It's like a vote of confidence in Git. Now I'll investigate it. On Jan 28, 7:48 pm, Gwoo wrote: > > Why does CakePHP use SVN. > > Because when we started CakePHP 3 years ago, Git did not exist. > > > while The Chaw appears to use GIT? > > Because now G

Re: What is the advised way to call a function from another controller?

2009-01-28 Thread leo
Glad you got it sorted. There seem to be various 'best practices' regarding OOP and MVC depending on who you are, what the language is and what the framework is. My personal best practice is 'get it done'. > Are you still in the North East or have plying your trade elsewhere? North East of Spain

Re: svn or git?

2009-01-28 Thread leo
> > Should I be using one rather than the other? > > > Will CakePHP eventually migrate to GIT? Here I didn't mean which is best for me, but which way is CakePHP going and would I be advised to follow? I already use SVN but it was a git to set up on OS X. --~--~-~--~~~-

Re: What is the advised way to call a function from another controller?

2009-01-28 Thread leo
> you can wrap them, again within the model class, with one function > that calls all. > Thinking about this, it might be more correct to code the wrapper method in the controller where the return result can be better tailored to the function of that controller. --~--~-~--~~---

Re: What is the advised way to call a function from another controller?

2009-01-28 Thread leo
Just checked your profile, Paul. We're from the same neck of the woods. I was born in Quarrington Hill. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@go

Re: What is the advised way to call a function from another controller?

2009-01-28 Thread leo
Looks good, but I'd be inclined to further break it up into functions that return individual lists. There might be a time later on when you want to just get ethnicities or sexualities or whatever. If need be, you can wrap them, again within the model class, with one function that calls all. On Ja

svn or git?

2009-01-28 Thread leo
This has probably been discussed before, but I can't find anything specific. Why does CakePHP use SVN, while The Chaw appears to use GIT? Should I be using one rather than the other? Will CakePHP eventually migrate to GIT? --~--~-~--~~~---~--~~ You received this

Re: nice new API layout

2009-01-28 Thread leo
Good work, chaps. Thanks. On Jan 27, 11:27 pm, Gwoo wrote: > Darn you guys are fast :) > > Mark Story and I have been working hard to get a truly functional API > up for everyone. Yes, this means that old bookmarks have moved. > However, we are happy to have working solution written in Cake. >

Re: Cms madesimple

2009-01-27 Thread leo
try a cms made simple forum. here be cakephp On Jan 27, 11:18 am, "apurb(php developer)" wrote: > hi!, > > i am new to cms made simple. > i want to upload image/photo/pdf file from frontend user after a user > logged in the frontend side.can any one help me step by step how i can > do this in cm

Re: What is the advised way to call a function from another controller?

2009-01-27 Thread leo
On Jan 27, 3:26 pm, RichardAtHome wrote: > or you could put the function in your AppController Surely then you would either have non-generic methods relating to models that don't exist at that point or models included unnecessarily in all controllers? --~--~-~--~~~---

Re: What is the advised way to call a function from another controller?

2009-01-27 Thread leo
I'm not suggesting this is the correct way to do it, but I would put those methods in the model definitions to which they relate. Then they are accessible from any controller that 'uses' that model in addition to its own. Then you can say something like: $organisations= $this->Person->Organis

Re: CakePHP In A Subdirectory?

2009-01-26 Thread leo
> I tried doing phpinfo() from the index.php file and nothing was > displayed Doesn't this ring any alarm bells? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to

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

2009-01-26 Thread leo
Until we all have fibre optic connections, is any of this relevant or important? it is a bit like going to the supermarket in your Ferrari. You might be able to pick up a loaf of bread, but you won't be taking a week's provisions home with you. Learn whichever framework you're using. Design and i

Re: CakePHP In A Subdirectory?

2009-01-26 Thread leo
Are you sure mod_rewrite is enabled? check by creating a phpinfo file and accessing it through your browser, then do a find "rewrite". If it is enabled, check in the httpd.conf file that allow_override for that directory spec is 'all'. I have only ever changed the top level .htaccess file. --~-

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: Which editor for Mac OS X?

2009-01-25 Thread leo
itors that came with Adobe Dreamweaver, since I > > already own it as a part of the suite I use. > > > On Jan 25, 7:45 am, Janoma wrote: > > > > I'd go for Smultron, though I don't think the newest versions work on > > > non-intel macs. > > > > On

Re: Wordpress and cakephp

2009-01-23 Thread leo
Go for it! At first it does seem like you're reinventing the wheel, but as time goes by, things become a lot quicker. Last year I spent a couple of days trying to figure out RSS, but this week I implemented it in another blog in half an hour. Cut & paste. One of the advantages of Cake is that it t

Re: Which editor for Mac OS X?

2009-01-23 Thread leo
@ chad & esoteric - see my comments on Eclipse & Java! @ jacobs - thanks, I'm giving it a go. Shame about Komodo - it was easily the best I used on Windows. On Jan 23, 5:04 pm, jabocs wrote: > I just found something this morning... and plan on playing with it > this weekend... but MacRabbit, wh

Re: Which editor for Mac OS X?

2009-01-23 Thread leo
Thanks, but neither of them are free. On Jan 23, 3:57 pm, Henrique Machado wrote: > http://macromates.com/http://www.panic.com/coda/ > > 2009/1/23 leo > > > > > Having spent months trying to find an adequate editor for Windows, I > > eventually settled on Komodo

Re: Wordpress and cakephp

2009-01-23 Thread leo
We did something like this a while back. The administration of Wordpress was entirely separate from the cake side of things, though. I imagine you would run into problems with authentication etc. if you try to get them to interact. Writing the blog/cms bit in cake is not at all difficult, but migh

Which editor for Mac OS X?

2009-01-23 Thread leo
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 slow it's unusable. I reverted to v4, but while it is a little quicker it is also a little unstable. It is still slow enough to

Re: Format fields in the european way

2009-01-21 Thread leo
Btw, the code you link to in afterFind is a dead link. On Jan 21, 3:46 pm, leo wrote: > Sorry. I just got the impression you were reinventing the wheel. PHP > will do the formatting for you. > > On Jan 21, 3:26 pm, Ernesto wrote: > > > thx for the resp but that's no

Re: Format fields in the european way

2009-01-21 Thread leo
data from related models being formatted many times > > On 20 Gen, 17:18, leo wrote: > > > I use srttotime() and pass the result to date() using format 'c' in > > PHP5 or 'Y-m-d' in PHP4 viz: > >     date('Y-m-d', strtotime($date)) > >

Re: baking cakephp on MAC OS

2009-01-21 Thread leo
> I  install fresh mysql, phpmyadmin but not working ? phpMyadmin won't help much except to say a PHP is talking to a MySQL. When you did the ps - ef | grep mysql.sock what were the outputs for file= and socket= ? Was there more than one? Do they correspond to the XAMPP directories? What is th

Re: Solution for static page with no "pages" in URL

2009-01-20 Thread leo
And that is what it does. Go to http://univerd.com/mantenimiento-jardin . That is a pages page. Nothing is specifically defined for that page. On Jan 20, 7:00 pm, "Jon Bennett" wrote: > Hi Leo, > > >  Router::connect('/pages/*', array('controller&#

Re: Solution for static page with no "pages" in URL

2009-01-20 Thread leo
27;home')); All the other controllers behave as expected. It works. The website is http://www.univerd.com (it's in Catalan/ Spanish)(and I didn't do the visual design) On Jan 19, 10:36 pm, Gonzalo Servat wrote: > On Mon, Jan 19, 2009 at 7:21 PM, leo wrote: > > > A

Re: Unable to get Bake working again (1.2)

2009-01-20 Thread leo
all the > apps run fine etc... > > I'm thinking its needing the path to an app set, but everything I have > tried ie > > cake bake -app /www/app > > etc has failed... :( > > d. > > On Jan 20, 3:55 pm, leo wrote: > > > Could it be something to do with t

Re: Format fields in the european way

2009-01-20 Thread leo
I use srttotime() and pass the result to date() using format 'c' in PHP5 or 'Y-m-d' in PHP4 viz: date('Y-m-d', strtotime($date)) $date will need to be formatted like "10 September 2000" - I don't think the month number will work, but look at the PHP manual for more info. This code I use in the

Re: Unable to get Bake working again (1.2)

2009-01-20 Thread leo
I'm sure I must just be > missing something but I can't figure it out for love nor money... > > Its a shame cos I have the server set up great and can just update the > main cake file etc, but its all kinda redundant if I can't bake... :( > > d. > > On Jan 20,

Re: Unable to get Bake working again (1.2)

2009-01-20 Thread leo
Try typing just cake. I use a Mac now, but as I remember (and also from looking at what's in the console folder) there is a cake.bat file that runs cake.php. you could also try something like: c:\somePath> php cake.php bake Sorry to be a bit vague, but I have reutilised the part of my brain

Re: Unable to get Bake working again (1.2)

2009-01-20 Thread leo
What is the rest of your path? The whole system path, that is. What are you typing on the command line, and what is your current directory when you do that? On Jan 20, 12:42 pm, "designv...@gmail.com" wrote: > Hi there, > > I have recently changed my WAMP setup locally and now have the > followi

Re: Counting Tags. What is the find() syntax?

2009-01-19 Thread leo
rocessing happening in your foreach loop. > What happens when you get 10,000 records? or 100,000? A relational > database eats this kind of aggregation for breakfast :-) > > On Jan 19, 4:20 pm, leo wrote: > > > I couldn't see the point in a separate tags table, so I have

Re: Solution for static page with no "pages" in URL

2009-01-19 Thread leo
en be able to do a Router::connect('/*',.. I've done something like this before, I just can't access the code. On Jan 19, 9:50 pm, Gonzalo Servat wrote: > On Mon, Jan 19, 2009 at 6:48 PM, leo wrote: > > > Are your static pages html or PHP? Either way, why can

Re: Solution for static page with no "pages" in URL

2009-01-19 Thread leo
Are your static pages html or PHP? Either way, why can't you just put them in webroot? They only need to be inside the cake structure if they're cake files. Jesse wrote: > I know this comes up a lot. I've always fixed this before (1.1) with a > core hack. I thought that as I moved my sites to 1.2

Re: baking cakephp on MAC OS

2009-01-19 Thread leo
H=Application/xampp/xamppfiles/htdocs/clalumni/cake/ > console/cake:$PATH' >> ~/.bash_profile > echo 'export PATH=Application/xampp/xamppfiles/lib/php:$PATH' >> > ~/.bash_profile > > but still not able to run cake bake? > > Please help me to run cak

Re: How do I limit the choice for time input to 30 minutes leaps?

2009-01-19 Thread leo
Christine, You might try this (I haven't tried it as I don't have time,but a quick look at the API found the attribute ' minuteInterval'): echo $form->input('date', array( 'minuteInterval' => 30)); Also look at the API http://api.cakephp.org/class_form_helper.html#363d9dcc25f7cd0624

Re: Counting Tags. What is the find() syntax?

2009-01-19 Thread leo
I couldn't see the point in a separate tags table, so I have a tags column on the table that requires it. To retrieve the tags and tag count, I do this: function getTagsWithCounts($conditions = array()) { // Return assoc_array(tags) for all records in database. Ke

  1   2   3   >