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
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 unsubscribe
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).
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
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
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.
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.com
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.
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
--
in the first view i have it:
?php echo $html-link('+informaccedil;otilde;es','/cars/form/' .
$car['Car']['id'],null,null,false)?
and the other view i want it:
h4 class=titlepagePedido de ?php $arg ? para nbsp; /h4
how do i pass the $arg on the first view? i have to pass to crontoller too?
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 this
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
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
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
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 why
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:
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,
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:
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 like
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
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
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 software
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
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
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
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 line
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
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/
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
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
On
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
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
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
+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
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
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
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?
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
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.
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 something
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
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
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 table)
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
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
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
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
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, send
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
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
I got it. Here's the code that works.
function cakeMain(){
global $mainframe;
$mainframe-addCustomHeadTag(link
href='components/com_ps_core/cake/app/webroot/css/cake.generic.css'
rel='stylesheet' type='text/css' /);
$_GET['url'] =
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:
?php
vendor('Pear\Spreadsheet\Excel\Writer');
$workbook = new Spreadsheet_Excel_Writer();
$worksheet =
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)
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
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
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]
56 matches
Mail list logo