Re: form helper dateTime (cake 1.2)

2007-07-21 Thread Phurter
http://www.nabble.com/form-helper-dateTime-(cake-1.2)-t4070834.html On Jul 12, 5:00 pm, pete [EMAIL PROTECTED] wrote: hi, is there a way to set the minYear, maxYear for dateTime? ?php echo $form-dateTime('dateTime','DMY',24,null,null); ? i want to reduce the number of years within the form

Model input approach

2007-07-21 Thread Stuart
Hello, I'm stumbling through my first CakePHP project, and have hit a bit of a snag. The system that involves the following models: Product hasMany Revisions Revision hasMany Answers Each answers is of type Question Answers can have supporting documents I have a form that will input one new

moving from localhost: paths wrong

2007-07-21 Thread virtualj(at)gmail.com
Hi, I created a website with cakephp on my localhost webserver and now I have put it all on my webhost. All the static pages work but with some controllers I get the message: code Warning (2): require() [function.require]: Unable to access /home/

Re: Workflow engine for cake

2007-07-21 Thread Tijs Teulings
I think you are talking about workflows (the problem) and domain specific languages (a solution). http://en.wikipedia.org/wiki/Domain-specific_programming_language All really interesting stuff but way out of scope for a lean and mean framework you might just want to build a blog with. Tijs

Re: Sortable.create

2007-07-21 Thread citrus
Make sure you include both prototype and scriptaculous. Try this tutorial if you're confused: http://www.dustinweber.com/cakephp/cakephp-sortable-ajax-drag-drops-the-basics/ On Jul 21, 6:30 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Has anyone successfully used Sortable.create with cake

FormHelper checkboxes

2007-07-21 Thread MonkeyGirl
Hi again! I'm trying to use the FormHelper to make checkboxes for simple enum data in my database. The values in the database are always stored as 'yes' or 'no'. I can get the form to work just fine using dropdown select elements, but I can't get it to work with checkboxes. The boxes are always

Re: Workflow engine for cake

2007-07-21 Thread Kunthar
I would be really happy if you just talk about logic you've applied by using cake way. Maybe i've missed something on the way :) On Jul 21, 3:14 am, Felix Geisendörfer [EMAIL PROTECTED] wrote: I'm developing such an engine right now. It allows the company to take the items from their orders

Using AJAX to fill a div at page onload.

2007-07-21 Thread Ruud Gâst
Goodday everyone, I've got the following controllers and views: /posts/index /posts/view/[postid] /pictures/picturepreview/[photobookid] /pictures/pictures/[photobookid] Now in the /posts/index and /posts/view/[postid] views I've got the following div: ... div class=pictures id=pictures?=

Re: Workflow engine for cake

2007-07-21 Thread Kunthar
Hello, Thank you all for replies. Let me give some examples. Suppose that we are coding an ecommerce site. In this site, we need some rules should apply on specific points as follows; 1. Action triggered events, example; Site manager can prepare himself campaigns about products. It means; a)

Re: Workflow engine for cake

2007-07-21 Thread Kunthar
AFAIK, you can code a super controller easily on cake, do you mean something like struts on Java? On Jul 21, 1:51 am, francky06l [EMAIL PROTECTED] wrote: I like the idea of workflow engine or rules engine. Actually, Cake is a framework to design application, but having the user (or

Refer to non-association model

2007-07-21 Thread Feris Thia
Hi All, I have two models : 1. Users 2. Categories Which have no model association at all. In user controller (user_controller.php), I like to view a list of categories (Category Model) but I failed. I try to use $this-Category-findAll method inside function of user controller, but it returns

Re: moving from localhost: paths wrong

2007-07-21 Thread hb
I had the same problem. Remove the file called class.paths.php under app/tmp/cache/persisten/ that helped for me. :D On 21 Jul., 11:05, virtualj(at)gmail.com [EMAIL PROTECTED] wrote: Hi, I created a website with cakephp on my localhost webserver and now I have put it all on my webhost.

Mac install using MAMP get MYSQL can't connect error

2007-07-21 Thread road runner
Hi, installing latest version of Cake on Mac OS 10.3.9 Using MAMP but when I access the following page is returned properly but with message Can't connect see below. CakePHP Rapid Development Your database configuration file is present. Warning: mysql_connect() [function.mysql-connect]: Can't

Re: Mac install using MAMP get MYSQL can't connect error

2007-07-21 Thread Walker Hamilton
You're setting the port in database.php in the config folder of your app, correct? If you're baking (via terminal) you can use the following script to get OS X's built-in php to use MAMP's mySQL install: cd /tmp ln -s /Applications/MAMP/tmp/mysql/mysql.sock mysql.sock uas long as it's

Re: moving from localhost: paths wrong

2007-07-21 Thread Walker Hamilton
He's right.essentiallyyou copied your app/tmp/ folder to your server set DEBUG to 0. You can set DEBUG to 2 and run the app and the files in /tmp will all be replaced with proper paths, etc for the new system. Then set the app back to DEBUG 0 (in core.php)

Re: Refer to non-association model

2007-07-21 Thread Walker Hamilton
put: var $uses = array('User', 'Category'); ...at the top of your users_controller class --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Re: FormHelper checkboxes

2007-07-21 Thread Walker Hamilton
Zoe, CakePHP doesn't really support enumthis is because some of the DBs that cakephp was made to work with do not support it. Instead use: tinyint(1) Then the cake checkboxes will work auto-magically! --~--~-~--~~~---~--~~ You received this message because

db design feedback

2007-07-21 Thread rtanz
hi i have designed a database for my cakephp reviewing application that i will develop, could you give me feedback on whether it is well constructed in cakephp terms? it can be found here www.jpgalea.com/design.jpg thanks! --~--~-~--~~~---~--~~ You received this

model and database tables

2007-07-21 Thread rtanz
does there have to be a model for each table in the database? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this

Re: moving from localhost: paths wrong

2007-07-21 Thread virtualj(at)gmail.com
Thanks a lot it worked. The only problem I have now is that the login page is blank. I use othAuth and it works on my local host but not on the web server. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP

Re: model and database tables

2007-07-21 Thread Langdon Stevenson
rtanz wrote: does there have to be a model for each table in the database? Only is you want to be able to access a table via Cake's standard techniques. Langdon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Google Checkout

2007-07-21 Thread [EMAIL PROTECTED]
Hi, anyone knows how to integrate google checkout in cakephp? If there's someone knows can you help me with it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Re: Sortable.create

2007-07-21 Thread Adam Royle
I found a small bug in the ajax helper recently when using the Sortable method, but this is fixed in revision 5325. Details of the bug (and patch) https://trac.cakephp.org/ticket/2810 Cheers, Adam On Jul 21, 9:30 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Has anyone successfully used

Re: db design feedback

2007-07-21 Thread [EMAIL PROTECTED]
you made a mistake in the many to many tables: many-to-many join tables should be named: alphabetically_first_table_plural_alphabetically_second_table_plural ie: tags_users checkout section 3 of http://manual.cakephp.org/appendix/conventions Cheers Rami On Jul 21, 3:23 pm, rtanz [EMAIL