Missing PaginatorHelper Method in View

2008-05-02 Thread Cheeze
Hi, I'm using Cake 1.2.0.6311. I've followed the example from http://bakery.cakephp.org/articles/view/basic-pagination-overview-3 to try out the pagination feature in 1.2. However, I get the error: Warning (512): Method PaginatorHelper::count does not exist [CORE/cake/ libs/view/helper.php, li

change password

2008-05-02 Thread damo
Trying to write a controller to change the password. The only guide I have found to do this is at the following: http://groups.google.com/group/cake-php/browse_thread/thread/83359000910910c5/63972a85d3d5b011?lnk=gst&q=change+password&rnum=1 However this appears to be using cake 1.x (because of t

Re: hasMany & hasOne problem

2008-05-02 Thread Adam Royle
As long as you have var $belongsTo = array('Author'); in your Comment model, just set recursive to a higher value. $this->Post->recursive = 2; $posts = $this->Post->findAll(); Cheers, Adam On May 3, 3:40 am, deeps <[EMAIL PROTECTED]> wrote: > Ok, i m trying cakephp for one of my application, ti

Re: Development/Production setup with databases

2008-05-02 Thread Adam Royle
I used to use this, which is a very cool way in my opinion. http://bakery.cakephp.org/articles/view/easy-peasy-database-config Now I deploy from Subversion and don't keep passwords in the respository (I have to manually add the database.php file with correct details whenever I deploy to a new lo

Re: Routing doesn't work?

2008-05-02 Thread Mech7
Ah hehe yes thx it works now :D On May 2, 7:19 pm, Sliv <[EMAIL PROTECTED]> wrote: > Think about it: > > You're setting up a route for /tag > > but then sending /tag/php and wondering why it doesn't route. > > Try setting the route /tag/* --~--~-~--~~~---~--~~ You

Re: Help - Error validation wipes out database/record id during "edit"

2008-05-02 Thread Chris Hartjes
On Fri, May 2, 2008 at 3:28 PM, LucyFur3d <[EMAIL PROTECTED]> wrote: > function edit($id = null) { > $this->Employee->id = $id; > if (empty($this->data)) { > $this->data = $this->Employee->read(); > } else { >

Help - Error validation wipes out database/record id during "edit"

2008-05-02 Thread LucyFur3d
I have been creating a basic CRUD app for an "employees" database. >From my "index" page, I click on an employees name and it takes me to the "edit" screen. That would take me to www.exampledomain.com/employees/edit/22 (where the employees unique id in the db is "22") One of the database field

hasMany & hasOne problem

2008-05-02 Thread deeps
Ok, i m trying cakephp for one of my application, till now no errors are there & cakephp is making life easy but now i am stuck in one simple problem I am having these tables in database Post -id (PK) -title -description Comment -id (PK) -comment -post_id (FK) -author_id (FK) Author -id (

Re: Routing doesn't work?

2008-05-02 Thread Sliv
Think about it: You're setting up a route for /tag but then sending /tag/php and wondering why it doesn't route. Try setting the route /tag/* --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To po

Re: Development/Production setup with databases

2008-05-02 Thread John David Anderson
I run some detection logic in bootstrap to see what server I'm on, and set a constant that tells the system where I'm at. In database.php I have a few class variables to specify each of my db setups (staging, qa, production). Then in AppModel, I specify $useDbConfig using my constant so that

Routing doesn't work?

2008-05-02 Thread Mech7
I am trying to send tag/ to tags controller but when i put this in my routes: Router::connect('/tag', array('controller' => 'tags', 'action' => 'find')); and i go to the url /tag/php i get this: Error: TagController could not be found. Does anybody know what could be the problem? --~--~--

Re: no scripts on home page?

2008-05-02 Thread alxlevin
Wow, rookie mistake. Thanks guys, I feel a bit embarrased now. On May 2, 10:27 am, grigri <[EMAIL PROTECTED]> wrote: > There's nothing 'special' about the PagesController - it uses the > 'Html' helper unless you tell it not to. > > Without seeing some code, it's impossible to be certain... > > .

Development/Production setup with databases

2008-05-02 Thread basstech
After reading through the configuration documentation, it is nice that CakePHP supports multiple database configurations. However, I am wondering if there is an easy way to simply "turn on" one configuration over another across the entire application. In the documentation it says: The $default c

Re: why does cache view keep on regenerating

2008-05-02 Thread robert123
hi, I think I found the problem, it seem that var $cacheAction = array('testmenu'=>'60'); is not working when use the below format everyworks, thank you everyone for the help var $cacheAction = "+1 hour"; www.generics.ws www.genericsmed.com On May 2, 10:12 pm, robert123 <[EMAIL PRO

Re: Call to undefined function cake_conn() in /var/www/cake/cake/libs/model/dbo/dbo_mysql.php on line 102

2008-05-02 Thread nate
Why do you have the "connect" key set to "cake_conn" in config/ database.php? Where did you get the idea you were supposed to do that? On May 2, 2:56 am, edwingt <[EMAIL PROTECTED]> wrote: > I have this mesage after configurating the database.php file > Call to undefined function cake_conn() in

Re: CakePHP css files

2008-05-02 Thread mbavio
Lol, use Web Developer Toolbar, and grab them directly from the website. Cheers, mbavio On May 1, 12:37 pm, Sliv <[EMAIL PROTECTED]> wrote: > which site are you talking about, and why can't you grab the links > from the page source? --~--~-~--~~~---~--~~ You recei

Re: Looking for the Rapid in Cakephp

2008-05-02 Thread mbavio
On May 2, 11:32 am, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > Pfft. *Real* designers use vim and edit the images as binaries. :) Hahaha that would be very funny to see in action :P Cheers, mbavio --~--~-~--~~~---~--~~ You received this message because you are

Sharing plugins between several CakePHP websites.

2008-05-02 Thread mustan9
Hi, I have 3 websites that all require a blog reusable component that I'm developing. Can I share the same plug-in across several websites by telling the different Cake websites to look for plugins in the same directory. Thanks, Mustan9. --~--~-~--~~~---~--~~ You

Re: Looking for the Rapid in Cakephp

2008-05-02 Thread mydesignbuddy
No real designers use EMACS for images!!! truely thats was a good one Chris. I needed a laugh this morning On May 2, 9:32 am, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > Pfft.  *Real* designers use vim and edit the images as binaries. :) --~--~-~--~~~---~--~~ Yo

Re: no scripts on home page?

2008-05-02 Thread grigri
heh - depends on my caffeine intake, I suppose On May 2, 3:29 pm, Sliv <[EMAIL PROTECTED]> wrote: > which one of us is the "evil" twin... :P --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to

Re: Looking for the Rapid in Cakephp

2008-05-02 Thread Dardo Sordi Bogado
> Pfft. *Real* designers use vim and edit the images as binaries. :) And thats why I read your blog and emails in the mailing list every day, LOL. > -- > > > Chris Hartjes > Internet Loudmouth > Motto for 2008: "Moving from herding elephants to handling snakes..." > @TheKeyBoard: http://ww

Re: Formatting Forms

2008-05-02 Thread annie.r.knight
Okay - found it in the manual. Doh! On May 2, 3:29 pm, "annie.r.knight" <[EMAIL PROTECTED]> wrote: > I assumed I'd missed the 'before', 'between' etc.. options when > looking through the documentation/api. In fact I've gone through it > again and still can't find any documentation of these optio

Re: Use model inside helper

2008-05-02 Thread grigri
> In a word, no. Controller sends the data prepared by your model to the > view where your helper can access it. Hmm... I'd have to disagree there. With regards to data [the four horsemen CRUD], I totally agree - you should not do this in a helper. On the other hand, model/schema inspection is

Re: Looking for the Rapid in Cakephp

2008-05-02 Thread Chris Hartjes
On Fri, May 2, 2008 at 10:09 AM, mydesignbuddy <[EMAIL PROTECTED]> wrote: > And please don't make me read another flame war like "vi" vs. "emacs", > "mac" vs. "windows" vs. "linux", "BBEdit" vs. "TextMate", etc. because > they accomplish the same tasks. Its just a matter of choice and I > pref

Re: problems with bake

2008-05-02 Thread chuck24
Ok I am still having problems adding the php-cli. I have watched the screencast many times and I think I have narrowed down my problem. when gwoo adds his php-cli he adds the directory c:\wamp\php; I have a different version of wamp so my php-cli is located in C:\wamp\bin\php \php5.2.5; I have add

Re: no scripts on home page?

2008-05-02 Thread Sliv
which one of us is the "evil" twin... :P --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [E

Re: Formatting Forms

2008-05-02 Thread annie.r.knight
I assumed I'd missed the 'before', 'between' etc.. options when looking through the documentation/api. In fact I've gone through it again and still can't find any documentation of these options. I had to go to the source before I found any confirmation that they existed (not that I doubted you, of

Re: Use model inside helper

2008-05-02 Thread Sliv
In a word, no. Controller sends the data prepared by your model to the view where your helper can access it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-

Re: no scripts on home page?

2008-05-02 Thread grigri
There's nothing 'special' about the PagesController - it uses the 'Html' helper unless you tell it not to. Without seeing some code, it's impossible to be certain... ...but, were I a gamber, I'd bet that you're doing this: link(...); ?> instead of this (which works): link(...); ?> If this is

Re: no scripts on home page?

2008-05-02 Thread Sliv
the pages controller uses the home view and by default has the HTML helper loaded. Make sure you are using echo $html... and not just $html also read this in it's entirety: http://book.cakephp.org On May 2, 8:46 am, alxlevin <[EMAIL PROTECTED]> wrote: > Hi. This is my first project with Ca

Use model inside helper

2008-05-02 Thread [EMAIL PROTECTED]
I have a question. Is it correct in MVC use a model inside a helper. If yes how can I do that? Many Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php

no scripts on home page?

2008-05-02 Thread alxlevin
Hi. This is my first project with CakePHP so hopefully this is a simple question. I'm trying to use the standard views/pages/home.ctp file to create my home page view. I've found that I can include elements but not anything from the htmlhelper, such as images. When I try and use it, I don't ge

Re: Looking for the Rapid in Cakephp

2008-05-02 Thread mydesignbuddy
Okay guys thats enough bashing because you all know no matter what computer you use you will eventually curse and threaten to throw it across the room when it misbehaves. And please don't make me read another flame war like "vi" vs. "emacs", "mac" vs. "windows" vs. "linux", "BBEdit" vs. "TextMate

Re: coding standards & saving serialized data to the db

2008-05-02 Thread grigri
> grigrim so you are saying that the model would unserialize the data on > an afterFind function? Rather than me manually looping through and > unserializing the data? Well, yeah - manually looping through and whatnot is a pain. I'm just never sure exactly what format the data is in in afterFind(

Re: Formatting Forms

2008-05-02 Thread annie.r.knight
Looks like it might just ease the pain. Thank you very much. On May 2, 2:53 pm, grigri <[EMAIL PROTECTED]> wrote: > $defaults = array( > 'before' => '', > 'between' => '', > 'after' => '', > 'div' => false // Don't forget this > ); > $inputs = array( > 'fieldset' => false, // Don't for

Re: why does cache view keep on regenerating

2008-05-02 Thread robert123
Thanks for replying, but I comment the $this->cacheAction = true; in the testmenu method, the view stop generating in the cache folder. Any Idea why is it so, thanks www.generics.ws On May 2, 9:23 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On Fri, May 2, 2008 at 9:18 AM, robert123 <[

Re: coding standards & saving serialized data to the db

2008-05-02 Thread validkeys
grigri, that m at the end of your name was supposed to be a comma. m = , apparently On May 2, 10:03 am, validkeys <[EMAIL PROTECTED]> wrote: > grigrim so you are saying that the model would unserialize the data on > an afterFind function? Rather than me manually looping through and > unserializin

Re: Looking for the Rapid in Cakephp

2008-05-02 Thread Dardo Sordi Bogado
> I ran Linux for 7 years before switching to Mac, so I know all about > "free as in speech", which is what you're referring to. You can run linux forever if you want, that doesn't makes you understand the concept of freedom, the most important thing for me. I don't care if it is the best tool,

Re: coding standards & saving serialized data to the db

2008-05-02 Thread validkeys
grigrim so you are saying that the model would unserialize the data on an afterFind function? Rather than me manually looping through and unserializing the data? On May 2, 8:33 am, grigri <[EMAIL PROTECTED]> wrote: > I was going for this approach on a project a while ago... didn't do it > in the

Re: Formatting Forms

2008-05-02 Thread grigri
$defaults = array( 'before' => '', 'between' => '', 'after' => '', 'div' => false // Don't forget this ); $inputs = array( 'fieldset' => false, // Don't forget this 'eggs' => array_merge($defaults, array('type' => 'text', 'value' => 'test')), 'bacon' => array_merge($defaults, array('

Re: Looking for the Rapid in Cakephp

2008-05-02 Thread Chris Hartjes
On Fri, May 2, 2008 at 9:31 AM, Dardo Sordi Bogado <[EMAIL PROTECTED]> wrote: > > I think you are mistakenly reading free as 'having no cost', I was > speaking about freedom (libre in Spanish my natural language). I ran Linux for 7 years before switching to Mac, so I know all about "free as in

Formatting Forms

2008-05-02 Thread annie.r.knight
Hi all. I have an app with a number of long forms in. These forms are formatted in tables with each row looking something like: Input LabelText Box [Or Whatever]. While the long term solution clearly is to migrate this to CSS design I'm going for the quick (and dirty) solution for now using Cake

Re: Looking for the Rapid in Cakephp

2008-05-02 Thread Dardo Sordi Bogado
> I use free software to code in Cake...on my MacBook...so unless your > PC was free, you should STFU about those who choose to spend money on > Apple hardware and use OS-X instead of PC hardware running a free OS > like GNU/Linux. I think you are mistakenly reading free as 'having no cost',

Re: why does cache view keep on regenerating

2008-05-02 Thread Chris Hartjes
On Fri, May 2, 2008 at 9:18 AM, robert123 <[EMAIL PROTECTED]> wrote: > > hi, thanks this is the code > > > > class CategoriesController extends AppController > { > > var $name = 'Categories'; > var $uses = array('Category','Image'); > > var $components = array('Files'); > > var $

Re: why does cache view keep on regenerating

2008-05-02 Thread robert123
hi, thanks this is the code '60'); function testmenu() { $this->cacheAction = true; $this->layout='blank'; $this->Category->recursive = 0; $this->set('data', $this->Category- >findAll("Category.parent_id = '0

Re: coding standards & saving serialized data to the db

2008-05-02 Thread Sliv
I had run across an article a while ago talking about gzipping large bodies of text before writing it to the database and wondered the same sorts of things... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP"

Re: Bakery is not updating?

2008-05-02 Thread Sliv
If it's a question of articles sitting in the pending queue for a "long" time, that's something I guess only gwoo could answer, as I don't know who all are involved in reviewing and approving articles. On a side note: IMHO, I don't think people should stop publishing to their blogs because they'

Re: why does cache view keep on regenerating

2008-05-02 Thread Marcin Domanski
paste the controller code to the bin, you're not writing to the db ? On Fri, May 2, 2008 at 1:22 PM, robert123 <[EMAIL PROTECTED]> wrote: > > Yes it is 0, I am not debugging > > > www.generics.ws > > > On May 2, 6:54 pm, "Marcin Domanski" <[EMAIL PROTECTED]> wrote: > > is debug = 0 ? > > >

Re: coding standards & saving serialized data to the db

2008-05-02 Thread grigri
I was going for this approach on a project a while ago... didn't do it in the end though. I'm sure that it's always possible to avoid having to do this, but in some cases it might be well worth it. There doesn't seem to be an easy, well-documented way of handling this sort of thing. I mean, wher

coding standards & saving serialized data to the db

2008-05-02 Thread validkeys
I have an app which has 2 types of quote requests. Rather that have 2 seperate tables with tons of fields, I serialize all of the form data and just store it in one field. Besides the obvious searching downside, is there any practical or standards downside to what i am doing? I only ask because i

Re: Call to undefined function cake_conn() in /var/www/cake/cake/libs/model/dbo/dbo_mysql.php on line 102

2008-05-02 Thread validkeys
this might be something, based on your error message in our title, it is looking for cake/cake/. Do you have some sort of advanced set up? On May 2, 2:56 am, edwingt <[EMAIL PROTECTED]> wrote: > I have this mesage after configurating the database.php file > Call to undefined function cake_conn()

Re: why does cache view keep on regenerating

2008-05-02 Thread robert123
Yes it is 0, I am not debugging www.generics.ws On May 2, 6:54 pm, "Marcin Domanski" <[EMAIL PROTECTED]> wrote: > is debug = 0 ? > > > > On Fri, May 2, 2008 at 2:17 AM, robert123 <[EMAIL PROTECTED]> wrote: > > > I am using the latest Cake build (1.2.0.6311 beta) > > > I have enable caching o

Re: why does cache view keep on regenerating

2008-05-02 Thread Marcin Domanski
is debug = 0 ? On Fri, May 2, 2008 at 2:17 AM, robert123 <[EMAIL PROTECTED]> wrote: > > I am using the latest Cake build (1.2.0.6311 beta) > > I have enable caching on my system by the two statement in the core > file > > Configure::write('Cache.disable', false); > Configure::write('Cache.c

Re: Looking for the Rapid in Cakephp

2008-05-02 Thread Marcin Domanski
haha chill out Chris :) On Fri, May 2, 2008 at 5:24 AM, Chris Hartjes <[EMAIL PROTECTED]> wrote: > > On Thu, May 1, 2008 at 11:12 PM, Dardo Sordi Bogado > <[EMAIL PROTECTED]> wrote: > > No, I'm a free (not as in beer) software guy, so it will not work for > > me, thanks anyway. > > I wil

Call to undefined function cake_conn() in /var/www/cake/cake/libs/model/dbo/dbo_mysql.php on line 102

2008-05-02 Thread edwingt
I have this mesage after configurating the database.php file Call to undefined function cake_conn() in mydir/cake/libs/model/dbo/ dbo_mysql.php on line 102 I already verify the modrewrite and .htaccess files and im sure that mysql cli is configured with extension=mysql.so I surf the web for two