On Wed, Apr 7, 2010 at 11:44 PM, Maverick at work
wrote:
> author ==> book
> Book Model ==> var $belongsTo = "Author";
> I m not able to see the author list while creating a new Book
Author hasMany Book?
--
MARCELO F ANDRADE
Belem, Amazonia, Brazil
"I took the red pill"
Check out the new
Thanks - I'll give that a go.
Jeremy Burns
jeremybu...@me.com
On 11 Apr 2010, at 05:09, mark_story wrote:
> Why would you not be able to? just write the code to do it. Depending
> the Js library you may have to do some trickery to get simultaneous
> animation. http://book.cakephp.org/view/1600/A
Why would you not be able to? just write the code to do it. Depending
the Js library you may have to do some trickery to get simultaneous
animation. http://book.cakephp.org/view/1600/Ajax-Pagination shows
how to do one effect. Just appending two effect methods together
should create simultaneous
The faster is using cascade, because it handled at a lower level than
the application level.
However, it's safer to delete related model through "dependent",
specially when this model implements a beforeDelete or afterDelete
callbacks (do not forhet the attached behaviors). When it's not
handled by
spam
On Sat, Apr 10, 2010 at 5:32 PM, Ronald Chaplin wrote:
> http://HoratioPaulino3145.co.cc
>
> --
> Thanks,
> Ron Chaplin
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Tenacious, Experienced PHP Developer
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their
Ok I will move the cake libs outside.
What do you mean by set up right for site1?
My problem I think comes from the fact my hosting company sets public_html
as the main site, addon domains each their own folder so I have my
public_html htaccess file directing all traffic to site 1 to site1 folder
I do something similar, except I keep my cake libraries out of
public_html, and you should as well.
Do you have the .htaccess files setup correctly in site1? What I
ended up doing was the same type of setup (except I move my cake core
out of public_html), but then addon domains rooted at the sit
I am trying to run multiple sites off 1 cake lib so i have:
public_html/
libs/
1.2.6/
1.3/
site1/
app/
site2/
app/
with if (!defined('ROOT')) {
define('ROOT'
Fixed it with a some help from cakebaker at
http://cakebaker.42dh.com/2007/05/07/writing-a-custom-cakephp-console-script/comment-page-1/#comment-156432
The suggestion was to remove the $uses statement and replace with
App:import and then a ClassRegistry in the function.
This change, plus re-readi
http://HoratioPaulino3145.co.cc
--
Thanks,
Ron Chaplin
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Tenacious, Experienced PHP Developer
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscri
hi there,
I did my first cake project so far and it works (well - most of it...)
Now I want to do some documentation adding the database-model and the
UML diagram as pictures.
Are there any tools to automate it as much as possible?
ER and UML will shure be very similar as each Class means a table
Being the douche that I am, I have worked out what triggered the
error. To trigger the error I misspelt the second parameter in a $this-
>Session->setFlash() call.
eg:
$this->Session->setFlash('Invalid URL.', 'admni', array('class' =>
'bad'));
The only way to continue on the site after this was b
Hi,
I was working on my admin area the other day when all of a sudden my
site white screened for every page on me. I took a look at the error
long and this was the message:
Allowed memory size of 33554432 bytes exhausted (tried to allocate
40961 bytes) in /usr/share/cakephp/cake/libs/view/view.ph
> PS Use real names, and real (abbreviated where possible) code. You
> don't help anyone pasting erroneous made up code
Certainly not me Andy :p
--
jon bennett - www.jben.net - blog.jben.net
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related q
Hello,
I have a pair of ajax calls made when browsing which day a user wish
to choose (+1 day, -1 day)
On the complete call I want to render the buttons again, since they
can't go pass a certain date and not further back than today's date.
Can I make a renderElement call somehow on the complete ca
On Apr 10, 1:04 pm, Ayman Bedair wrote:
> Got this error when I installed the profiler
>
> ( ! ) Fatal error: Maximum function nesting level of '100' reached,
> aborting! in C:\AppServ\www\test\memphis_erp\cake\libs\folder.php on
> line 239
Ayman,
Xdebug isn't just a profiler. One of the thing
None at all I'm afraid - but would appreciate an answer.
Jeremy Burns
jeremybu...@me.com
On 10 Apr 2010, at 17:47, Cylindric wrote:
> I have the same question, did you get anywhere with this?
>
> On Mar 25, 6:32 am, Jeremy Burns wrote:
>> I'm using the Js helper in 1.3 for Ajax pagination, ad
I have the same question, did you get anywhere with this?
On Mar 25, 6:32 am, Jeremy Burns wrote:
> I'm using the Js helper in 1.3 for Ajax pagination, adding a fadeOut &
> fadeIn effect to my content div.
>
> Can I produce two simultaneous effects? For example, can I fade out my
> content div an
i have translate about 8 topics on the book to arabic but they dont
submitted i was think that i did something wrong on the HTML maybe but
then i resend my translation with no any thing wrong on it
and i translate about 6 new topics but nothing yet submitted so what i
did wrong
i try to email
d...@
Hi guys,
In CakePHP we delete related records by dependency in model. Which way us
better
1. Set up CASCADE in innodb mysql database
2. Use dependent in cakePHP model
"Better" - I mean faster , safer .
Thanks for answers
Check out the new CakePHP Questions site http://cakeqs.org and help other
> ^ Looks wrong - you have MODEL MODEL MODEL then source, is that
> actually what you have?
Ignore that - mistook 'Source' for an array param, not a model name.
J
--
jon bennett - www.jben.net - blog.jben.net
Check out the new CakePHP Questions site http://cakeqs.org and help others with
thei
Hi Ayman,
> var $hasOne = array("MODEL");
^ looks ok
> var $hasMany =
> array("MODEL","MODEL","MODEL","MODEL","MODEL","MODEL","MODEL","MODEL","MODEL","MODEL","MODEL","MODEL","MODEL","MODEL"=>array("order"=>"MODEL.created
> ASC"));
^ looks ok
> var $belongsTo = array(
>
Hey Jon...
Actually I am running this on a windows server so the folders should
be writable with no problems.
I only have the Containable Behavior on all the models (AppModel) and
Tree in both ARO and ACO (ACL) models. I believe this is not a
problem.
Here below is an example of the associated
> Are your tmp dirs definitely 777?
> From looking at the API, __createLinks() creates the associated model
> objects - do you have an huge number of models/associations? Could
> there be something unusual about how they are set up?
Do you have any Behaviours or Plugins that could be recursively
g
> Got this error when I installed the profiler
>
> ( ! ) Fatal error: Maximum function nesting level of '100' reached,
> aborting! in C:\AppServ\www\test\memphis_erp\cake\libs\folder.php on
> line 239
Are your tmp dirs definitely 777?
>From looking at the API, __createLinks() creates the associate
Anyone of you considered using Gravatar + Flickr instead of local
solutions and if happy with either of them?
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
user.model => model User + var $useTable = 'adb_usres';
users_controller.php => controller UsersController
app/views/users/*
http://book.cakephp.org/view/1059/useTable
Be sure to check out the link that Jeremy provided.
On Apr 8, 7:07 pm, Miles J wrote:
> However, you don't need a controller pe
Got this error when I installed the profiler
( ! ) Fatal error: Maximum function nesting level of '100' reached,
aborting! in C:\AppServ\www\test\memphis_erp\cake\libs\folder.php on
line 239
Call Stack
# TimeMemory FunctionLocation
1 0.0041 135648 {main}( ) ..\ind
@mark and graham:
You can count me in as a moderator. :)
I have five years of moderator experience from Ogre3d.org, if that
counts.
But I cannot be a developer as I am still wet behind my CakePHP ears.
Jacob 'jacmoe' Moen
On Apr 10, 9:20 am, nurvzy wrote:
> @predominant I'd be happy to help out
Trying to save 1 form containing 2 related models (User and Profile)
How do i set up white list of fields when using saveAll?
Using ajax so security component checking a modified form is of no use. I
need to specify what fields can be saved so firebuggers adding fields to the
form will server n
Putting as many functions and processes into the model as possible. It's also
very useful because you can do
$this->RelatedModel->DistantRelatedModel->function() too - much easier
than trying to run a function from 'that' controller in 'this' controller.
Jeremy Burns
jeremybu...@me.com
On
@predominant I'd be happy to help out as moderator, developer, or
both. Wherever I'm more useful.
-Nick
@WebTechNick
http://www.webtechnick.com
On Apr 9, 9:03 pm, Predominant wrote:
> Hey all,
>
> Rest assured, we're discussing this problem within the development
> team to ensure the action we
Where does the "fat model" come into the picture?
On Apr 9, 9:43 pm, Jeremy Burns wrote:
> This could well start a storm of "you're not quite right" replies - but I
> think the spirit of this answer is about right.
>
> In MVC:
> Models do all the data humping and nothing else. Models can have b
33 matches
Mail list logo