If it helps, I wrote a component for handing CSV files and put it on
the Bakery, but it hasn't been published. The text is below:
CSV (comma-separated values) is a simple format for storing data. As
such, adding support for it in CakePHP is simple as well. Here we go...
[h4]Exporting CSV[/h4]
E
I'm getting the following errors after adding and trying out the PayPal
API Component:
Notice: Only variables should be assigned by reference in
/home/3780/domains/verybadpoetry.com/html/app/vendors/pear/PayPal/SOAP/Base.php
on line 549
Notice: Only variables should be assigned by reference in
On 1/5/07, timblack1 <[EMAIL PROTECTED]> wrote:
Perhaps we should call it Jake.
or a Joke ;) but this is *Cool* Write a tutorial about it please
will help many :)
Tarique
--
=
PHP Applications for E-Biz: http://www.sanisoft.com
On 1/4/07, NOSLOW <[EMAIL PROTECTED]> wrote:
In CakePHP, your database relationships are by convention, and are
defined in the Model, not formally in the database.
Agreed but when working in a team, specifically a distributed team, it
is great to be able to give a Diagram (and related SQL) whe
Here is some code. I also have the path to pear in the vendors
directory in my include path.
.;C:\Program Files\xampp\htdocs\mem\vendors\Pear
Call from within view:
addWorksheet();
//Set Column Zoom to 75%
$worksheet->setZoom(75);
//Set Column Sizes
$worksheet->setColumn(0,0,4.43);
// Creat
I got it. Here's the code that works.
function cakeMain(){
global $mainframe;
$mainframe->addCustomHeadTag("");
$_GET['url'] = ltrim($_GET['cakeTask'], '/');
$_SERVER['PHP_SELF'] =
"index2.php?option=com_ps_core&task=cake&
Okay, I have a customer helper that spits out some html code
The issue I'm running into is: how do I get the html from the helper
so I can use an ajax update of a div?
In my view:
$myhelper->show(1, 1);
in my helper:
show($a, $b) {
[html]
$ajax->link('mylink', '/controller/action/a, aray('updat
Hi guys...
I'm not really having any problem but I found this one out this morning
and it intrigues me...
Question:
In which case should a beforeSave() return false...?
Context:
I use afterFind() to create virtual fields ... and when the
beforeSave() returns false, the afterFind is not called
> $html->link('+informações','/cars/form/arg1/arg2' .
> $car['Car']['id'],null,null,false)?>
then in your cars controller you have
function form($arg1 = '', $arg2 = ''){
//your code
}
HTH
olivvv
Daniel Gomes wrote:
tks for helping clement, but my question is who do i pass the value
from $h
Nicely explained solution woodsman. I have been watching this thread
and wondering about the best solution. That sounds like an excellent
approach.
Regards,
Langdon
Not entirely answering your question here, but:
Even without Cake, getting browsers to render html bit by bit as it
arrives is
could you please explain a bit more ?
I still don't get it...
++
clément
On 1/4/07, Daniel Gomes <[EMAIL PROTECTED]> wrote:
tks for helping clement, but my question is who do i pass the value
from $html->link to the controller?
tks,
Daniel Gomes
2007/1/4, clemos <[EMAIL PROTECTED]>:
>
are you sending the correct content type headers?
paste some code and we may be able to help.
--~--~-~--~~~---~--~~
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@googlegr
ok..
I've noticed another thing, when using old validation methods, 'error'
shows up, when using the new ones, don't.
say:
// view
inputs(array(
'username' => array(
'label' => 'Username',
'div' => 'required',
Not entirely answering your question here, but:
Even without Cake, getting browsers to render html bit by bit as it
arrives isn't quite that simple (imho) - IE (<7 at least) only behaves
like this if the output is already quite large, or if the HTML is
structured in certain ways.
If you're lite
Hello, I have the following problem:
I have completed a form for uploading an image, and in the controller
i can check its size as follows:
...
if ( $this->params["form"]["userfile"]["size"] > 102400 ) {
$result = False;
$error_message="La dimensione massima dell' immagine deve essere
100K"
I'm wrapping Cake in a Joomla component in order to take advantage of
Cake's scaffolding. In my Joomla component, the following code:
$_GET['url'] = $_GET['cakeTask'];
$_SERVER['PHP_SELF'] =
"components/com_ps_core/index.php?option=com_ps_core&task=cake&cakeTask=/app/webroot/index.php";
chdir(
Here's the code. good luck getting mencoder working properly, I had to
ask a friend to help recompile it. Also, mencoder won't add the
metadata like length to the file so you have to do that with flvtool.
That way the player can show a progress bar.
// convert th
Sure - I use mencoder and a directory full of codecs. I used the
command line options that this guy suggested:
http://hedges.net/archives/2006/09/05/mencoder-magic-incantation/
and they work really well. I also use mencoder to pull a thumbnail from
the video.
I had to recompile mencoder with la
How did you do upload video? And later stream it?
--~--~-~--~~~---~--~~
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, sen
Thanks for the explanation Nimrod. Interesting reading.
Langdon
This may be bit OT now and should belong under "Tree Traversal
Methods", however I just wanted to maintain a coherent thread so that
I can easily find it later on.
--~--~-~--~~~---~--~~
You recei
Hello,
I'm making use of the great screencasts, in particular, the bake
screencast: http://cakephp.org/screencasts/view/1
Even without sound it's very informative. However, I would love to
have a look at the SQL structure used in the example, so that I might
better understand how to follow alo
Hey, Im kind of new to both Cake and AJAX, and I'd like to populate a
div with some ajax, but I'm wondering when the user first comes to that
page, how do i have it already in the div? Probably really simple,
thanks.
--~--~-~--~~~---~--~~
You received this messag
Hi All,
Has anyone gotten Pear's spreadsheet_excel_writer to work with cakephp?
If I use it outside of cake it works fine (excel file is outputted and
formatted correctly) but when I include it in the vendors directory and
call it through cake the excel file is returned but the content of the
sp
A few basic things, such as naming conventions and primary keys, are
all you generally need in your DB.
"Do I also have to setup the constrains in my database?"
Do you mean 'constraints' as they appear in SQL table definitions?
If you're referring to SQL commands such as REFERENCES, ON DELETE
C
Let's assume, I would like to create the following website:
Home page:
div header (static)
div menu (dynamic -> must be able to indicate which page is "active")
div content (dynamic -> showing articles i.e. blog)
div sidebar right (dynamic -> showing latest 2 posts on forum + 2 news
(news tab
On Jan 4, 2:27 am, "Grant Cox" <[EMAIL PROTECTED]> wrote:
When in the User model, just use $this->findByUsername, not
$this->User->findByUsername.
Thank you! I actually figured it out last night. Thanks again!
--~--~-~--~~~---~--~~
You received this message
Showing multiple errors for a single field is a feature that is still
in development. Look for more on this in the next couple weeks. For
right now, you can continue using 'pseudo-fields' for multiple errors.
--~--~-~--~~~---~--~~
You received this message beca
tks for helping clement, but my question is who do i pass the value
from $html->link to the controller?
tks,
Daniel Gomes
2007/1/4, clemos <[EMAIL PROTECTED]>:
it's the controller which is here to prepare data for the views:
in your CarsController->form($id) function, you need to put somethi
Hey congratulations!
Is there anyway you could share with the community how you handled the
FLV trans codding?
Thanks,
Seb
On Jan 3, 12:32 am, "expatrick" <[EMAIL PROTECTED]> wrote:
http://lov.liis online - thanks very much to the cake development team
and everyone in #cakephp for your help.
In that case, my solution won't help you very much. Output is only
sent to the browser after the view is generated. You may be able to
speed up that process, but it is still being sent to the browser
afterwards.
Perhaps you can use AJAX for partial rendering, or cache the results
(or a combinati
Google Analytics. It uses a javascript script on your pages so it can
read all that stuff from the browser instead of relying on the web
logs. it's almost scary how much it knows. And its free.
Mandy wrote:
How are you tracking page view - os | browsers | resolutions?
--~--~-~--~
Hi
I have used DBDesigner to design the database tables.
But for managing mysql databases, theres nothing like sqlYOG. it is not
free. For a while, I was working with the trial edition, and it rocks.
cheers
--~--~-~--~~~---~--~~
You received this message becaus
hi there.
usually (cakephp 1.1) we can differentiate errors with something like
this:
function beforeValidate() {
// controlliamo se stiamo aggiornando un record oppure nuovo
if ($this->id === false || $this->id === null) {
// nuovo
In general, read up about MVC as anselm said earlier
http://en.wikipedia.org/wiki/Model-view-controller is one site, but
there are a whole slew of other sites which provide descriptions which
should give you an overall view of what Cake is trying to achieve.
Hopefully, I have covered all your qu
a note, with "if we were using something like VALID_NOT_EMPTY it will.
" I mean the old method:
var $validate = array('username' => VALID_NOT_EMPTY);
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" grou
+1
I can't find it
xeno77 a écrit :
hello,
I can't find the french tutorial and french documentation on the wiki
site of cakephp.org, which were at the following url :
http://wiki.cakephp.org/fr:tutoriels.
where can i find the documentation that was published in french (did
you move it to b
Chris Hartjes wrote:
I use a whiteboard, dry-erase markers and paper to do my database design work.
Sounds like I'm in the minority. ;)
Chris, I hear ya! I work in the same fashion. I find it easier to
expose the design by feeling it out using basic tools. Being able to
quickly and easily mak
perfect
--~--~-~--~~~---~--~~
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 PROTECTED]
For more
Showing multiple errors for a single field is a feature that is still
in development. Look for more on this in the next couple weeks. For
right now, you can continue using 'pseudo-fields' for multiple errors.
--~--~-~--~~~---~--~~
You received this message beca
The wiki was removed. There were many messages on the eventual demise
of the wiki, so we expected everyone to have had enough time to get
what they needed and move it to the Bakery. I plan on making a download
of the old wiki contents available, but when I can find timee to do it
is a different s
Larry E. Masters aka PhpNut wrote:
Peter,
Just out of curiosity have you even attempted the tutorial that in in the
manual? Doing it will help you understand how things work in the framework.
Yes, that's the first thing I did. But there is no reference to where
their terms are defined, or l
it's the controller which is here to prepare data for the views:
in your CarsController->form($id) function, you need to put something like that:
$this->set("arg","whatever");
so that in your view, you can access $arg.
hope it helps.
you should probably read the manual, too...
+++
clement
O
hello,
I can't find the french tutorial and french documentation on the wiki
site of cakephp.org, which were at the following url :
http://wiki.cakephp.org/fr:tutoriels.
where can i find the documentation that was published in french (did
you move it to bakery.cakephp.org) ?
where can i cont
If I have a lot of db design work to to I'll use my design tool -
EnterpriseArchitect ( http://www.sparxsystems.com ) - since it works
for PHP classes as well.
Freeware wise - Oracle's TOAD tool is available free for MySQL - and it
looks pretty good.
http://www.quest.com/toad_for_mysql/
--~--
Peter,
Just out of curiosity have you even attempted the tutorial that in in the
manual? Doing it will help you understand how things work in the framework.
--
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access public
*/
--~
Chris Hartjes wrote:
I think I see *my* problem with your questions here: you are using
terminology which I find confusing ("developed an expression"
Where are these terms coming form? Are they some sort of hard-core
computer science thing, because I studied computer programming at
college
Chris Hartjes wrote:
On 1/2/07, PHPBABY3 <[EMAIL PROTECTED]> wrote:
> are fairly sophisticated. I developed an expression that defines the
> format of a page, giving directions for my parser program to walk
> through a site given a little knowledge from a user.
> My questions aren't asking
On 1/4/07, TWIOF <[EMAIL PROTECTED]> wrote:
Is there a way to search csv files with php? Could i convert it to xml
and do it that way?
Any ideas would be much appreciated.
Thanks
If you know the names of all the columns, then I think you could do
the following:
1) read in the file one lin
On 1/4/07, Tazz <[EMAIL PROTECTED]> wrote:
Does Cake do all the work? Or do I also have to setup the constrains in
my database?
Thanks
http://manual.cakephp.org/chapter/models
I believe the answer is "you have to setup the associations in your
code and make sure you create the associations
On 1/4/07, nate <[EMAIL PROTECTED]> wrote:
http://us2.php.net/fgetcsv
Ugh. Of course.
--
Chris Hartjes
My motto for 2007: "Just build it, damnit!"
rallyhat.com - digitial photo scavenger hunt
@TheBallpark - http://www.littlehart.net/attheballpark
@TheKeyboard - http://www.littlehart.ne
Does Cake do all the work? Or do I also have to setup the constrains in
my database?
Thanks
--~--~-~--~~~---~--~~
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@googlegro
http://us2.php.net/fgetcsv
--~--~-~--~~~---~--~~
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 PROTE
I tought that article authors were the ones who were supposed to move
them to the Bakery. If you still have some backups somewhere, I'm
willint to spend some time putting them in the Bakery
--~--~-~--~~~---~--~~
You received this message because you are subscribe
Chris Hartjes wrote:
On 1/2/07, PHPBABY3 <[EMAIL PROTECTED]> wrote:
>
> Thanks, but it has so many undefined terms that I can't get very far.
> Could ANYONE just start by answering some simple questions?
>
> 1. What are the data structures that you enter into i.e. files that you
> create or so
Hi everyone,
this doesn't have allot to do with cake directly, but I thought someone
out there might have come across a similar problem/solution.
I'm trying to incorporate regularly updated csv file into my site. The
csv file comes from a ticket selling service. The file is can be
downloaded/pa
On 1/4/07, matt.babbs <[EMAIL PROTECTED]> wrote:
Bit of a newbie question here - I'm trying to update multiple models at
once, but the foreign key keeps getting lost. I'm using CakePHP
version 1.1.12.4205.
I have User and Profile models. User hasOne Profile.
Have you also created the belon
On 1/4/07, Dr. Tarique Sani <[EMAIL PROTECTED]> wrote:
Hello All,
This is a bit off topic - so apologies for that.
Which ER / DB design tools do you folks use or rather do you use an ER
tool at all?
I use a whiteboard, dry-erase markers and paper to do my database design work.
Sounds lik
Requests were sent out several months ago for migrating any content
that anyone thought was useful out of the wiki and into the Bakery. If
there was content for which those requests were not followed up on,
then it's too late now. That said, I did find this kicking around my
hard drive:
[ISAPI
Thanks, Martin. I'll try your suggestion.
What I am trying to accomplish was posted here today.
http://groups-beta.google.com/group/cake-php/browse_thread/thread/8968aaa372cc1e67
Any comments will be much appreciated.
On 1 4 , 9 47 , "Martin Schapendonk"
<[EMAIL PROTECTED]> wrote:
2007/1/3,
I having problems to install Bakesale (cakeforge) in the IIS.
Somebody knows what to make to disable the mod_rewrite in bakesale and still
thus to continue functioning?
--
[]´s,
Aldemir Vieira
--~--~-~--~~~---~--~~
You received this message because you are subscr
2007/1/3, skyblueink <[EMAIL PROTECTED]>:
I have no choice but to call $this->set() one thousand times in
Controller, and write foreach statement one thousand times in View.
Maybe you could make myfunction() a little bit more intelligent?
function myfunction($i) {
switch($i)
{
case 1:
Hello,
This may be bit OT now and should belong under "Tree Traversal
Methods", however I just wanted to maintain a coherent thread so that
I can easily find it later on.
I have been looking back at the top of this thread to see if I missed
anything at the same time I kept looking back as to wh
On 1/4/07, sawa <[EMAIL PROTECTED]> wrote:
I use Azzurri plugin for Eclipse. It's good enough for me. The only
Had not tried it before - but it does not let you define a 1:n relationship
Thanks
Tarique
--
=
PHP Applications for E-
On 1/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
You might want to give the modeling tool umbrello a try, it can do ER
Tried Umbrello - it can just about do ER and very clumsy at that.
Thanks
Tarique
--
=
PHP Applications for
Bit of a newbie question here - I'm trying to update multiple models at
once, but the foreign key keeps getting lost. I'm using CakePHP
version 1.1.12.4205.
I have User and Profile models. User hasOne Profile.
When creating a new User and Profile it works fine, the associations
are set up prop
How are you tracking page view - os | browsers | resolutions?
--~--~-~--~~~---~--~~
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 thi
in the first view i have it:
link('+informações','/cars/form/' .
$car['Car']['id'],null,null,false)?>
and the other view i want it:
Pedido de para
how do i pass the $arg on the first view? i have to pass to crontoller too?
--~--~-~--~~~---~--~~
You receive
On 1/4/07, sawa <[EMAIL PROTECTED]> wrote:
Is there some backup of the wiki site that I could download?
I remember there have been many usefull things there.
Try google cache - some of the pages are still there - I too wish that
the wiki was still available.
Tarique
--
=
Is there some backup of the wiki site that I could download?
I remember there have been many usefull things there.
On Jan 4, 5:19 am, "nate" <[EMAIL PROTECTED]> wrote:
The IIS tutorial is missing from the wiki? If you look, you'll
actually notice that the wiki is missing from the wiki:
http:/
I use Azzurri plugin for Eclipse. It's good enough for me. The only
thing that I miss is generating statements to populate tables with some
default values. That feature exists in DBDesigner. Otherwise, I'm quite
satisfied with what it can do.
--~--~-~--~~~---~--~
I currently use MySQLFront on WinXP. Works ok, but could be better.
I used mysqlfront too when i was on winblows, it's a nice program.
but unless we're talking about 2 programs sharing the same name:
1)it has been discontinued due to legal issues
That is correct.
2)it's more suited to "da
When in the User model, just use $this->findByUsername, not
$this->User->findByUsername.
--~--~-~--~~~---~--~~
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.
On 1/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
You might want to give the modeling tool umbrello a try, it can do ER
and it can export to various languages,
I was trying to avoid going the UML way :)
iirc there are also some
eclipse plugins available, but afaik they aren't very good
Langdon Stevenson wrote:
I currently use MySQLFront on WinXP. Works ok, but could be better.
Regards,
Langdon
I used mysqlfront too when i was on winblows, it's a nice program.
but unless we're talking about 2 programs sharing the same name:
1)it has been discontinued due to legal issues
2)
Daniel Gomes wrote:
you just have to create one layout, the default layout. Then you just
to have to create the views files that only have the content.
It's perfectly OK to have multiple layouts. Although the 'interesting'
bit (from a user perspective) can only be rendered by echo
$content_fo
Please see this thread:
http://groups.google.com/group/cake-php/browse_thread/thread/bf3bc452e6e60a79/3374ddf4fe7a15e9#3374ddf4fe7a15e9
The 'Search This Group' (top right) function for Google Groups is also
extremely useful :)
--~--~-~--~~~---~--~~
You received
HasAndBelongsToMany is relationship in Cake, but I found problem when I
want search something in HasAndBelongsToMany table.
Example:
There is three tables: contents, content_tag, tags, the relationship is
HasAndBelongsToMany between contents and tags. There is tow record in
table tags(A and B).
I
Try using elements.
$this->renderElement() in the view.
Look at the api.
--~--~-~--~~~---~--~~
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
hi
what URL did return you an error ?
is your whole app returning errors like this ?
then it's most probably a url_rewrite error or something like that...
how did you setup url rewriting ? do you use it ?
clement
On 1/4/07, vinod_una_HP <[EMAIL PROTECTED]> wrote:
Hi,
I am using con
when I use Cake, I found I need define multi $content_for_layout.
example:
I want to display two different dynamic content in one page look link
above, but there is one $content_for_layout in Cake.
So, what can do?
--~--~-~--~~~---~--~~
You
Sorry if this has been asked before I searched and could not find it.
Also i'm new to cake (getting the hang of it though) so this might be
an easy fix. I'm trying to do some custom validation in my model using
a callback.
function beforeValidate()
{
if (!empty($this->dat
I currently use MySQLFront on WinXP. Works ok, but could be better.
Regards,
Langdon
Dr. Tarique Sani wrote:
Hello All,
This is a bit off topic - so apologies for that.
Which ER / DB design tools do you folks use or rather do you use an ER
tool at all?
--~--~-~--~~---
82 matches
Mail list logo