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
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
>
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
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/
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
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
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,
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
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
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,
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
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
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
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
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
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
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
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
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
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
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
>
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
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
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
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
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
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
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
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
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
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
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
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]
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
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
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
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
>
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
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'))
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
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
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
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
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
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
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
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
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
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
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
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
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
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
> 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
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
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
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
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
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,
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:
>
>
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
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
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
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
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
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
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'
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
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_\-]+'));
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
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');
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?
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
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
...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
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
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
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
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 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
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
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
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
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
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
85 matches
Mail list logo