No 'standard' way how to determine action where requestAction was
called from (except for $_GET['url'] which is not 'clean usage of
cake' as You obviously do not need to use $_GET directly in cake).
But: You can pass some parameter to requestAction like
$a = $this->requestAction('/some/url', arr
I think something like $this->params['controller'] will just give the
currently executing controller ("main" or "plugin") and this is not
what you want.
I'm unclear on exactly what your goal is, but it seems there are two
options:
1. make the "plugin" code generic, have it do its thing, return d
Hi all,
I've installed Apache 2.0.59 and PHP 5.2.1 successfully on Windows.
I've extracted Cake 1.1.13 to the htdocs directory. But whenever I
point my browser to http://localhost:8080/cake/ instead of seeing
Cake's default homepage, I see the directory listing. Any ideas what's
probably wrong wi
You can just give a call to the function at the bottom of your ajax'd
response like this -
init_uploader();
Just make sure evalScripts is set to 'true' while doing the ajax call
- it is used for evaluating the script received in an ajax response.
Thanks,
Mandy.
http://mandysingh.blogspot.com
This is probably a crappy response, but try print_r($this->params) and
see what's in there. It might have what you're looking for.
On Apr 1, 5:29 pm, "gerbenzomp" <[EMAIL PROTECTED]> wrote:
> I've made a plugin which is included in every page using
> requestAction, but I need to show and hide dif
That query doesn't look too complex... Why are you doing it in a
custom query instead of just doing it in a $this->Order->save() ?
Have you tried getting the insert id by doing: $this->Order-
>getLastInsertId(); in the controller after your query call? Does it
actually insert the information int
I'm trying to create a new model object and it is failing (accoring to
my if statements: see below for code samples). What's the best way to
debug why this is failing?
table schema
Create table 'orders' (
id int(11) NOT NULL auto_increment,
'user_id' int(11) NOT NULL,
'order_date' datetime NOT
I am trying to run a script when the onblur event occurs. I set this
up and it runs but it runs in a loop. What is the right way to run a
scirpt after running an autocomplete?
Here is my field:
autocomplete('Company/name','/companies/
autocomplete', array('size' => 40,
'afterUpdateElement'=>'g
Sorry, I meant controller, instead of action in the above post.
On 2 apr, 02:29, "gerbenzomp" <[EMAIL PROTECTED]> wrote:
> I've made a plugin which is included in every page using
> requestAction, but I need to show and hide different parts of the view
> depending on the current main action (the
I've made a plugin which is included in every page using
requestAction, but I need to show and hide different parts of the view
depending on the current main action (the action which is visible in
the url).
I've tried using
if($this->name == 'my_action'){
//
}
else
{
//
}
But that metho
I Christoph,
This bug has actually already been fixed in the latest SVN version of
Cake 1.2, so if you update, you should be all set. Also, in the
future, if you find a bug, post a ticket at https://trac.cakephp.org/.
Thanks.
On Apr 1, 7:06 pm, "Preloader" <[EMAIL PROTECTED]> wrote:
> Hello bak
This issue was solved already:
https://trac.cakephp.org/ticket/2322
Update to latest SVN version.
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your know
Hello bakers,
I think I found a bug somewhere in the FormHelper (or beneath), but I
cannot really locate it in the cake source, so I only can try to
explain, how the problems occurs:
In my News-Model i have a DATETIME filed called "date", it's value
could be '2007-04-01 22:01:34'
In my view "..
hi i'am trying to generate my application with "cakephp bake", i can
generate models and controllers but when i try to generate a view this
error message apears, and i do not know to fix it.
Fatal error: Class 'Controller' not found in C:\www\cake\cake
\app_controller.php on line 40
How do i fi
I've put up an example and mini tutorial/overview/research notes with
some research I've been doing on this subject.
I will clean and zip up my source files and post them online for
people as well.
http://www.concepthue.com/how-to/cake_flex/
It's a fairly simple example. I've made two Models, "T
You only need cakeamfphp 0.60 actually.
http://www.concepthue.com/how-to/cake_flex/example/
However note this is only using AMF0 ObjectEncoding.
I'm too unfamiliar with AMF and AS3/Flex to know the advantages of
AMF3 over AMF0 or even the difference for that matter.
I did try using AMF3 instead
I'm sorry, forget gc_maxlifetime, it think it's ignored when using the
database.
The other two determine when __gc is called by php. If you add this:
ini_set('session.gc_divisor', 1); __gc will be called in every request
(not recommended for production, obviously).
Try adding some logging to __gc
Thanks all,
But i won't be adding a relation between Customer and Invoices. I like
my Databases only when it's totally normalized (http://
en.wikipedia.org/wiki/Database_normalization). No duplicate
information (so also DRY), and no anomalies.
So i think i'll go for the custom query.
--~--~--
...but wait, these settings are only relevant for the PHP internal
session management, while cake brings its own gc routines.
or does it behave similar to PHP sessions by taking these
values into account ??
sorry but i just don't get it. looking at the sources doesn't bring
me any further here..
i will try to set gc_divisor and gc_maxlifetime in the
session constructor... and see what happens...
thank you very much
jyrgen
>
> session cleaning depends on these php settings:
> session.gc_probability, session.gc_divisor and session.gc_maxlifetime.
> As far as I can tell, cakephp only se
Hi Mariano,
the error was reported in the ticket #1861 of the cake's trac and have
another ticket with similar report (i don't remember what).
Basically, the error consists in the fact of the session component be
loaded automatically (even if the AUTO_SESSION setted to false) but
don't be able t
hi again ^3 !
after struggling/searching for two days i finally came across this
one :
http://groups.google.at/group/cake-php/browse_thread/thread/b8816db7ff5854bc/12598076103b0130?lnk=gst&q=3+HABTM&rnum=2#12598076103b0130
which IMHO should be added to the cake-manual, section model,
paragraph "
First of all helo to all and thank you all for great work on such a
great framework. :-]
I got small problem with conditions in hasOne association. It looks
like conditions aren't set for some reason :-/
my model code is:
class Post extends AppModel {
var $name = 'Post';
var $pr
On Apr 1, 7:11 am, "jyrgen" <[EMAIL PROTECTED]> wrote:
> is there any _gc probability / whatever php setting that is not
> overwritten by the cake session class, and has to be adjusted
> manually ?
>
> thx, jyrgen
session cleaning depends on these php settings:
session.gc_probability, session.gc_
I just built my own swfupload script using the new article in the
bakery:
http://bakery.cakephp.org/articles/view/296
It's a great article, and the uploader works fantastically!
Everybody's talking about "ajax upload", but this is the first good
implementation I've seen.
One question though:
T
hi Jontan,
I am not sure whether you have a problem with pagination or sorting or
with merging..
here is an example for merging
$this->Authors->findAll(NULL, 'Author.id, concat(Author.fname, ' ' ,
Author.lname) as name');
for sorting multiple columns
$this->Authors->findAll(NULL, 'Author.id, co
I'll list out what I see are the adv/disadv of building your own cms/
store etc. with cake, vs. delivering clients an off the shelf
opensource product:
Building your own cms/store with cake has the following advantages:
1. the code base will be much smaller for the same functionality
2. once it
Hi there,
i'm sorry for re-posting this issue (bug?), but we're still in the
need
of finding a solution.
When i set session to "database" i assumed that all session data
handling is done by cake. I also thought that this setting is
independent of any server side php.ini settings.
On my local ma
And what about 1.1.xxx? it works with oracle?
2007/3/30, nate <[EMAIL PROTECTED]>:
>
> Yes, and yes. Cake 1.2 supports both SQL Server and Oracle. You can
> set the 'driver' in app/config/core.php to 'mssql' or 'oracle'.
>
> On Mar 30, 10:23 am, "christianandradet" <[EMAIL PROTECTED]>
> wrote:
29 matches
Mail list logo