I would guess that changing $this->action would change which view is
used by default, but instead I would recommend just having:
function widget(){
$render_view = 'widget';
if (condition) {
$render_view = 'edit_small';
} else
$render_view
Yeah, if you have associated models, particularly when they are
functionally reliant (as yours are), I think it is perfectly
acceptable for them to reference each other. Of course, they should
each contain their own unique functionality, but supply an interface
for other models.
On Sep 12, 12:0
In a controller action, I want to set the name of the view that will
be auto-rendered after the action. The render() method renders the
view immediately. I only want to set the name.
The reason is this: I have two views for editing a widget.
The action looks like this:
read widget
if condition {
Hey,
I'm using Google Checkout for a current project. I'm wondering if anyone has
already done this in a CakePHP app and if they created a component for it
already?
I downloaded and unzipped the library from Google Checkout (
http://code.google.com/p/google-checkout-php-sample-code/) into a folde
Hrm, nothing there looks out of whack. Is this happening locally or on the
hosted site? I would almost say that the mysql server is stalling either due
to too few available threads or some sort of resource limitation.
Anything strange or unique going on in the controller that stalls? Is it
*all*
Thanks.
Its in the manual, i overlooked before.
On Sep 11, 7:16 pm, grigri <[EMAIL PROTECTED]> wrote:
> The answer is in the manual. In the 'components' section, believe it
> or not.
>
> On Sep 11, 10:34 am, Ravi <[EMAIL PROTECTED]> wrote:
>
> > Hai,
> > Is there any way to use a component m
Hi,
When an ajax page submit happened then the $ajax->dropRemote is not
rendering.When I looked the page source its missing.Its only visible
for the first time that is on the the first page load.Due to this the
Ajax drag drop is not working in internet explorer but working
smoothly with firefox.W
feel free to disagree, but here is what I know...
1) phpnut has never built the API with doxygen
2) I sent him the Doxyfile
3) I build the API
given those three things, it leads me to believe that my initial
statement was indeed true.
--~--~-~--~~~---~--~~
You r
The default is for a New record. This is not arbitrary as it follows
the defaults used by create() and other methods.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send ema
For the record, I've been considering moving to file system stored
files since this issue come about (as you could probably work out from
my original post)
My code is pretty simple as there are no fancy calculations or
processing, when the image is uploaded its thumb nailed then and the
thumb dat
Well, I disagree, there *IS* something special about the file.
I dont know what it is however, but those extra @params now work great
with the file that phpnut emailed over to me.
Mike
On 11/09/2007, Gwoo <[EMAIL PROTECTED]> wrote:
>
> There is nothing special about the Doxyfile used to generat
What documentation? Thats not an official way to do anything as far as
I'm aware.
On Sep 11, 6:07 am, Ravi <[EMAIL PROTECTED]> wrote:
> Hai,
> I am trying to use a model class in a component as in documentation
>
> $foo =& new Foo(); , here Foo is the model class.
> but i am getting erro
loadModel('Foo'); includes the model's php file. e.e. /app/models/
foo.php
http://api.cakephp.org/basics_8php-source.html line 209 (version
1.1.x)
On Sep 11, 8:07 am, Ravi <[EMAIL PROTECTED]> wrote:
> Hai,
> I am trying to use a model class in a component as in documentation
>
> $foo =& new
let me preface by saying, i love cake.
inputs(array('username'=> array('lable'=>'Username'),
'password' => array('lable'=>'Password'))); ?>
puts a title on my form "New User". clearly this is
not a correct title.
why automate something non generic like titles? i am very interested
in the r
You mean does it support loading in a bunch of data via YAML files, or
something like that?
No it does not.
However, there is nothing preventing you from issuing a series of
INSERT statements..
code:
...create table here..
//populate it with some default data
$this->execute("INSERT INTO users
thanks, I did my homework.
I found only one really relevant post (http://groups.google.com/group/
cake-php/browse_thread/thread/233dfa404006368b) it looks exactly like
my bug.
I contacted this guy but he said that this patch (https://
trac.cakephp.org/ticket/2540) fixed this problem for him. It
It's Cake, search this group.
On Sep 11, 10:07 pm, thequietlab <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm getting this error (below) while refreshing the site after models
> are
> cached with $persistModel = true. It happens for all the models that
> are using behaviors (Cake 1.2).
>
> Fatal error
thanks for the article abba. it doesn't seem to solve the view-layout
problem, however. All I want is a total control over several views
from within controller. The article uses a helper that is again called
from within layout (or view).
On 11 sep., 21:54, abba bryant <[EMAIL PROTECTED]> wrote:
Hi,
I'm getting this error (below) while refreshing the site after models
are
cached with $persistModel = true. It happens for all the models that
are using behaviors (Cake 1.2).
Fatal error: Model::findAll() [function.Model-findAll]: The script tried to execute a
method or access a property of
Please don't take this the wrong way - but part of the reason the mailing
list is becoming such a worthless tool for cake users is people like you
posting questions that *HAVE NOTHING TO DO WITH CAKE* to the group.
Next time you ask a question here you should carefully analyze whether or
not it
wow thanks. i hope its not documented :-)
On Sep 10, 8:17 pm, Gwoo <[EMAIL PROTECTED]> wrote:
> $this->Acl->Aro->findByParentId()
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to th
There is also a bakery article
http://bakery.cakephp.org/articles/view/anything_for_layout-making-html-from-the-view-available-to-the-layout
I am not sure this addresses your need 100% but should be a better starting
point than a custom view class or hacks to the core.
kevin kroe wrote:
>
>
Try directly $this->Tag->save($this->data); Of course you have to
specify in the header $uses = array(...'Tag');
On Sep 11, 9:08 pm, Dave <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm trying to do a HABTM insert using the 1.2 codebase (the current
> one on the homepage), and am having trouble. I have
Recently i implemented a controller that receive all requests, manage
them and do all needed request actions, and them put all request
action results into layout vars (using $this->set).
Didn't needed any core hack or crazy implementations, just a
controller that receive all the params, manage th
Hey there,
Just wondering, does your Migrations handle the data as well as the schema.
That would certainly be of interest to me.
Cheers,
Sonic
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To p
There is nothing special about the Doxyfile used to generate 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 f
/app/views/my_custom_view.php
$this->view = 'MyCustomView';
MyCustomView extends View
--~--~-~--~~~---~--~~
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.co
On 10 Wrz, 07:43, Matt <[EMAIL PROTECTED]> wrote:
> You might want to rephrase your question is from what I'm reading it
> doesn't make sense.
>
> Are you trying to join three tables on three fields? Maybe try and
> explain your problem not your specifc question. Chances are that if it
> is becom
If I understand corretly the Cake is gonna include my custom Class if
I put it on some place. WHERE should I put it?
On 11 sep., 20:05, Gwoo <[EMAIL PROTECTED]> wrote:
> make your own view class.
>
> then set $this->view = 'MyCustomClass';
> in your controller
--~--~-~--~~--
Hi,
I'm trying to do a HABTM insert using the 1.2 codebase (the current
one on the homepage), and am having trouble. I have images, tags and
images_tags tables, along with Image & Tag models and an
ImageController
array( 'className' => 'Tag',
make your own view class.
then set $this->view = 'MyCustomClass';
in your controller
--~--~-~--~~~---~--~~
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 have done quite a search before going into core code and besides
many people having questions there is not many solutions. There is one
soloution called "mini controllers" [http://www.noswad.me.uk/MiBlog/
MiniControllers] using components system (i have not examined it
indeep yet), but it seems
I wasnt sure if there was a built-in migration system. I did see this
one:
http://joelmoss.info/switchboard/blog/1992:Cake_DB_Migrations_strikes_back
But it wasnt clear whether it was part of core or not (by now, or
intended to be).
Thanks for the feedback. Let me try and address your points:
On first glance, it sounds like you're trying to accomplish something
similar to Django's templating system. Now, I like that system - with
blocks that may or may not be replaced, being able to extend blocks,
and putting content in multiple places. I've tried to implement
something similar myself,
How about starting where we said to start. Serving binary data from the DB is
a very specific and resource intensive 'need' - so specific in fact that in
9.5 years of web development I have NEVER had to do it.
Also, checking the information that AD told you to check out would be a good
idea.. an
Hey,
Simple is always good dude.
--
Baz L
Web Development 2.0
http://WebDevelopment2.com/
On 9/11/07, John <[EMAIL PROTECTED]> wrote:
>
>
> I just added a site that launched last week. It's still a bit of a
> work in progress, but I like how it turned out.
>
> http://yehu.org
>
> It's a bit too s
Try this:
$conditions = array('Model.title' => '-!' . $title);
Using the '-!' special operator cake won't use sql functions that
happen to be in $title, but it won't quote the value either, that
remains up to you.
On Sep 11, 2:12 pm, rashid <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am using MySql
I just added a site that launched last week. It's still a bit of a
work in progress, but I like how it turned out.
http://yehu.org
It's a bit too simple as a posterchild for CakePHP development, but
you should give it a quick look because it's for a good cause. If
you've ever wondered how you co
I think you can access any controller method from within view or
layout:
$this->controller->flash('');
BUT I'm not sure.
Flash method is not intended to be used inside view for it has it's
own view and layout app/views/layouts/flash.thtml
Try using $session->flash($key) inside your views. It does
Hi,
now you need to declare what named arguments you want
in BulletinsController:beforeFilter
Router::connectNamed(array('bulletin_id'));
2007/9/11, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
>
>
> Thanks, I was not aware of the new explicit nature.
>
> On Sep 10, 5:15 pm, biesbjerg <[EMAIL PR
The answer is in the manual. In the 'components' section, believe it
or not.
On Sep 11, 10:34 am, Ravi <[EMAIL PROTECTED]> wrote:
> Hai,
> Is there any way to use a component method in other components.
> For example i have email components which useful to send mails
> and encrpyt compo
Hi. I'll go straight to code and contemplate later.
MY_CONTROLLER
{
var $layout_element1=null;
var $layout_element2=null;
function foo(){
$this->layout_element1=$this->render('element1view');
echo $this->__viewClass->renderLayout('nothing');
}
layout default.thtml
{
echo $th
IE 6.0
On 11 Set, 15:46, majna <[EMAIL PROTECTED]> wrote:
> browser issue (IE), nothing to do with cake, php, html link or
> javascript...
> (put gif in iframe, if this animation is so important..)
>
> On Sep 11, 12:48 pm, "[EMAIL PROTECTED]"
>
>
>
> <[EMAIL PROTECTED]> wrote:
> > The footer is i
http://groups.google.com/group/cake-php/browse_thread/thread/abec423ee6a9057a
2007/9/11, guigouz <[EMAIL PROTECTED]>:
I'm writing a little catalog for a client, and setup Section and
> Product controllers with admin routing, so /admin/sections manages
> sections and /admin/products manages prod
1.2 session component supports this out of the box.
function setFlash($message, $layout = 'default', $params = array(),
$key = 'flash') {
Never used it personally, but that might help. From reading bits of
the code it looks like it uses view->renderLayout(), so you would need
to create a new lay
Thanks Grant -- I wasn't sure about that but it worked well. Since the
User (or Angler in my case) is associated with Scores and Catches, all
I needed to do was have my afterSave routine in the Catch model pass
the $this->data['Catch'] to the routine in the Angler model. The
routine in the Angler
I'm using PHPDocumentor to generate API and have something very
similar to the online one with no patch or tweak
On 11 sep, 15:05, "Mike Green" <[EMAIL PROTECTED]> wrote:
> I too would like to get hold of this. I've asked Mr Nut on irc a
> couple of times and sent him an email, but hes a workahol
browser issue (IE), nothing to do with cake, php, html link or
javascript...
(put gif in iframe, if this animation is so important..)
On Sep 11, 12:48 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> The footer is in the layout.
> I use javascript only in the links
>
> On 11 Set, 12:36, majna
loadModel('Foo');
$foo =& new Foo();
On Sep 11, 2:07 pm, Ravi <[EMAIL PROTECTED]> wrote:
> Hai,
> I am trying to use a model class in a component as in documentation
>
> $foo =& new Foo(); , here Foo is the model class.
> but i am getting error FatalError: Class Foo not found.
>
> when
I too would like to get hold of this. I've asked Mr Nut on irc a
couple of times and sent him an email, but hes a workaholic (and
rightly so), so has not had the chance to sent it over.
Maybe another cake-dev could share it :)
Mike
On 11/09/2007, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
Ive never had this problem before on other apps where i have used
similar techniques, and if i wait for the whole page to load before i
make the second request everything takes less than a second. I really
have no idea where to start :S
On Sep 11, 1:43 pm, abba bryant <[EMAIL PROTECTED]> wrote:
>
Hi,
I am using MySql and CakePHP for my project. I have a table with
column "title". Whenever user
is going to save a new "title" i use the function
hasAny(array('Model.title' => $title,
'Model.user_id' => $user_id))
to check whether this title exists for this user or not.
Everything works
Hai,
Is there any way to use a component method in other components.
For example i have email components which useful to send mails
and encrpyt component which useful to encrypt data.
Email component will encrypt data using encrypt component and send
data.
how can we call/use Enc
Click on http://groups.google.com/group/cake-php/web/useful-sites - or
copy & paste it into your browser's address bar if that doesn't work.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To pos
Hai,
I am trying to use a model class in a component as in documentation
$foo =& new Foo(); , here Foo is the model class.
but i am getting error FatalError: Class Foo not found.
when i searched in the net found that using loadModel('Foo') solves
the problem.
My questions:
1. Why th
Hai,
Is there any way to use a component method in other components.
For example i have email components which useful to send mails
and encrpyt component which useful to encrypt data.
Email component will encrypt data using encrypt component and send
data.
how can we call/use Enc
Well this is all good news. Sounds like I'm migrating to 1.2 :-)
--~--~-~--~~~---~--~~
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
I suppose it should be similar to loading a model :
loadComponent('name');
$compo = & new name();
On Sep 11, 11:20 am, ricarou51 <[EMAIL PROTECTED]> wrote:
> Hey !
>
> I would like to know if it's possible to use a component in only one
> action of a controller and not declaring for exemple
>
The footer is in the layout.
I use javascript only in the links
On 11 Set, 12:36, majna <[EMAIL PROTECTED]> wrote:
> But there is workaround with javascript...
>
> On Sep 11, 12:17 pm, "[EMAIL PROTECTED]"
>
>
>
> <[EMAIL PROTECTED]> wrote:
> > Another Thing about this:
> > The problem happens onl
But there is workaround with javascript...
On Sep 11, 12:17 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Another Thing about this:
> The problem happens only with IE not with Mozilla Firefox.
>
> On 11 Set, 09:22, "[EMAIL PROTECTED]"
>
> <[EMAIL PROTECTED]> wrote:
> > Hi
> > This is my pr
On Sep 11, 3:25 am, gearb0x <[EMAIL PROTECTED]> wrote:
> Hey guys,
> Any configurable images are stored in the db (i don't need anyone
> telling me this is wrong) so as such, when loading a page with lots of
> images stored in the DB, there are lots of requests going to the
> server for cake st
Another Thing about this:
The problem happens only with IE not with Mozilla Firefox.
On 11 Set, 09:22, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Hi
> This is my problem:
> I have a page with a footer where there is a animated gif.
> In this page there is a list of link.If I click one of t
Another Thing about this:
The problem happens only with IE not with Mozzilla Firefox.
On 11 Set, 09:22, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Hi
> This is my problem:
> I have a page with a footer where there is a animated gif.
> In this page there is a list of link.If I click one of
Hey !
I would like to know if it's possible to use a component in only one
action of a controller and not declaring for exemple
var $components=array('mycomponent'), at the beginning of the
contoller
If so, what is the syntax ?
Thanks a lot
--~--~-~--~~~---~--~-
Wow... connectNamed... huge help! Didn't know about this!
On Sep 10, 4:40 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Originally I thought this was an optional new feature, but for those
> who were passing arrays with arbitrary named values to Router::url()
> and its friends HtmlHelper::
Hi
This is my problem:
I have a page with a footer where there is a animated gif.
In this page there is a list of link.If I click one of this I load a
information in a div with ajax
(I use Ajax helper).
My problem is that when I click one of the links the animated gif
stops.
Where is the problem
66 matches
Mail list logo