Re: Help me set up cakephp on godaddy

2007-05-24 Thread Nathan Garza
Ooops, looks like you already figured it out. Teach me to post before reading to the end of a thread. Well, congrats on getting it all worked out! On 5/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > Okay everone good news, got it set up and running. > > Here's what I did (This applies

Re: Help me set up cakephp on godaddy

2007-05-24 Thread Nathan Garza
I actually just wrote a blog post about getting cake working a godaddy hosting. Check it out! http://nathan.ashleafmedia.com/2007/baking-cakephp-on-godaddy-hosting/ On 5/24/07, Samuel DeVore <[EMAIL PROTECTED]> wrote: > > I have client that I set up with a cake site about a year ago on godaddy >

Bug with - /cake/libs/router.php :: stripEscape() - cakephp.v.1.1.15.5144

2007-05-24 Thread alan
https://trac.cakephp.org/ticket/2640#preview The new method in router.php is: stripEscape($param) The way it's currently written, it can run into problems with highly nested arrays basically it assumes that there's a text value instead of an array value. This is very easily fixed by making t

Issue with Sitepoint Article

2007-05-24 Thread Merc
I am attempting to follow the article at Sitepoint (http:// www.sitepoint.com/article/application-development-cakephp). I believe that I have CakePHP successfully installed and configured (at http://www.b13ed.com/); however, I am stuck at page 2 of the article. I cannot get http://b13ed.com/notes/

Including a cake ajax form in a non cake php page

2007-05-24 Thread chewie124
I have an ajax driven form in cake, that works like a champ. it's really pretty simple: When you submit the form, it sends the request to the controller and then updates the div containing the html form with the response from the controller. Now, the thing that I'm trying to figure out is to inc

Pagination component misbehaving in php4

2007-05-24 Thread Bernardo Vieira
Hi all! I have a project that uses the Pagination component. It works perfectly in my development environment, however when I uploaded the project to the production server things went sour. The component seems to do it's job, i.e. results get ordered, controlling the parameters via the url works a

Re: Problem storing Binary Data over 900K in Field

2007-05-24 Thread rockit
ya that's what i'm thinking. i was thinking of placing the area that stores the files outside of the public_html area, but how would i access this area from within cakephp? that way, php can still access the files but no one can just point their browser to the area and open the file. On May 24,

Re: Problem storing Binary Data over 900K in Field

2007-05-24 Thread [EMAIL PROTECTED]
This isn't a solution, but you should seriously consider using the filesystem for storing files. It's much faster and much more well suited for storing files. On May 24, 7:39 pm, rockit <[EMAIL PROTECTED]> wrote: > i have a table which i'm using to store binary data, so that someone > can buy a d

Re: Invalidating model from another model

2007-05-24 Thread the_woodsman
Have you seen the example of the Observer pattern, described in the bakery somewhere? This might be helpful... On May 24, 1:09 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I've searched around but can't find any discusson on this... > > I have a method in the model that is handling a cert

Re: Issue on software design / good practice

2007-05-24 Thread tawm
Cool, the concept of a value object makes sense to me. Too bad it's only planned for the 2.0 milestone ;). On 25 mei, 02:16, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I would agree with you, the Model seems like the best place for this > logic. But accepting cake's implementation of MVC,

Re: Issue on software design / good practice

2007-05-24 Thread tawm
Well, of course, in this case you could get away with not using a method at all. But this case was just an example case. I can think of many derivatives of the raw model data that you definitely want to put in a method, a method to calculate age based on birthdate being the most basic example. As

Re: Problem storing Binary Data over 900K in Field

2007-05-24 Thread Brian Hartvigsen
You need to change a setting for mysql. See http://dev.mysql.com/doc/refman/5.0/en/packet-too-large.html and http://dev.mysql.com/doc/refman/5.0/en/program-variables.html . Google is awesome! On May 24, 5:39 pm, rockit <[EMAIL PROTECTED]> wrote: > i have a table which i'm using to store binary d

Re: Issue on software design / good practice

2007-05-24 Thread Brian Hartvigsen
I do Seems to accomplish what you are looking for without a new function :D I understand what you are saying. Ran into the same thing myself when doing some scaffolding and wanting it to display the full name (ie. $displayField). Eventually I just gave up and did the above ;) On May 24, 4:0

Form Helper - create() - action = same url by default?

2007-05-24 Thread Freddy
Hello, it's my first day with CakePHP (1.2.0.5146alpha). I'm paying around with the form helper, My route: /:language/:controller/:action/* it's using an non-standard variable (language). I have a simple .../en/posts/add controller/action. Now i use the form helper to create a form tag: creat

Re: Issue on software design / good practice

2007-05-24 Thread John David Anderson (_psychic_)
On May 24, 2007, at 6:16 PM, [EMAIL PROTECTED] wrote: > > I would agree with you, the Model seems like the best place for this > logic. But accepting cake's implementation of MVC, the next best place > is a helper. In this case UserHelper. > echo $user->getFullName($data['User']); > > In the fut

Re: Issue on software design / good practice

2007-05-24 Thread [EMAIL PROTECTED]
I would agree with you, the Model seems like the best place for this logic. But accepting cake's implementation of MVC, the next best place is a helper. In this case UserHelper. echo $user->getFullName($data['User']); In the future, I believe we will have the choice of using VO (value objects) in

Problem storing Binary Data over 900K in Field

2007-05-24 Thread rockit
i have a table which i'm using to store binary data, so that someone can buy a digital good, and after the payment process is completed they can download the binary data out of the table, ie. MP3's. the problem i'm having right now is when i'm trying to save any file over 900K, i get the error 'm

Re: Getting MimeType for File Upload

2007-05-24 Thread abba bryant
Mind telling us what the issues were and what the resolution was? I get bad mime types in an app too, and using swfupload gives me application/octet-stream since it is coming via flash. I would be interested in seeing what you did. rockit-2 wrote: > > > all issues resolved. > > On May 24, 6:0

Issue on software design / good practice

2007-05-24 Thread tawm
Hey all, I'm dealing with this design issue and I'm really curious what you guys think of it. I keep thinking I must be overlooking something, because it's such a basic thing. Ok, I've got a concept in the MVC approach, so let's say it's a user. So I've got a 'User' model, a 'UsersController' an

Re: Getting MimeType for File Upload

2007-05-24 Thread rockit
all issues resolved. On May 24, 6:05 pm, rockit <[EMAIL PROTECTED]> wrote: > http://bin.cakephp.org/view/1381182794 shows the controller. > > On May 24, 5:21 pm, rockit <[EMAIL PROTECTED]> wrote: > > > got the issue fixed with the size & type, it was in my php > > installation had to increase max

Re: simple relation

2007-05-24 Thread soytuny
Set up a belongsTo relationship in your Project model. var $belongsTo = array('Status'); should be enough. On May 24, 2:27 pm, pete <[EMAIL PROTECTED]> wrote: > hi, > i still play around with creating a simple relation, and i don't get > it to run. > thanks > pete > > TABLES: > status > id >

Re: problemns with search on models

2007-05-24 Thread Chris Hartjes
On 5/24/07, Kamik <[EMAIL PROTECTED]> wrote: > > any idea? Bumping a post is considered bad manners on this list. Be patient, if someone has an answer for you they will post it... -- Chris Hartjes My motto for 2007: "Just build it, damnit!" @TheBallpark - http://www.littlehart.net/attheball

Re: problemns with search on models

2007-05-24 Thread Kamik
any idea? On 24 maio, 11:30, Kamik <[EMAIL PROTECTED]> wrote: > hello, im having problems with search on models > > i have models user, module_user and module > im trying made one unique search with cake for return the result. I > have theses datas for compate > user.login > user.password > modul

simple relation

2007-05-24 Thread pete
hi, i still play around with creating a simple relation, and i don't get it to run. thanks pete TABLES: status id description project id status_id project_title CONTROLLER $this->set('projects', $this->Project->findAll()); every project has one status. how do i create a relation b

Paginator - rows per page

2007-05-24 Thread BullDerm
How would I dynamically set the paginator options limit array element value? I have it set statically in the controller as so: var $paginate = array('limit' => 25, 'order' => array( '' => 'asc')) Would like to allow the user to be able to change the limit value, but not sure of the syntax in th

Re: Getting MimeType for File Upload

2007-05-24 Thread rockit
http://bin.cakephp.org/view/1381182794 shows the controller. On May 24, 5:21 pm, rockit <[EMAIL PROTECTED]> wrote: > got the issue fixed with the size & type, it was in my php > installation had to increase max_upload. > > However, when i go to save the type, it saves the first letter of > $this

Re: Complex SQL Conditions (multiple ORs)

2007-05-24 Thread squidliberty
Fabulous! That works perfectly for most of my queries. But why won't it work in the following? $conditions['NOT'] = array('Listing.expiration' => "BETWEEN 1 AND ".mktime()); $conditions[0]['OR'] = array("Listing.title" => "LIKE %".$term."%", "Listing.descri

Re: Getting MimeType for File Upload

2007-05-24 Thread rockit
got the issue fixed with the size & type, it was in my php installation had to increase max_upload. However, when i go to save the type, it saves the first letter of $this->data['Digital']['filename']['name']; this is the code i'm using to save the field. //take the type of filename and store i

Re: Getting MimeType for File Upload

2007-05-24 Thread rockit
I think i found part of the issue, for whatever reason it's not sending the mime type for mp3's. i did a print_r on the whole array to see what data is being passed and it's sending the type or size for that matter. is this an apache issue? i'm posting the data is there a different enctype i

othAuth error Notice: Only variables should be assigned by reference

2007-05-24 Thread Paul R. Zwiers
Hi All, I am implementing the othAuth component in a new project for which I quickly drafted a demoversion using scaffolding (I love cake for it). When I tested it on my two development servers all was fine, but putting it on the server of the client the app broke with the above error in the co

Getting MimeType for File Upload

2007-05-24 Thread rockit
it's important that i store the mime type of the file upload. i need to store binary data in the db for download later. but i can't seem to get the mimetype inserted properly. code snippet: $this->data['Digital']['filename'] = $this->data['Digital']['filename'] ['name']; //take the type of fil

Re: $form->create not producing anything

2007-05-24 Thread John David Anderson (_psychic_)
On May 24, 2007, at 12:50 PM, Ita wrote: > > Oh man, > That was painful. > I was hoping that my mistake was bigger than that. > Thanks for pointing out my stupidity... > you saved me a bunch of time I'm just wondering how you verified the enctype when the tag wasn't there. :) - John > > On

Re: $form->create not producing anything

2007-05-24 Thread Ita
Oh man, That was painful. I was hoping that my mistake was bigger than that. Thanks for pointing out my stupidity... you saved me a bunch of time On May 24, 9:30 pm, "Samuel DeVore" <[EMAIL PROTECTED]> wrote: > you need to echo the form->create > > On 5/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]

Invalidating model from another model

2007-05-24 Thread [EMAIL PROTECTED]
I've searched around but can't find any discusson on this... I have a method in the model that is handling a certain function for me. It adds a couple records all linked together, and also allows editing of these records. For the sake of example from the controller I call: $this->PartyParticipan

Re: Problem upload file with Cake 1.2

2007-05-24 Thread [EMAIL PROTECTED]
I try to insert in the view the instruction that you post, but apparently doesn't work. I can't see the imput for the attachment Andrea On 24 Mag, 18:21, "Samuel DeVore" <[EMAIL PROTECTED]> wrote: > in 1.2 I make sure that I declare and open my forms like > > create('Attachment',array('type'=>'f

Re: multi-page forms

2007-05-24 Thread [EMAIL PROTECTED]
Anyone have a solution for the Back button problem here? I don't think it's right for the state to entirely be based on the session information because the user can get to the recap screen, click the browser back button to the beginning of the wizard, resubmit the first page, and FormWizard will i

Re: $form->create not producing anything

2007-05-24 Thread Samuel DeVore
you need to echo the form->create On 5/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > Hi, > I'm new to CakePHP but I have followed the blog tutorial and now > trying to devlop something on my own using cake 1.2. > > I have the following template to add a user to the system: > Add User >

Re: Problem upload file with Cake 1.2

2007-05-24 Thread [EMAIL PROTECTED]
The type is: enctype="multipart/form-data" Andrea On 24 Mag, 17:56, "John David Anderson (_psychic_)" <[EMAIL PROTECTED]> wrote: > On May 24, 2007, at 9:53 AM, [EMAIL PROTECTED] wrote: > > > > > > > Hi to everybody, > > I have a problem to create a page for uploading files. > > My cake version i

$form->create not producing anything

2007-05-24 Thread [EMAIL PROTECTED]
Hi, I'm new to CakePHP but I have followed the blog tutorial and now trying to devlop something on my own using cake 1.2. I have the following template to add a user to the system: Add User create('User',array('action'=>'/users/add'))?> input('User/user_name', array('size' => '40'))

Re: Yet another question on Routing

2007-05-24 Thread Greg
Hey Felix, I missed this post earlier. Thats a pretty cool hack. If the modified url schema I am trying out doesn't work for our needs, I'll try out this snippet. Thanks a lot for the input! -Greg On May 24, 9:43 am, Felix Geisendörfer <[EMAIL PROTECTED]> wrote: > Here is a rather hackish sn

session variable problem

2007-05-24 Thread christianandradet
hi, I got this problem: i am trying to join 2 applications, but the 2 of them work with different versions of cakephp (1.1...,1.2...), i have defined a session variable with the same name in the 2 aplications, when i try to access this variable from 1.1... to 1.2... it works fine, but when i try t

Re: Help me set up cakephp on godaddy

2007-05-24 Thread radius
This .htaccess setup works for me on godaddy. the key is Options +FollowSymLinks in the .htaccess file in your document root: Options +FollowSymLinks RewriteEngine on RewriteRule^$ /app/webroot/[L] RewriteRule(.*) /app/webroot/$1 [L] and webroot/.htaccess looks like th

Re: Help me set up cakephp on godaddy

2007-05-24 Thread [EMAIL PROTECTED]
Okay everone good news, got it set up and running. Here's what I did (This applies to godaddy's linux hosting which has rewrite enabled): 1. Added a trailing slash '/' to every rewrite rule located in /.htaccess /app/.htaccess /app/webroot/.htaccess 2. Modified /webroot/index.php ... if (!de

Re: $html->link return me absolute path NOT relative path ??

2007-05-24 Thread macfurax
I dig in the baseUrl fucntion of dispatcher.php and set base to "" and webroot to "/". All everything look good so far ! baseUrl function is quite compliquate and for me doesn't provide the right results ! Constant On 24 mai, 15:11, macfurax <[EMAIL PROTECTED]> wrote: > Hi, > > I have discovere

Re: Stripescape in 1.1.15.5144

2007-05-24 Thread Gonza
Always late... thanks! On May 24, 1:46 pm, "Larry E. Masters aka PhpNut" <[EMAIL PROTECTED]> wrote: > Fixed yesterday in the core: > > https://trac.cakephp.org/changeset/5163 > > -- > /** > * @author Larry E. Masters > * @var string $userName > * @param string $realName > * @returns string aka P

Re: Help me set up cakephp on godaddy

2007-05-24 Thread Samuel DeVore
I have client that I set up with a cake site about a year ago on godaddy but he changed the access so I can't see how I set it. He is going to send me the new passwords today, I should be able to try to help you soon Sam D On 5/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > css are al

Re: Yet another question on Routing

2007-05-24 Thread John David Anderson (_psychic_)
On May 24, 2007, at 10:44 AM, Greg wrote: > > That's not a bad idea--adding a marker to denote a community. I think > I'll end up doing something like this, it seems pretty logical. It > definitely beats adding a route for every controller, that could get > pretty unmanageable in a large-scale

Re: Stripescape in 1.1.15.5144

2007-05-24 Thread Larry E. Masters aka PhpNut
Fixed yesterday in the core: https://trac.cakephp.org/changeset/5163 -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ --~--~-~--~~~---~--~~ You received this message because you

Re: Yet another question on Routing

2007-05-24 Thread Greg
That's not a bad idea--adding a marker to denote a community. I think I'll end up doing something like this, it seems pretty logical. It definitely beats adding a route for every controller, that could get pretty unmanageable in a large-scale application. Actually, I might just add a leading vi

Re: Yet another question on Routing

2007-05-24 Thread Felix Geisendörfer
Here is a rather hackish snippet that might help you. Put this in your bootstrap.php: function listControllers($underscored = false) { uses('Folder'); $Folder = new Folder(); i

Stripescape in 1.1.15.5144

2007-05-24 Thread Gonza
Just update the cake version, and notice some strange behaviour, when i pass number or boolean params in my routes, php throws warnings and notices: Warning: Invalid argument supplied for foreach() in C:\_wwwroot\system \include_path\cake\libs\router.php on line 210 Notice: Undefined variable: r

Re: Yet another question on Routing

2007-05-24 Thread John David Anderson (_psychic_)
On May 24, 2007, at 10:19 AM, Greg wrote: > >> Can you take a step back and explain why you need the route, and >> maybe provide some examples? Maybe we can find a good way to do what >> you want. > > > We need to have a url schema like http://domain.com/community/ > category/post, > so I have

Re: Problem upload file with Cake 1.2

2007-05-24 Thread Samuel DeVore
in 1.2 I make sure that I declare and open my forms like create('Attachment',array('type'=>'file'); ?> On 5/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > Hi to everybody, > I have a problem to create a page for uploading files. > My cake version is 1.2.0.4798alpha > I'm using this c

Re: Yet another question on Routing

2007-05-24 Thread Greg
> Can you take a step back and explain why you need the route, and > maybe provide some examples? Maybe we can find a good way to do what > you want. We need to have a url schema like http://domain.com/community/category/post, so I have defined routes accordingly. These routes work great, excep

Re: Help me set up cakephp on godaddy

2007-05-24 Thread [EMAIL PROTECTED]
css are all linked using $html->css Found out that if I edit webroot's .htaccess from RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] to RewriteRule ^(.*)$ /index.php?url=$1 [QSA,L] Images and flash will show up, but still controllers are a no-go On May 24, 11:11 am, "John David Anderson (_psychic

Re: Help me set up cakephp on godaddy

2007-05-24 Thread John David Anderson (_psychic_)
On May 24, 2007, at 10:04 AM, [EMAIL PROTECTED] wrote: > > John, I already downloaded and installed a brand new copy of cake and > uploaded it. > After that I tried working with internal urls but they worked only if > I typed /site/index.php?controller That's how internal URLs work. example.co

Re: Changing datasources to support web services.

2007-05-24 Thread djiize
instead of doing: $this->setDataSource('whatever'); you can do that: class MyModel extends AppModel { $useDbConfig = 'whatever'; //... } On 24 mai, 17:37, shmit <[EMAIL PROTECTED]> wrote: > Because I like to answer my own questions, I found the solution to > this. > > Here's how you set up t

Re: Help me set up cakephp on godaddy

2007-05-24 Thread [EMAIL PROTECTED]
John, I already downloaded and installed a brand new copy of cake and uploaded it. After that I tried working with internal urls but they worked only if I typed /site/index.php?controller Btw, im using godaddy's linux hosting with is SUPPOSED to have mod_rewrite enabled. here is the link to the

Re: Yet another question on Routing

2007-05-24 Thread John David Anderson (_psychic_)
On May 24, 2007, at 9:55 AM, Greg wrote: > > John, > > Thanks for the quick response. About the regex, that happens to be > required by our system, which means I am probably going to have to > define a route for every controller before I define my /:comunity and > other custom routes. Oh well,

Re: Problem upload file with Cake 1.2

2007-05-24 Thread John David Anderson (_psychic_)
On May 24, 2007, at 9:53 AM, [EMAIL PROTECTED] wrote: > > Hi to everybody, > I have a problem to create a page for uploading files. > My cake version is 1.2.0.4798alpha > I'm using this component: http://cakeforge.org/snippet/detail.php? > type=snippet&id=36 > > In the view file I use: > >

Re: Yet another question on Routing

2007-05-24 Thread Greg
John, Thanks for the quick response. About the regex, that happens to be required by our system, which means I am probably going to have to define a route for every controller before I define my /:comunity and other custom routes. Oh well, thought I'd ask... Maybe I could write a function that

Problem upload file with Cake 1.2

2007-05-24 Thread [EMAIL PROTECTED]
Hi to everybody, I have a problem to create a page for uploading files. My cake version is 1.2.0.4798alpha I'm using this component: http://cakeforge.org/snippet/detail.php?type=snippet&id=36 In the view file I use: label('Image.image', 'Immagine');?> file('userfile'); ?> And

Re: Help me set up cakephp on godaddy

2007-05-24 Thread John David Anderson (_psychic_)
On May 24, 2007, at 9:42 AM, [EMAIL PROTECTED] wrote: > > Still have not been able to shed some light on this. > > Ive tried: > > - enabling internal rewrite and deleting all .htaccess files (only > homepage will show, links dont work) > - putting back all .htaccess files and disabling internal

Re: Yet another question on Routing

2007-05-24 Thread John David Anderson (_psychic_)
On May 24, 2007, at 9:27 AM, Greg wrote: > > CakePHP version > > I'm sorry to bring up routing again, it seems to be covered a lot, but > I am not sure if I am doing this quite right... > > First of all, I have a route: > Router::connect('/:community', array('controller' => 'communities', > 'act

Re: Help me set up cakephp on godaddy

2007-05-24 Thread [EMAIL PROTECTED]
Still have not been able to shed some light on this. Ive tried: - enabling internal rewrite and deleting all .htaccess files (only homepage will show, links dont work) - putting back all .htaccess files and disabling internal rewrite (no good, only text shows) - manually setting the ROOT and APP

Re: Yet another question on Routing

2007-05-24 Thread Greg
oops, forgot to complete the 'CakePHP version' line. I am using 1.2.0.5137alpha On May 24, 8:27 am, Greg <[EMAIL PROTECTED]> wrote: > CakePHP version > > I'm sorry to bring up routing again, it seems to be covered a lot, but > I am not sure if I am doing this quite right... > > First of all, I h

Re: Changing datasources to support web services.

2007-05-24 Thread shmit
Because I like to answer my own questions, I found the solution to this. Here's how you set up the map for your new service: name your file 'app/models/datasources/type_source.php' (e.g., 'web_services_source.php') your class name will be the StudlyCaps version of that (e.g., 'WebServicesSource'

problemns with search on models

2007-05-24 Thread Kamik
hello, im having problems with search on models i have models user, module_user and module im trying made one unique search with cake for return the result. I have theses datas for compate user.login user.password module.id anyone know how made one unique search with theses datas? i only made it

Yet another question on Routing

2007-05-24 Thread Greg
CakePHP version I'm sorry to bring up routing again, it seems to be covered a lot, but I am not sure if I am doing this quite right... First of all, I have a route: Router::connect('/:community', array('controller' => 'communities', 'action' => 'index'), array('community' => '[a-zA-Z0-9_\-]+'));

Re: Changing datasources to support web services.

2007-05-24 Thread shmit
On May 23, 7:44 pm, gwoo <[EMAIL PROTECTED]> wrote: > then create a connection in database.php that can be used. > you could use the xml class to get the web service. This is the part I'm missing. I can't for the life of me figure out how to get the data source loaded. The docs turn up no

1.2 - Paginating data other than Model records

2007-05-24 Thread gmwebs
Hi, Is there any way to paginate data other than Model records using the Paginator helper? For instance, I want to paginate an array, not the actual Model records. Something like: Pseudo Code * var $paginate = array('limit' => 3); $fruit = Array('apples','oranges','pears','prunes');

Re: multiple fields in $displayField.

2007-05-24 Thread AD7six
On May 24, 12:31 am, Ruud Gâst <[EMAIL PROTECTED]> wrote: > Hello there, > > I've been trying to fill a SELECT-tag by using the generateList > function, this works great! Although I want to fill it with multiple > fields from the table, eg. firstname . ' ' . lastname. How can I pull > this off?

GET-like request sent as POST returns a 404 when debug == 0 ?

2007-05-24 Thread Gonzalo Servat
Hi All, I've noticed this behaviour only when debug = 0 (ie. production mode). I had an Ajax call that worked fine in dev but failed in production. After lots of troubleshooting, I looked at the Apache logs and noticed that when sending via POST, it would send a 404. When the EXACT same request go

Re: Complex SQL Conditions (multiple ORs)

2007-05-24 Thread AD7six
On May 23, 9:57 pm, squidliberty <[EMAIL PROTECTED]> wrote: > Looking it over, I think my question may boil down to this: how can I > set conditions that specify "X is not between A and B"? Erm, as you would expect probably. $conditions['NOT']['Model.field'] = "BETWEEN $A AND $B" hth, AD PS

Re: Is 1.2.0.5146alpha Usable?

2007-05-24 Thread jonern
...for the SQL errors you should set debug to 3 and check the sql queries. You will probably find the error if you are familiar with queries =) The 1.2.0.5146alpha is working fine, and it's a great tool when you get the hang of it! --~--~-~--~~~---~--~~ You recei

Re: I starting new which version to go with?

2007-05-24 Thread jonern
I would say go for the latest CakePHP 1.2.x.x version! CakePHP 1.1.x.x surely has more examples and documentation, but when 1.2.x.x get's stable 1.1 will slowly get outdated. I'm currently rewriting a fairly large application from 1.1 to 1.2, and it requires a lot of changes before it's fully 1.2

Re: Ajax + CakePHP + Tree Menu (Ver Urgent)

2007-05-24 Thread Chris Hartjes
On 5/24/07, Vishal <[EMAIL PROTECTED]> wrote: > Is there any website/document which expains Ajax and CakePHP step by > step... Go to http://bakery.cakephp.org and search for 'ajax' there. Lots of examples. -- Chris Hartjes My motto for 2007: "Just build it, damnit!" @TheBallpark - http://ww

$html->link return me absolute path NOT relative path ??

2007-05-24 Thread macfurax
Hi, I have discovered CakePHP few weeks ago and it was a great discovering ! I make a test drive application on XAMPP on my laptop. Now I want to test it on my hosting. So I create a subdomaine pointing to the "webroot" folder of CakePHP. http://ministock.constantdupuis.be/nodes/browse (if you

Re: I starting new which version to go with?

2007-05-24 Thread Joshua Benner
Ketan, I started with CakePHP recently and faced the same question. I chose to go with 1.2 at the recommendation of some of the people on the group. My experience was good, but I spent a lot of time early-on just figuring cake out. Searching and asking the group helped a lot, though sometimes

I starting new which version to go with?

2007-05-24 Thread Ketan Patel
I am fairly comfortable with PHP. I had a look at CakePHP 1.1.x.x version and CakePHP 1.2.x.x version. There are significant changes between these two versions. My question is CakePHP 1.1.x.x has been around for a while and has lots of codes and samples and articles that can help a new comer like

Using CakePHP via a subdomain

2007-05-24 Thread macfurax
Hi, I have discovered CakePHP few weeks ago and it was a great discovering ! I make a test drive application on XAMPP on my laptop. Now I want to test it on my hosting. So I create a subdomaine pointing to the "webroot" folder of CakePHP. http://ministock.constantdupuis.be/nodes/browse (if you

othAuth error otice: Only variables should be assigned by reference

2007-05-24 Thread Paul R. Zwiers
Hi All, I am implementing the othAuth component in a new project for which I quickly drafted a demoversion using scaffolding (I love cake for it). When I tested it on my two development servers all was fine, but putting it on the server of the client the app broke with the above error in the co

Mock "non cakey" objects, how to?

2007-05-24 Thread zwobot
Has anyoby ever mocked classes with cake 1.1 test suite and can me give a hint how to do it? I want to mock a class that is neither a controller nor a model or any other cakey object, it just should simulate a single function that returns an array (to simulate access to the file system). I have d

get parameters error

2007-05-24 Thread monmonja
Hi need help on this get method, on my localhost its working fine but on the my server its not seeing my get parameters Example: account/test?type=1 printing the $this->param would output Array ( [pass] => Array ( ) [controller] => accounts [action] => test [url] => Array ( [url] => accounts/tes

Re: Changes to SecurityComponent - every form I submit gets blackholed

2007-05-24 Thread Mika
Hey Larry, It was more that I developed the site with 1.2 while it was still changing a lot so I decided to keep the forms "pure". I will have a look at converting them to helper calls and see how well it works with what I have already. One comment though is that you really should make the messa