On Sep 21, 4:57 am, "Humble Groups" <[EMAIL PROTECTED]> wrote:
> Background
>
> I have scenario where I have 15000+ rows of messags in Mysql, I
> present them with pagination. It works well till 10 pages, if the user
> suddenly press the last page, Mysql takes lot of time,
A database will be in
Also with this can i use URL as http://www.mysite.com/Y ??
On Sep 20, 10:57 pm, CakeMan <[EMAIL PROTECTED]> wrote:
> Thanks Grant,
>
> Should i put these lines in model or in cotroller ?
>
> Thanks Again !!
>
> On Sep 20, 9:43 pm, Grant Cox <[EMAIL PROTECTED]> wrote:
>
>
>
> > $this->viewPath
Thanks Grant,
Should i put these lines in model or in cotroller ?
Thanks Again !!
On Sep 20, 9:43 pm, Grant Cox <[EMAIL PROTECTED]> wrote:
> $this->viewPath = 'y';
> $this->render('view_in_y');
>
> On Sep 21, 2:40 pm, "Vivek Narula" <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hello friends,
>
> > Is t
That's what I was after - thanks!
On Sep 21, 2:57 pm, Grant Cox <[EMAIL PROTECTED]> wrote:
> It's just a slightly modified app/webroot/index.php, to take a command
> line parameter of the action to perform.
>
--~--~-~--~~~---~--~~
You received this message becau
On Sep 20, 2007, at 10:57 PM, Grant Cox wrote:
>
> Are you asking how to simulate a CRON job in Cake, or how to set up
> CLI access for a real CRON job? If the latter, see
> http://groups.google.com/group/cake-php/browse_thread/thread/
> ca93998efc8ff040/356b65885defec7c
>
> It's just a slight
On 9/21/07, Grant Cox <[EMAIL PROTECTED]> wrote:
>
> loadModel("YourModel");
> $model = &new YourModel();
You did it in every method which is need the model?
>
> I've been told that using models in your components is not best
> practice, however I do this myself quite often.
Why they told you t
1. Install the FireBug extension for Firefox, it will make it easier
to debug javascript.
2. It is Effect.BlindDown (capital B)
On Sep 21, 3:13 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> I'm new to CakePHP with only about a week under my belt. I've been
> able to use AJAX on my work,
Are you asking how to simulate a CRON job in Cake, or how to set up
CLI access for a real CRON job? If the latter, see
http://groups.google.com/group/cake-php/browse_thread/thread/ca93998efc8ff040/356b65885defec7c
It's just a slightly modified app/webroot/index.php, to take a command
line parame
Hi All,
I'm looking for a way to have a cron job run once a day, and pull back
some data from my cake models.
Can anyone point me in the right direction?
Should I create a script similar to bake.php? Where in my app folder
should it go?
any other tips?
--~--~-~--~~~--
Except every row you add will throw the pages out by one - so unless
you read two pages from the disk and rearrange them it won't be that
useful. Page 1 is originally rows 1000 - 1015 (most recent), add one
and now it is 1001 - 1016 (most recent).
Also, have you really tested to see whether it i
You might want to think about making your models fatter and making use
of behaviors if you really want to contain the majority of your
business logic out of your controllers
see
http://www.littlehart.net/atthekeyboard/2007/04/27/fat-models-skinny-controllers/
and
http://groups.google.com/group/
$this->viewPath = 'y';
$this->render('view_in_y');
On Sep 21, 2:40 pm, "Vivek Narula" <[EMAIL PROTECTED]> wrote:
> Hello friends,
>
> Is there any way from which we can use different view name with different
> Model or Controller ?
>
> E.g we have model name as X.php and the controller name as X
loadModel("YourModel");
$model = &new YourModel();
I've been told that using models in your components is not best
practice, however I do this myself quite often.
On Sep 21, 2:32 pm, "Ananda Putra" <[EMAIL PROTECTED]> wrote:
> How to load a model in a component without declare it in the
> contr
Hello friends,
Is there any way from which we can use different view name with different
Model or Controller ?
E.g we have model name as X.php and the controller name as X_controller.php
, Can we use them with "Y" views ?
Thanks !!
--~--~-~--~~~---~--~~
You recei
How to load a model in a component without declare it in the
controller which cal the component??
I want to focus and implement all business logic in the component. The
controller just for call the logic in the component and generate the
view.
Thanks.
--
Regards,
Ananda Putra
--~--~-~
That's right, if you do need them rebound later in that same action.
On Sep 21, 10:00 am, MikeK <[EMAIL PROTECTED]> wrote:
> Thanks Grant - RTFM! I guess I need to issue a bind to put things
> back, eh?
--~--~-~--~~~---~--~~
You received this message because you
Background
I have scenario where I have 15000+ rows of messags in Mysql, I
present them with pagination. It works well till 10 pages, if the user
suddenly press the last page, Mysql takes lot of time, I figured out
that it is due to my shared hosting server is under heavy load.
Either I do someth
After digging through the code and debugging. I did the following to
make the code work with multiple projects with project specific
layouts and views.
Defined a configuration array which contains settings for each project
group.config.php
array(
'db' => 'local_prj
Felix that was awesome. Thanks man! Your code helps a ton.
-- Daniel
On Sep 20, 12:11 am, Felix Geisendörfer <[EMAIL PROTECTED]> wrote:
> DGPhoebus,
>
>1. Use jQuery. If you love CakePHP and write your own JS (not using
> the cake helpers) then this is the way to go, trust me ; ).
>
Right, this made me pull out my hair relentlessly for about 2 hours,
until I finally managed to get this to work. For any of you who have
been forced onto a server which runs Zeus Web Server instead of
Apache, you will know that mod_rewrite doesn't exist, and so, cake
will not work either.
Luckil
Thanks Grant - RTFM! I guess I need to issue a bind to put things
back, eh?
--~--~-~--~~~---~--~~
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 unsubsc
Look into the $this->Auth->authorize = 'actions' and/or $this->Auth-
>authorize = 'controller'. If your simply want to protect the basic
crud options you probably don't need ACL unless you have complex
groups/roles etc.
Here's another good write up
http://www.littlehart.net/atthekeyboard/2007/09
Thanks bujanga. I'll give that a try.
Farez
On Sep 20, 9:13 pm, bujanga <[EMAIL PROTECTED]> wrote:
> Here is an example of a working rule with a required condition.
>
> var $validate = array(
> 'owner_id' => array(
> 'number'=> array(
>
The second parameter of unbindModel is whether the unbinding is only
for the next query, which is the default. In the paginate() it first
does a findCount() before the findAll(), and after this first query
your unbinding will be reset.
Change it to
$this->Model->unbindModel( array(...), false );
You're both welcome, but I didn't write the original script! I may
have made some tiny modifications (I think the onload at the bottom),
but I'm not the original author. :)
If you are also using Scriptaculous then there may be a simpler method
available - this script does implement its own colou
I am trying to unbind a model temporarily and all is fine if my search
is done with find or findAll -- however I want to use paginate, and
paginate seems to ignore my unbind request. I peeked at the code and
paginate uses findAll -- is the recursion doing it? What's my issue
here?
Thanks in advan
Here is an example of a working rule with a required condition.
var $validate = array(
'owner_id' => array(
'number'=> array(
'rule' => array('numeric'),
'on'=> 'create',
'required' =
2007/9/20, Chris Hartjes <[EMAIL PROTECTED]>:
> Hey, I'm not saying you're wrong. I'm just wondering why my method
> seems to work okay for me, and I'm using the latest bleeding-edge
> version of Cake 1.2.x.x.
I just tried bleeding edge Cake (r5676 of the 1.2.x.x branch). Still
the same result -
This is really useful script, tiny in size. I will give it a try for
sure.. Thanks Grant!!
Ketan
Grant Cox wrote:
> When I implemented this it was referred to as the "Fade Anything
> Technique", and I downloaded a Javascript file from
> http://www.axentric.com/aside/fat/
> . Unfortunately thi
Hello
We're writing some management application, and defined "realms". a
user may be an admin on multiple realms. Our controllers are laid like
/realms/users/realm_id (administer users)
/realms/products/realm_id (administer products) and so on
It works, but we don't think it's excellent in t
On 9/20/07, Martin Schapendonk <[EMAIL PROTECTED]> wrote:
> I give up. 'values' doesn't work for me, 'options' does.
> pr($audiences) shows me a nice key=>value array.
>
Hey, I'm not saying you're wrong. I'm just wondering why my method
seems to work okay for me, and I'm using the latest bleedin
I tried to use the plugins but .. it always says that i miss the
controller + i found a mistake in the manual of cakePHP :
http://manual.cakephp.org/chapter/plugins
First they say to put the pizza_app_controller.php /
pizza_app_model.php in the pizza folder, then they say to put it
"Pizza Plugin A
I'm new to CakePHP with only about a week under my belt. I've been
able to use AJAX on my work, and I have many things working just fine.
I am, however, having trouble getting the Scriptaculous Effects to
work. I've gone through MANY web pages (tutorials, here in the group,
other pages, etc.) and
2007/9/20, Chris Hartjes <[EMAIL PROTECTED]>:
> > Probably not, because I did also.
> >
> > Controller: $audiences = $this->Activity->Audience->generateList();
> > View: echo $form->input('ade_id', array('options'=>$audiences));
>
> $values is the output of generateList()
>
> echo $form->input('fi
Yeah I wish they did, but as far as I know or have seen, Prototype /
Scriptaculous does not have any sort of History manager module.
On Sep 20, 10:29 am, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On 9/20/07, rtconner <[EMAIL PROTECTED]> wrote:
>
>
>
> > You don't :)
> > Really, you should find
On Sep 20, 2007, at 8:16 AM, [EMAIL PROTECTED] wrote:
> There are three developers in my company who will be working full time
> on moving an application over to the CakePHP framework. I want to
> have us all contribute code and documentation as much as possible.
> So, how can we help? Should
yea i did, it might be good, still not really logical but ehhe.
Do you have a exemple of code / tutorial to use plugins, the one on
cakePHP is a bit dry.
thanks
On 20 sep, 00:28, "John David Anderson (_psychic_)"
<[EMAIL PROTECTED]> wrote:
> On Sep 19, 2007, at 4:23 PM, [EMAIL PROTECTED] wrote:
On 9/20/07, Martin Schapendonk <[EMAIL PROTECTED]> wrote:
>
> 2007/9/20, Chris Hartjes <[EMAIL PROTECTED]>:
> > Well, the array I passed in was one I created using generateList() so
> > it had key => value pairs. That might've made the difference.
>
> Probably not, because I did also.
>
> Control
2007/9/20, Chris Hartjes <[EMAIL PROTECTED]>:
> Well, the array I passed in was one I created using generateList() so
> it had key => value pairs. That might've made the difference.
Probably not, because I did also.
Controller: $audiences = $this->Activity->Audience->generateList();
View: echo
Thank you gentlemen, sometimes one forgets the forest is full of
trees ;)
--~--~-~--~~~---~--~~
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 unsubscri
Yes, overriding it is. But I was still right. ;)
On 9/20/07, dardosordi <[EMAIL PROTECTED]> wrote:
>
> I think the term is "overriding" (
> http://en.wikipedia.org/wiki/Method_overriding_(programming)
> ).
>
> On Sep 19, 2:28 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> > On 9/19/07, MikeK
I think the term is "overriding" (
http://en.wikipedia.org/wiki/Method_overriding_(programming)
).
On Sep 19, 2:28 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On 9/19/07, MikeK <[EMAIL PROTECTED]> wrote:
>
>
>
> > I have a beforeFilter in app_controller and in some other controllers,
> > bu
On 9/20/07, rtconner <[EMAIL PROTECTED]> wrote:
>
> You don't :)
> Really, you should find a javascript library that will help you
> accomplish this. Yahoo's JS lib I know has some support for back
> buttons and Ajax, go read up on it.
Doesn't Prototype / Scriptaculous have something to handle th
hi
I have good results with this :
http://exanimo.com/actionscript/statemanager/
it's basically made to interact with Flash, but works very well with
ajax as well.
http://exanimo.com/javascript/using-the-statemanager-in-ajax-apps/
I think it's possible, and probably quite easy, to implement it
I am stepping through the IBM tutorials and now it is wanting me to
use the console to create the ACL files. I am using a shared host and
do not have Cake installed locally. Can I still create the files
needed to use the ACL stuff in 1.1? If so, how would I go about doing
that? Can I download them
You don't :)
Really, you should find a javascript library that will help you
accomplish this. Yahoo's JS lib I know has some support for back
buttons and Ajax, go read up on it.
On Sep 20, 6:48 am, sreeman <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Anybody having a clear idea how we can solve the brows
Once again I answered my own question, here is what I did:
tags['radio'] = '%s';
parent::__construct();
}
}
?>
On Sep 20, 10:33 am, 1Marc <[EMAIL PROTECTED]> wrote:
> Let me clarify. I need some way for the radio buttons to generate
> labels.
>
> Currently the $form->radio generates
Let me clarify. I need some way for the radio buttons to generate
labels.
Currently the $form->radio generates:
Option 1
Option 2
Option 3
Here is the proper markup I want to generate:
Option 1
Option 2
Option 3
On Sep 20, 9:55 am, 1Marc <[EMAIL PROTECTED]> wrote:
> I figured out that you ca
I figured out that you can do this and it solves my issue.
radio('Options.selectPlan',array('1'=>'Monthly
$35'),null,array()) ?>
*html goes here
radio('Options.selectPlan', array('2'=>'Monthly
$33.25'),null,array()) ?>
...etc
I still can't figure out how to automatically generate labels for
rad
I'd like to provide some help with the documentation effort. I
thought I would get started by posting some code snippets that I've
used and getting some feedback. Since I'm so new to the project, I
want to make sure I'm doing things correctly and not missing something
obvious. I tried adding an
On 9/20/07, Martin Schapendonk <[EMAIL PROTECTED]> wrote:
>
>
> Nope, doesn't work. Strange. When I look in
> cake/libs/view/helpers/form.php, it mentions $options['options'] in
> several places. I couldn't find any reference to $options['values'].
Well, the array I passed in was one I created us
2007/9/20, Chris Hartjes <[EMAIL PROTECTED]>:
> Really? I just did one with $form->input('fieldname', array('values'
> => $array)) and it worked just fine. Interesting...
Nope, doesn't work. Strange. When I look in
cake/libs/view/helpers/form.php, it mentions $options['options'] in
several plac
Hi,
Anybody having a clear idea how we can solve the browser backbutton
issue in ajax? please give some input on this
Thanks and Regards
Sree
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To po
I like your ideas brother. I'll take them to heart. Thanks!
--~--~-~--~~~---~--~~
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 g
Hmm i see so would it be good to use a hack like mentioned on the
bakery, or is there a better solution?
http://bakery.cakephp.org/articles/view/habtm-hacks-to-menage-columns-in-both-models
On Sep 17, 3:40 am, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On 9/16/07, Mech7 <[EMAIL PROTECTED]> wr
Found some other artices on the bakery, but still strugling.
- ToniAcl component tutorial
- uri (http://bakery.cakephp.org/articles/view/toniacl-component-
tutorial)
Dan
On 19 Set, 23:59, cakeFreak <[EMAIL PROTECTED]> wrote:
> Well let's go with Cake 1.2,
>
> while the Auth component seems to b
Found the problem.
(Thanks Grant for trying to help)
The bakery article seems to have been modified at some point to
provide a measure of security to prevent the cron from being executed
from the web browser.
I think, originally perhaps, the cron_dispatcher.php may have been
supposed to sit in
I'm not sure about the wierd table and id names, but it's perfectly
possible to assign a primary key as a foreign key too, without relying
on Model::query():
table: products [id, ...]
table: product_descriptions [id, ...]
class Product extends AppModel {
var $name = "Product";
var $hasOne =
Awesome. THANKS SO MUCH!
On Sep 19, 6:04 pm, Grant Cox <[EMAIL PROTECTED]> wrote:
> When I implemented this it was referred to as the "Fade Anything
> Technique", and I downloaded a Javascript file
> fromhttp://www.axentric.com/aside/fat/
> . Unfortunately this seems to 404 now (as does anythin
Hello,
I'm new to Cake and have a question about how to use adodb rather
than the default database drivers as I keep getting the following error:
Fatal error: Unable to load DataSource file dbo/dbo_adodb-mysql.php in
/web/websites/asdf/cake/libs/model/connection_manager.php on line 163
60 matches
Mail list logo