Doesn't need to be so complicated.
You could just use Cake's new console to make a script to export the
HEAD revision to Cake's tmp directory, rsync to the target server
(using '-avz' as options) and you're done. Then you could just add
bells and whistles, like specifying which svn revision you w
Rt,
Can you clarify... I mean the auto create feature is a convenience...
right...
The alternative is for me to create the model manually
Is it bad practice to create models for joins tables comprised soley
of two foreign keys.. Is that just a bad idea in general?
Thank you for your time
T
On
Ah .. i just heard that capistrano can work with cakephp :) i thought
it was rubys.
On Oct 4, 9:21 am, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> http://www.littlehart.net/atthekeyboard/2007/09/21/deploying-cakephp-...
>
> On 10/3/07, Adwin Wijaya <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > I was
On Oct 3, 7:30 pm, Chambrln <[EMAIL PROTECTED]> wrote:
> There is a ticket opened for this problem but it was converted to an
> Enhancement instead of a bug and nothing appears to have been done
> about it. If you use the HTML helper to set your DOCTYPE and want
> your page to validate here is
Has anyone used Ant? We use it for a Java struts deployment and have
been toying with getting our CakePHP code hooked in
On 10/3/07, Chris Hartjes <[EMAIL PROTECTED]> wrote:
>
> http://www.littlehart.net/atthekeyboard/2007/09/21/deploying-cakephp-applications-using-capistrano/
>
> On 10/3/07, Ad
http://www.littlehart.net/atthekeyboard/2007/09/21/deploying-cakephp-applications-using-capistrano/
On 10/3/07, Adwin Wijaya <[EMAIL PROTECTED]> wrote:
>
> I was impressed with cake console to generate new project ... but I
> think we need to supply with cake deployer .
>
> i got this problem whe
Have you heard of Capistrano? ( http://capify.org )
It's good. Don't re-invent the wheel.
--~--~-~--~~~---~--~~
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
I was impressed with cake console to generate new project ... but I
think we need to supply with cake deployer .
i got this problem when i created a project using console, let say the
file is in c:\php\cake12\ (contains all 1.2 files)
then i created a new project on c:\www\htdocs\cake
when I ha
Hi I have a simple controller method that uploads a file and updates
the database table. I want to create a unit test for the this method
but not able to find how to send data to the controller without using
the form.
Can anyone enlighten me??
Thanks
Ritesh
--~--~-~--~~
I baked Model, Controller, and Views for my Organization table. It is
basically a standard User table, and my functions are virtually
unchanged from baking.
Then I added validation to various fields and added error messages for
the validations in my add.ctp and edit.ctp files.
Now when I edit an
I figured it out. I had removed the $id field from the form rather
than merely making it hidden. Turns out, that breaks a few things...
duh. ;-)
Wayne
On 10/3/07, Wayne Fay <[EMAIL PROTECTED]> wrote:
> I baked Model, Controller, and Views for my Organization table. It is
> basically a standard U
There is a ticket opened for this problem but it was converted to an
Enhancement instead of a bug and nothing appears to have been done
about it. If you use the HTML helper to set your DOCTYPE and want
your page to validate here is a workaround until this is fixed.
In your /cake/libs/view/helper
Hi everybody.
I'm continually getting the following messages randomly:
Warning (2): mysql_connect() [function.mysql-connect]: Lost connection
to MySQL server at 'reading authorization packet', system error: 0
[CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 100]
Warning (2): mysql_select
If you do not want to load the details in the page (that could be like
a tooltip), but for query the DB when you pass over the mail, you
would need a bit of javascript and an ajax request.
To make it step by step, you should try to do your ajax request with a
link (by clicking), then you can play
In Cake each table can be represented by a model. If you want to
change data in a table, do it through that table's model. This may
mean something like
function doAdminStuff()
{
$this->Model1->cleanUp();
$this->Model2->runScheduledTasks();
}
in your "admin" model. Even with useTable = fal
Well there might be a solution by writing in the log or print_r how
far you go. Start in the index.php of webroot, then dispatcher
etc ..It's long but at least you will know if ever you enter in your
controller.
I have been trying your site, it's not a timeout since the blank page
appears right aw
Try to read these posts:
Self-referential has_many :through associations
http://blog.hasmanythrough.com/2006/4/21/self-referential-through
http://groups.google.com/group/cake-php/browse_frm/thread/c8ebc2097f8aad11/fae9ec58501534e6?lnk=gst&q=friend&rnum=1#fae9ec58501534e6
http://groups.google.c
Thanks for the reply, but no, I don't think that's it. In fact, the
new server has twice the physical memory as the old server and the PHP
memory limit is set 4x higher, but the old server will return the full
result set.
Also, as I said, that is just one example. I have other places where
I'm
I am using cakephp 1.2 alpha.
I would like some suggestions/feedback on my implementation of a buddy
system using cakephp and ACL component.
ARO
Group::Users
Group::Guests
anom
Group::Members
david
cool_dude
Group::Admins
power_dude
ACO
Root
+Users
cool_du
Uhm, It's a bit of a hack, but when i needed to do something
similar...
I made a helper that extended HtmlHelper (called SHtmlHelper), and
then I overwrote the url method in that new helper.
Then at the top of my layout files I put
so now all instances of $html helper used my new
helper.
I have
Damn Cache of the Firefox!! (sorry..)
Finally solved!
The soulution was found here
http://66.102.9.104/search?q=cache:GJ6xSnWcp8oJ:www.movingtofreedom.org/2007/05/09/how-to-wordpress-on-ubuntu-gnu-linux/+apache2+%22AllowOverride+All%22+%22which+is+a:+PHTML+file%22&hl=en&ct=clnk&cd=1
---
Briar P
Hi all,
I changed the
/etc/apache2/sites-available/default
just like it was suggested - added
AllowOverride All
and changed
DocumentRoot /var/www/cake/app/webroot
but then if I type http://localhost in Firefox, it gives me a dialog:
You have chosen to o
Sorry to butt in but,
If the bakery code is intelligently to recognise different styles then would
it be much of a job to automatically reformat the submitted code rather than
have the user do it? Couldn't it call the indent program via the command
line?
Just wondering cause I also prefer the "ne
Hi,
I need to transport some kind of ID (it could also be a Session-ID)
through the URL. This could look like this: http://domain.com/ID1234/posts/edit
or http://domain.com/ID7895/users/
This ID can easily be identified by a RegEx.
The problem is how can cake pass this ID **automatically** to eve
Awesome, thanks for the help.
On Oct 3, 1:22 pm, "Samuel DeVore" <[EMAIL PROTECTED]> wrote:
> and it is mentioned in the "configuration" and the "blog tutorial"
> sections in the manual
>
> "If you include a 'created' and/or 'modified' column in your table,
> Cake will automatically populate the
Yeah, I have created a hasMany relationship in the User model to
Groups. Are you saying the User controller, on save(), will
automatically insert one or more new Groups and make the relationship
because of the hasMany relationship? I never considered that... So
on one form posting to the User c
I'm thinking of it too,
but i think you should define the relationship between the Group and
User Model
then when you create a User in the User Model ,,It'll automatically Do
the associated action..
On Oct 4, 1:56 am, starkey <[EMAIL PROTECTED]> wrote:
> Hello, all!
>
> I am trying to figure ou
On 10/3/07, DJ Spark <[EMAIL PROTECTED]> wrote:
>
> I've searched, but since I'm not sure what to search for, I'll ask here:
>
> Suppose I have a blog system, where a user can edit only his own
> posts, an editor may edit all posts, a visitor can only read them.
Hey Spark,
I've done this sort
I've searched, but since I'm not sure what to search for, I'll ask here:
Suppose I have a blog system, where a user can edit only his own
posts, an editor may edit all posts, a visitor can only read them.
Is this what ACL is made for ? ACL + some other thing ? ACL is not
that ? Do I need to m
Hello, all!
I am trying to figure out the best practice in this situation... In
my application's setup process you create new items in a flow. For
example, they can add a new user and put that user in a new group:
Create User -> Create User Group
So I would have a User controller and a Group
> Use Behaviors - one for uploading and one for resizing
Can you post, name or link both? ;)
> put them in webroot unless you want to do ACL stuff on the images
I've defined a constant in the bootstrap.php that contains an absolute
path to everything i want to store.
FILE_PATH/reports/$id/phot
and it is mentioned in the "configuration" and the "blog tutorial"
sections in the manual
"If you include a 'created' and/or 'modified' column in your table,
Cake will automatically populate the field when appropriate."
"Check out Appendix "Cake Conventions" more information, but suffice
it to s
it is nomenclature vodoo
On 10/3/07, EVan <[EMAIL PROTECTED]> wrote:
>
> I'm confused as to how the datetime is set for the modified and
> created fields in the blog tutorial. I feel like the the
> posts_controller should contain something with a now() function or
> something... but it doesn't a
Hi,
I have a model for administering a site, it itself does not connect to
any table so I have $useTable = false. And in the controller, I have
most of the data being handled by using other controllers' actions.
There is one instance in which I need this model to access the
database, however. H
I think the same. Maybe I'm not inserting properly my new select but I
don't see what is wrong. Take a look to the new select:
$query_loss = "SELECT"
. " LOSS_SEQ_NUM"
. " FROM LOSS"
. " WHERE LOSS_POL_NUM = '".$policy."'";
$res
First off, I have a couple enums in a table in my app. Under Cake 1.1,
the enums were turned into a dropdown and displayed properly. Using
cake_1.2.0.5427alpha, I don't get the dropdowns. I haven't tried any
nightly builds but am happy to do so if it would give me back the
functionality I need wit
Hey gwoo that is a nice piece of code. I turned it into a behavior.
http://bin.cakephp.org/saved/24246
Although, I can't quite figure out how to get paginate to work with
objectify... :/
On Oct 3, 6:28 am, gwoo <[EMAIL PROTECTED]> wrote:
> ok, i had to dig a bit
> deeperhttp://groups.google.com
Sure why not.
Cake 1.2 has recenlty added a feature where you can speficy a 'With'
association which auto-creates a model for the join table.
You may want to mess around with that.
An example can be found in the OCPHP doc found here:
http://cakephp.org/downloads
On Oct 3, 8:25 am, Comida411 <[
I'm confused as to how the datetime is set for the modified and
created fields in the blog tutorial. I feel like the the
posts_controller should contain something with a now() function or
something... but it doesn't and the whole thing works fine. ... ?
Furthermore, I can't see in the code why
Cheers Samuel,
I'll try to keep them under the root without ACL an with conditional
rules!
Dan
--~--~-~--~~~---~--~~
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@googl
you will probably not want to keep them in webroot but have them piped
though a controller that you can use acl or some other access rules to
conditionally serve them.
Sam D
On 10/3/07, cakeFreak <[EMAIL PROTECTED]> wrote:
>
> Hey guys,
>
> I need to build a filesharing section for one website.
There appear to be 3 types of join table in my data model..
1. Pure join - table comprised of two or more foreign keys only and no
other attribues (column headers)
2. Join as parent - table comprised of two or more foreign keys only
and no other attribues... wherein he table is also the parent to
seems cool!
On Oct 2, 7:29 am, "Tane Piper" <[EMAIL PROTECTED]>
wrote:
> Hey folks,
>
> I'm pleased to announce the full service of Paste Monkey is now
> running athttp://pastemonkey.org. This is a collaborative pastebin
> developed in CakePHP 1.2, and running AJAX with jQuery.
>
> It is still i
Cheers guys!
I'll post my findings here lata (if somebody else is interested to the
same topic)!
Dan
On 3 Ott, 15:57, gwoo <[EMAIL PROTECTED]> wrote:
> do a search in this group for setSource
--~--~-~--~~~---~--~~
You received this message because you are subsc
do a search in this group for setSource
--~--~-~--~~~---~--~~
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 group, send email to
function beforeRender() {
$this->data = Set::reverse($this->data);
}
--~--~-~--~~~---~--~~
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 unsubscri
I think object returns are not fully implemented. It will be an uphill
battle if you want to use the data in that way.
stefanb wrote:
Well, that didn't seem to work:
"Fatal error: Cannot use object of type stdClass as array in C:\xampp
\htdocs\cake\cake\libs\view\helpers\form.php on line 1
If you're talking about how to change the relationships to a model,
you would use bindModel and unbindModel. I don't think you can change
a models table when you could use multiple models in a controller via
the uses array.
;b
On Oct 3, 8:39 am, cakeFreak <[EMAIL PROTECTED]> wrote:
> Anyone kno
Well, that didn't seem to work:
"Fatal error: Cannot use object of type stdClass as array in C:\xampp
\htdocs\cake\cake\libs\view\helpers\form.php on line 136"
Is there a way to set "objectify = true" in just one place, and have
everything work just fine? Or will I have to write "objectify=true"
Anyone knows how it is possible to change the table used by a model on
the fly?
Should I use a beforeFind condition in my model?
Dan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to thi
ok, i had to dig a bit deeper
http://groups.google.com/group/cake-php/browse_thread/thread/fc7ef676f60ab03/81270d96a20cb44e?lnk=gst&q=gwoo+objects&rnum=4#81270d96a20cb44e
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Grou
Yes, and I found this:
http://groups.google.com/group/cake-php/browse_thread/thread/a1699f504009f873/439d3756be935f9c?lnk=gst&q=objects+arrays&rnum=6#439d3756be935f9c
"There is no such functionality available in CakePHP so you have to
write it yourself. "
But that post was written in February, s
hi
i am a newbe in cakephp. i am using cakephp 1.2.
i have columns in my database like email,subject, message, and date.
what i am trying to do is that whenever i puts a mouse on email,it
should have a hover kind of thing which displays the users full
name ,age ,sex and place.
i have a table name
have you searched this group?
--~--~-~--~~~---~--~~
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 group, send email to [EMAIL PRO
checkLoggedIn();
if (!empty($this->data)) {
if ($this->Post->save($this->data) && $this-
>Post->Meta->save($this->data)) {
$this->flash('It worked', '/');
}
}
}
?>
On Oct 3, 9:2
Hello,
Is there a way to access data from my models as objects instead of
arrays?
// In my view:
foreach ( $categories as $category ) {
echo $category->name; // I want this
echo $category['Category']['name']; // Instead of this
}
--~--~-~--~~~---~--~~
You rec
I would also like call your attention to the Attach This ! project on
cakeforge (disclaimer : its my project). It handles uploads (including
images) using swfupload (with fall back to normal form) but also is
distributed with a MIT licensed alternative to phpThumb which can re-
size images on the
Hey guys,
I need to build a filesharing section for one website.
Is there any suggested strategy in order to protect reserved files
from download?
More precisely:
> I'm a cake beginner and also pretty much a php beginner, as until now
> i only had to understand what it (can) do, but never had to code
> myself.
>
> In order to develop my skills i started to code a little portfolio-app
> and right now I'm running into some rather conceptual questions:
>
> I w
I have the access database close.
On 28 sep, 17:26, RichardAtHome <[EMAIL PROTECTED]> wrote:
> Do you have the Access database open in Access when you try to connect
> to it through PHP?
>
> Been a while since I've done anything with Access but I do remember
> that used to be a problem.
>
> Clos
Hi,
This is my first post here. If this isn't an appropriate place to ask
questions, please point me in the right direction.
How do I save data into multiple models? This is my current code:
array (
'className' => 'Meta',
'dependent' => TRUE,
Forward this email to your friends and spread free surf
Join this yahoo group and have daily fresh and free proxies in you
mailbox
http://tech.groups.yahoo.com/group/unblocker/join
Proxies to Surf ORKUT ,Gazzag ,Myspace ,E-gold ,...
http://www.Peroxy.info
http://www22.uproxy.6x.to
http://www23
Thanks for your comment, I will look at the helpers. Still I wonder why the
results-array is not available in my afterFind function, I guess I'm missing
out on something here, so any help would be nice.
I put the afterFind function directly in the model and there the results
array is available to t
I had exactly the same problem, however the *easiest* way to do this
(and I have done it) - is to write your own findAll() in your model.
Paginate will then call this twice. the first time to find how many
rows ( count(*) ) and then again to get the result with a limit.
In your custom findAll you
Hi
How to add helper in layout
example, i have a default layout and i want to set a drop down menu at
the menu div.
i have to get a helper in my app/helpers/css_menu to run a function
the maual says that we have to get our helper in array.
but it still dotn wotk for me when i include var $helper
On Oct 3, 8:02 am, Wimg <[EMAIL PROTECTED]> wrote:
> i have a function in my controller called search(id) .
> i want to pass a parameter id = abc/dce.
> when i type the url,http://localhost/search/abc/dce. error comes.
> anyone knows how to solve this problem
~broken
--~--~-~--~~-
66 matches
Mail list logo