I usually do something like this
$data = $this-Page-read();
// do stuff with data array
$this-set('data',$data);
On 4/4/06, mikis [EMAIL PROTECTED] wrote:
Hello, I'd like to switch layouts on the fly, based on record in the
database. To explain:
There are two simple classes, Pages and
On 4/6/06, brandags [EMAIL PROTECTED] wrote:
@Samuel: Does that mean that if I wanted a special title for my staticpages, I'd need to create an action for them in the pages controller?Or hard code the title into the display() function of the pages
controller?Is just seems that titles other static
$this-requestAction() might help here
look in manual
Sam D
On 4/9/06, Alexey Baranovskiy [EMAIL PROTECTED] wrote:
I need to change requested action.
For example: User requested this url - www.domain.com/articles/edit/1,
but he isn't authorised. I need to change action edit to action
I did it like this ?phpclass Contact extends AppModel{ var $name = 'Contact'; var $validate = array('email'=VALID_EMAIL, 'name'=VALID_NOT_EMPTY,'text'=VALID_NOT_EMPTY,'regards'=VALID_NOT_EMPTY);
var $useTable = false;}?the $useTable means that it doesn't connect to the db and I can use the
You can take the pages_controller from libs/controller and put a copy in your app/controller directory then from there you can set layout for particular 'pages' based on a set of rules. Or if you make your own app_controller.php in your app you can set the layout there for pages as well
Sam DOn
I would set DEBUG to 2 in core.php and see if the query is creating an
error and start from there.
Sam D
On 4/12/06, spacedz [EMAIL PROTECTED] wrote:
I'm designing my site and at the moment all news is posted via the
phpBB forum; the main site just pulls out the right stuff and replies
show
look in the $this-params['data'] try using pr(); a shortcut for print_r or you can now use $this-data, if you need the name of the button pushed you can also look in $this-params['form']Sam D
On 4/20/06, Ashley [EMAIL PROTECTED] wrote:
Hi all!I've just been introduced to Cake world! But I have
my guess is that the server doesn't have AllowOverride All set for
your directory
or are you on IIS?
On 4/25/06, Dusty [EMAIL PROTECTED] wrote:
Hi all,
I am testing out cakePHP and am having problems getting
scaffolding to work from a fresh install version
Have you tried changing the mod rewrite stuff to something really
simple like a redirect just to see if that part is getting called. It
does seem that your issue is that the mod rewrite is not working, if
you have access the the server config maybe try turning up the
loggging for mod rewrite and
you should open a ticket with the fix! https://trac.cakephp.org/ so it can get includedOn 4/26/06, sinyo
[EMAIL PROTECTED] wrote:
hahaha, finally i can help myself to useAjaxHelper::observeForm :)but i make a little bit change infile/cake/libs/view/helpers/ajax.phpline 411$options['with'] =
where I have complete, you can also have loading, before, etcOn 5/1/06,
Samuel DeVore [EMAIL PROTECTED] wrote:
it's an easy taskOn 5/1/06, immure [EMAIL PROTECTED] wrote: Hi bakers, Was just wondering (after searching google for some time) if there was
an easy way to use the scriptaculous
you can also look in the http://api.cakephp.org/ at the Folder classyou might find that Folder::ls would be helpfulSam DOn 5/3/06,
RosSoft [EMAIL PROTECTED] wrote:
check this?php$dirname=ROOT .DS.'vendors' . DS;$dh= opendir($dirname);$files=array();while (false !== ($entry= readdir($dh))){if (
So at the top of the controller you could douses('folder','file'); // loads the classes for Folder and Filethen in the controller to get an array of readable folders in a path you could do$path = WWW_ROOT.DS.'dev'.DS.'birdlists'.DS.$filename;
$folder = new Folder($path);$ls =
try upping the debug setting in config/core.php to 2 and see if any
sql errors are reported.
On 5/3/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
I'm pretty new to CakePHP (just got it yesterday) and I was following
along with the second blog tutorial
I think the plan for the cake bakery tutorial is to include this. https://trac.cakephp.org/wiki/BuildingCakeBakery
On 5/5/06, Carlos Mauricio Samour [EMAIL PROTECTED] wrote:
I would like help in what skills should I learn before building alogin authentication features in my cake apps. Thanks!On
Probably what you need is to add a an ajax-observeField call in the thtml to watch the field for changes and use that to call an action that generates a preview and places the result of the ajax call in the div.
On 5/6/06, Jeroen Janssen [EMAIL PROTECTED] wrote:
Hi,Is there a tutorial that shows
you should look in the api for the bindModel and unbindModel methods for the model, I think it is what you are looking for, it's a little cleaner and the reset after you use them
http://api.cakephp.org/class_model.htmldoesn't seem to be in the manual yet, but there was a page in the wikiSam DOn
It seems to me that you did not update the contents of your app/core folder? in particular the inflector.php file in core/On 5/11/06, Dusty
[EMAIL PROTECTED] wrote:Larry,I was wrong, there is still a problem.As I said in my first post
everything works with the stable build.Here is my
I would make sure that in the controller class and in the model you define the $name varlike var $name = 'Tryout';in the model andvar $name = 'Tryouts';in the controller
On 5/14/06, moob [EMAIL PROTECTED] wrote:
Hi,I just installed CakePHP 1.0.1.2708 and followed the blog tutorial toget an idea of
This is noted in the manualin the tutorialhttp://manual.cakephp.org/chapter/18and the sections for controller and model
http://manual.cakephp.org/chapter/6 and http://manual.cakephp.org/chapter/7On 5/14/06, Samuel DeVore
[EMAIL PROTECTED] wrote:I would make sure that in the controller class
what is the name of the file? is it tasks_controller.php?On 5/14/06, Reggie [EMAIL PROTECTED]
wrote:I'm trying the Ajax task list tutorial at
http://grahambird.co.uk/cake/tutorials/ajax.php.However, I am getting the following error when trying to load it:Fatal: Unable to load controller
in config/core.php try upping the DEBUG define to 2 you can get a dump
of the queries that way
On 5/14/06, tom [EMAIL PROTECTED] wrote:
Is there a way to debug SQL queries anywhere?
--~--~-~--~~~---~--~~
You received this message because you are subscribed
John i use this (if it is mostly the same as the one you sent me a bit ago), with very few changes on php4On 5/15/06, John David Anderson (_psychic_)
[EMAIL PROTECTED] wrote:I'm going to post this to the group, in hopes that others might find
it useful as well.This is what I'm using to do my LDAP
Way Cool Joe, you are hereby raised to the level of You Da ManOn 5/16/06, joelmoss [EMAIL PROTECTED]
wrote:Cake Migrations is now at Version 1.0 and includes full support for:
- create/drop tables - add/drop columns - insert/delete test data - and raw SQL queriesTake a look at its new home at
would the html helper functions tableHeaders and tableCells work?http://api.cakephp.org/class_html_helper.html#9a724e5b113b0d403e8be2072a2c8c96
and http://api.cakephp.org/class_html_helper.html#e055ff479e3a2c338eaa7587358c113f
On 5/16/06, roberts.sean [EMAIL PROTECTED] wrote:
I'm looking for a
Try adding set-time-limit(60); in the main loophttp://us3.php.net/manual/en/function.set-time-limit.phpSet the number of seconds a script is allowed to run. If this is reached, the script returns a fatal error. The default limit is 30 seconds or, if it exists, the max_execution_time value defined
Set the debug level to 0On 5/16/06, Leandro Ardissone [EMAIL PROTECTED] wrote:
Hi,I want to get a 404 error page when someone tries to access a page thatdoesn't exists in cake.But when I put some else value in the URI I get Missing Method inImagesController instead of an error page or redirect to
CakePHP is designed to work in both 4 and 5
On 5/20/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Is Cake PHP available in version PHP5.0? or it is currently only in
PHP4.X ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
Nate, how do you set up the returned information from the ajax-link to fill the two divs?On 5/26/06, nate
[EMAIL PROTECTED] wrote:Hey y'all,Just wanted to make a follow-up comment about something that happened
this release.Actually, it's more of a confession: We did it again.We started adding new
You might want to jump on the irc channel and see if someone there can give you some help, try looking for nate or phpnut, they mioght be able to help. You might try adding some debugging calls to the adodb libraries you are trying to use and see if you can gain some insight that way. It is
usually what I do is to set up a virtual host that points to my user folder. The usual ~username/ never seems to work. But I have cake running on about 3 different versions of mac os x with no problems, server and client installs
On 6/7/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Wow, and now
Oh the other issue is to make sure that you have AllowOverride All set for the path where the cake install is at.On 6/7/06, Samuel DeVore
[EMAIL PROTECTED] wrote:usually what I do is to set up a virtual host that points to my user folder. The usual ~username/ never seems to work. But I have cake
If you are around later today, try me on google chat if you want and we can figure it out, then perhaps when we are done we can work on a help page for the next troubled user...Sam D
On 6/7/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Samuel DeVore wrote: usually what I do is to set up a virtual
It really depends on what you are talking about with modules, probably the cake equivalent to what most people are referring to with modules. Would be the plug in notion. Where one can have mostly self contained functionality that may be shared among multiple 'applications' I believe there are
I have to apologize it seems that the manual section on plugins is empty, sorrySam DOn 6/8/06, Samuel DeVore
[EMAIL PROTECTED] wrote:It really depends on what you are talking about with modules, probably the cake equivalent to what most people are referring to with modules. Would be the plug
I don't think it is, it's just habitOn 6/13/06, RosSoft [EMAIL PROTECTED] wrote:
Samuel: Is that necessary in PHP4 ? Can you verify it?Because AppModel extends Model --extends ObjectAnd Object class implements the php4 constructor for compatibility with__construct
I have a model that has a belongs to like var $belongsTo = array( 'Owner' = array('className'='Client','foreignKey'='owner_id'), 'Photographer' = array('className'='Client','foreignKey'='photographer_id'),
'Billto' = array('className'='Client','foreignKey'='billto_id'), 'Client' =
:)On 6/17/06, nate [EMAIL PROTECTED] wrote:
https://trac.cakephp.org/changeset/3119There.Is everybody happy now??
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to
Olivier, We could use http://hem.fyristorg.com/matben/ Coccinella to do this. I would be happy to host the file for a while and then as we come to consensus, I'll clean it up and make a pdf/page out of it.
Sam DI'll post information on the file when I get it up and runningOn 6/17/06, Olivier
Have you looked in the model chapter of the manual http://manual.cakephp.org/chapter/6 you are looking for the section on adding conditions. For example one thing that I have as a condition is flActive=true
Sam DOn 6/22/06, Matt [EMAIL PROTECTED] wrote:
Hello everyone,Must say I am very impressed
then what you are probably looking for is bindModel and unbindModel look at some of the listings at http://cakephp.org/search?q=bindModel (cakebaker has a nice overview) you can also have conditions in your findAll and find calls
Sam DOn 6/22/06, Matt [EMAIL PROTECTED] wrote:
Hi Samuel,I saw that
Try using array('Article.active'=1) for the condition ('Article.active'=1 would work as well but there are some advantages to using the arrays for conditions)On 6/30/06,
AD7six [EMAIL PROTECTED] wrote:
Hi Luke,set debug to 2 in your /app/config/core.php file, and you will see thatthe sql query
You know for most of the functions you may be better off looking in the api documentation (http://api.cakephp.org/ ) it's a little more standardized.Sam D
On 7/5/06, LikeSoy [EMAIL PROTECTED] wrote:
I'm sure I'm just missing something (or overthinking it), but I don'tquite understand the style
I would imagine that if one is using other js methods like dojo that there might be a custom header from them as well that could be added to the requestHandler stuff, as a variable or define, that could be added to the code via a enhancement request in the trac/
On 7/5/06, adam davis [EMAIL
check out address for subversion is http://macromates.com/svn/Bundles/trunk/Bundles/CAKE.tmbundlecomments and ideas welcome :)Sam D
On 7/6/06, Poncho [EMAIL PROTECTED] wrote:
John David Anderson (_psychic_) wrote: On Jul 6, 2006, at 2:43 PM, Poncho wrote: I was a long-time user of Dreamweaver
I belive that model::save takes a third parameter of fields to savehttp://api.cakephp.org/class_model.html#ef348bd6a62f8196fe42b2cebafc945f
Sam DOn 7/6/06, Felix Geisendörfer [EMAIL PROTECTED] wrote:
Hey Chris,
I think you've got a good point there. One solution I could think of is
to
in your model file you could create your own save function that has a default $whitelist that then gets passed to the parent::save()Sam DOn 7/7/06,
[EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
While, I feel a little less sheepish for not having noticed that ifthese guys didn't either. I'm going to
there is a ticket with a patches at https://trac.cakephp.org/ticket/927On 7/7/06, Spinnal
[EMAIL PROTECTED] wrote:I think that exists a bug in the funcion $html-dateTimeOptionTag(),
when I try to show a combo box usign this funtion and passing the valuethat I want to be selected by the function I
I have found that in some cases my php from the command line is completely different from php as interpreted in the browser.Sam DOn 7/11/06, nate
[EMAIL PROTECTED] wrote:Yeah, that's really odd.The only thing that comes to mind is an
errant ini_set, but it doesn't look like Cake is setting
try array('Logo.company_id'=1,'Product.id'=2) On 7/12/06, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:I have a HABTM relationship between Products and Logos. When I use
something like this:$this-set('data', $this-Product-find(id = 2, null, null, 1));The result is the following:Array([Product] =
I do it in my /config/databases.php file.
so in the class definition I have a constructor (all my stuff is php4
so I do it this way)
function DATABASE_CONFIG () {
if ($_SERVER['SERVER_NAME'] == 'dns.of.demo.machine') {
$this-default = $this-dev;
i's funny I just looked at an actual site of mine and I do ;) need to double check them all, thanks for the reminer...On 7/22/06, Gustavo Carreno
[EMAIL PROTECTED] wrote:On 7/23/06, Samuel DeVore
[EMAIL PROTECTED] wrote: Though I think that using the __constructor() that cake uses everywhere
you should look at the bindModel stuffcake baker as a little bit about it here http://cakebaker.wordpress.com/2006/02/22/new-feature-bindmodelunbindmodel/
Sam DOn 7/23/06, francky06l [EMAIL PROTECTED] wrote:
Thanks,The problem is that the condition changes depending of the user role(in my case),
$this-render(null,$layout);
might work
http://api.cakephp.org/class_controller.html#c89d96ba75d5acfafaee61476a575353
On 7/26/06, admataz [EMAIL PROTECTED] wrote:
Does anyone know if there's a way to share the same view between
different controllers and controller actions? Or a good reason
sorry
$this-render(null, null, $file);
On 7/26/06, Samuel DeVore [EMAIL PROTECTED] wrote:
$this-render(null,$layout);
might work
http://api.cakephp.org/class_controller.html#c89d96ba75d5acfafaee61476a575353
On 7/26/06, admataz [EMAIL PROTECTED] wrote:
Does anyone know if there's
no
On 7/27/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
We're bidding on a website redesign and are heavily pitching the use of
CakePHP. The client is very concerned about URLs like:
www.site.com/page
instead of
www.site.com/page.html
Are CakePHP URLs any more difficult for search
did you try searchinghttp://www.google.com/search?q=cakephp+and+drupalstart=0ie=utf-8oe=utf-8client=firefoxrls=org.mozilla:en-US:unofficial
On 7/29/06, Kuma_Pageworks [EMAIL PROTECTED] wrote:
So this project that I'm working on has basically become a CMS.Soinstead of building an entirely new CMS
There is an admin routing feature you might want to look at
http://manual.cakephp.org/chapter/4 in section 4
It's a different way to do what you might be thinking about. And no I
do not believe that there is builtin support for hierarchical
controllers
Sam D
On 7/31/06, Neves [EMAIL
You should try making the 5th parameter false so that it doesn't
escape the title (or the link text) in your case the image tag
Sam D
ps the api is your guide http://api.cakephp.org/ ;)
and welcome from the grumpy old man who leave short useless answers
scattered all over the place
link
If this old dog can learn this new CakePHP tricks thing then any one can.
On 8/1/06, kestrelid [EMAIL PROTECTED] wrote:
Sorted. If the quality of this response is the future in cakePHP I have
to look forward to, the future is bright.
thanks Samuel
I think to make the assumption that because no one either feels confident enough to answer the question of whether or not cleanArray or the CakePHP framework in generally protects against XSS attacks, no one understands the vulnerabilities is fairly shallow.
I think given the variety and varying
remember that the automatic redirect only works with a DEBUG set to 0
in the config/core.php
for other debug levels you have to manually click on the link
Sam D
On 8/1/06, anir [EMAIL PROTECTED] wrote:
Hi all,
I am new to cakephp. In my controllers after adding a record, I am
trying to
You might look at setting up some custom pluralizations in the the
apps config/inflections.php file. It could be that the inflections
are not working out right. The model and controllers are pretty
dependant on that
On 8/2/06, Mattijs [EMAIL PROTECTED] wrote:
As an addition: leaving out the
heck I even did a essentially static website with all the content
stored as markdown styled text and just rendered into a site on the
fly. The client then edits the text files that are synced with the
server
http://www.glicksmanlaw.com/
Sam D
On 8/3/06, webbo11 [EMAIL PROTECTED] wrote:
So now I have to admint I haven't been reading this thread at all, and I have no experience with this particular problem. But when I was helping someone track down some problems with jpGraph and cake. we were having problems with encoding of the resulting image. It turned out that a couple of the
According to the api http://api.cakephp.org/class_view.html#54f7a2fbe1215f970dff3132730ab1f1renderElement takes two parameters
you could try this$params['user_id'] = $user_id;echo $this-renderElement('user_box', $params);and in the element look for it(hint it will be $user_id ;)Sma D
On 8/4/06,
In cake speak a component is a class used to contain common code for many controllers, I'm not sure this is what you are talking abouthttp://manual.cakephp.org/chapter/9
- components Is is possible you are thinking of a need for $this-requestAction ('/controller/action/',$params)referenced in the
Like http://www.thinkingphp.org/2006/08/05/a-solution-for-e-mail-sending-in-cakephp/or
http://wiki.cakephp.org/tutorials:sending_emailThere are some others at http://cakephp.org/search?q=emailSam D
On 8/10/06, Gonçalo Marrafa [EMAIL PROTECTED] wrote:
Hi.Is it possible to have views that are not
some examples can be found at http://cakebaker.wordpress.com/2006/02/22/new-feature-bindmodelunbindmodel/Sam Dps it a great feature, but if you find yourself using it all the time you might want to think about adding conditions to the model files them self and undoing the conditions when you do
other frameworks... there are other frameworks, dang it should of
looked at those... ;)
good luck and knock their socks off
sam d
On 8/15/06, nate [EMAIL PROTECTED] wrote:
Hi all,
If you're in the area, come check me out at BostonPHP:
http://cake.insertdesignhere.com/posts/view/6
I'll
gwoo beat me, I must be an old fart
On 8/16/06, Samuel DeVore [EMAIL PROTECTED] wrote:
of course there is the cakebin http://cakephp.org/pastes which is in
cakeforge in rdos section I think. (uses Geshi which can be used as a
vendor) my guess is that there is something in that mythical
You're right I looked in my own code where I use models for validation only (and for doing email) and I have $useTable = false;perhaps you should paste some source in the bin
http://cakephp.org/pastes/add from your controller and show what you are doing and someone more awake then I might be able
look up beforeFilter in the manualOn 8/17/06, Simplerules [EMAIL PROTECTED] wrote:
I want to do an routine check of permissions on everypage/visit/execution, where would the best place to put the code be?
Its only a function call, a function set in app_controller, but whereshould I put the call so
you might look at the component that nate did for autoCompletehttp://cakeforge.org/snippet/detail.php?type=snippetid=70Sam D
On 8/17/06, codecowboy [EMAIL PROTECTED] wrote:
This seems pretty heavy wieght.I wouldn't want the server to gothrough all of the extra logic of rendering an empty view just
See I do use $this-ModelName-validates, but do not use $uses anymore, it just caused needless headaches. If you have access to IRC I would try to jump on and be ready to post source and let the bigger heads help you out. If you post some source in the cakebin
http://cake.php.org/pastes/add I'm
Oh I use it too, I just try to avoid it because I don't want to create
too many dependancies to a particular DB engine, it is far too easy
for me to put mysql specific syntax in there then I loose the
portability that a database abstraction layer buys me.
Now if I was very instinctive about
You, my good sir, are a tease ;)
On 8/20/06, nate [EMAIL PROTECTED] wrote:
Pagination is being added to the core in Cake 1.2. Using 1.2 you can
set up basic pagination on models or associated models by doing the
following in your controller:
var $paginate = array('limit' = 20, 'order' =
usually when I am starting a site that might have funky plurals I make a page that calls the Inflector class with the various calls for the words to see what cake thinks the plurals will be, if they are not what I expect, I either add them in the config/inflectors.php or change my thinking ;)
On
have you looked at the php date function? http://php.net/date or you
can do what I did and make a custom helper function that allows one to
custom format dates. like
function niceShort($date_string, $format='l j F Y', $return = false) {
$timestamp =
you need to convert the date string to a unix timestamp before you can
use it in date() you can use the Time helper function toUnix to
accomplish this or look at
http://us3.php.net/manual/en/function.strtotime.php for the string to
time function.
the unix timestamp is probably your sticker on
$this-Model-findAll(array('field' = '= value'))
On 8/21/06, Mikee Freedom [EMAIL PROTECTED] wrote:
Hey all,
A quick query.
I prefer to include conditions as an array but was curious how to set
conditions other than:
field = 'value'
i.e. Model-findAll(array('field' = 'value'))
no worries ;) open a ticket on the documentation, it should be in
there, but couldn't find it either ;)
On 8/21/06, Mikee Freedom [EMAIL PROTECTED] wrote:
a that simple.
thanks mate
On 22/08/06, Samuel DeVore [EMAIL PROTECTED] wrote:
$this-Model-findAll(array('field' = '= value
ok here's your home work read the http://api.cakephp.org/ (hint you
need to do this in the controller so that is a good place to start,
you are looking to do something with 'fields' so look for that.
have fun fishing
On 8/22/06, Geoff [EMAIL PROTECTED] wrote:
I was wondering if there is any
So I usually have a .thtml page in my views/pages that looks like
http://cakephp.org/pastes/show/ebb93d95243037fcca3d73ae04c69b72
This lets me test my assumptions about how things are going to work.
Sam D
--~--~-~--~~~---~--~~
You received this message because
I really need to start a page of the 'old fart's oven o' baking hints'
On 8/22/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
thanks mate :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To
make a new helper for yourself that uses the above (in hindsight I
should of called mine dateWithMask )
in the definition of the helper use $helper = array('Time); then you
can use the existing time helper
I would strongly recommend against changing the existing time helper!
On 8/23/06,
here is my general rule of thumb, if I do something more then twice in views, rather then do it a third time I add it to one of my common helpers, if there is something close already in an existing helper, I try to leverage that work. Every once in a while I revisit and try to refactor my helpers.
you should look at the documentation for the database you are using.
in mysql one might do distinct month(Post.created) but
reading some documentation would really save yourself some ridicule in
the long run. If you rely on this list as your crutch people are
going to start getting
yes
that is what the htmloptions parameter is for (use an array)
http://api.cakephp.org/class_html_helper.html#8978c3bdf729602b37160d0a22b8b6ac
On 8/24/06, Simplerules [EMAIL PROTECTED] wrote:
Is it possible to assign a name tag to a form generated using the
helper?
It would be better to make a page somewhere and link to it and save
the list the traffic. If people have snippets or small help
instructions that they need a place to host them and are CakePHP
related and are not cakeforge snippet quality and not worthy of the
vapor bakery. I might be willing
you can use http://cakephp.org/search?q=bindModel bindModel to set
associated ordering on demand (hint look for cakebaker's link)
On 8/24/06, jez [EMAIL PROTECTED] wrote:
Hi there,
I was wondering if there's a way to sort on a foreign field when I use
recursion in my find()'s
Thanks,
sorry c_doug, I was trying to be a little lite and facetious and it
failed, I was really trying to point out that your issue was one of
mysql vocabulary and db 'stuff' and not really related to Cake per
say, not that this is not a place to ask those kinds of questions but
also to perhaps guide
Also if the models are related you can do
if ($this-Answers-User-save(array('User'=$userData) {
$user_id =$this-Answers-User-lastInsertId();
$this-params['data']['otherModelData']['userr_id'] = $user_id;
// now do your save of other stuff
not tested or what ever but gives you
you should file a bug in htts://trac.cakephp.org against that (if
there isn't one already) so John can fix it ;)
On 8/24/06, Simplerules [EMAIL PROTECTED] wrote:
I guess the CakePHP manual is out of date:
checkbox
string $fieldName
array $htmlAttributes
boolean $return = false
very often this is an indication that your app/config files are not in
sync with your cake core files
see this thread
http://groups.google.com/group/cake-php/browse_thread/thread/6465f8d6ec5b7462/e31177cc5332340a?lnk=gstq=Warning%3A+Invalid+argument+supplied+for+foreach()rnum=4#e31177cc5332340a
No I have not, but I will gladly use yours. You know to help you test it ;)
On 8/24/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Does anyone have some sort of script or utiltiy that you could use to
make an old project ready for cake?
could be php, or a series of mysql queries on
http://grahambird.co.uk/cake/tutorials/ajax.php
On 8/25/06, carlosrg [EMAIL PROTECTED] wrote:
Hi
Anybody knows how to use ajax in cake???
Yes I'm a newbie and i have no idea how to do it. Would you be so kind
as explain me how i can do it? Or where can i find a good tutorial?
Thanks a
Alright a couple of questions...
Are you one php5 or 4?
If 4 make sure that you have $name set in models and controllers like
var $name = 'Post'; // in your model files
var $name = 'Posts'; // in controller files
Did you double check all of your pluralizations
refer to
sounds like a job for a helper
http://manual.cakephp.org/chapter/helpers (look at the bottom for
info about creating your own)
On 8/25/06, cyberlogi [EMAIL PROTECTED] wrote:
I have a recursive function that i'd like to use to optimize printing
data from a multidimensional array. If i put the
Which brings to mind one of my favorite acronyms
PEBKAC
http://en.wikipedia.org/wiki/PEBKAC
;) glad you found your problem
On 8/26/06, Jason Lee [EMAIL PROTECTED] wrote:
OK. Mystery solved. The root cause was a hole in my understanding of
the API, and a stupid typo. In AppController, I
1 - 100 of 687 matches
Mail list logo