Re: how to pass parameter to $ajax->link ??

2006-11-02 Thread Tim
Samuel, I had a similar problem, I don't know what the correct answer is, but I got around it by putting the $ajax code into the view without any parameters. Viewing the source gives you the generated javascript, which you can then copy out of there and paste into your own view, replacing the $a

Re: OT: Heisenbug with binary data output in PHP

2006-11-02 Thread Felix Geisendörfer
Hi Bert, I can't get the service packs, they are incompatible with my hardware. I spent 12 hours at a LAN party once trying to get them on my machine and besides loosing data, cursing a lot and seeing more blue screens of death then I thought WinXP to have I decided to not ever try this again

CakePHP 1.1.9.3815 Frozen Cake

2006-11-02 Thread Larry E. Masters aka PhpNut
We're excited to see so many people enjoying Cake. To show our appreciation, we are releasing CakePHP 1.1.9.3815[1] Check out the changelog[2] to see what's new, and what you need to know before upgrading. This is another bug fix for the 1.1 series and marks the last release before 1.2.  To those

Re: how to pass parameter to $ajax->link ??

2006-11-02 Thread Bert Van den Brande
Lots of Ajax helper info here : http://manual.cakephp.org/chapter/helpers On 11/2/06, Samuel <[EMAIL PROTECTED]> wrote: > > Hi all: > One questino is that.I create a test field for tag input >and then use > > $ajax->link('add',array('fallback'=>'#addtag','url'=>"../umanager/addTag",'updat

Re: about "update" ajaxOption

2006-11-02 Thread Bert Van den Brande
I think either * pass the initial data along to the ajax call so your returned content can include the initial data + new data * or write a small custom javascript function that retrieves the initial content and then adds the new content to it Sadly enough I don't think this functionality is wrap

Re: OT: Heisenbug with binary data output in PHP

2006-11-02 Thread Bert Van den Brande
Did you try it with different browsers ? Since it works fine on you webhost I'm guessing this is a weird windows related problem, so those service packs might not be a bad idea ... Do you have a virus scanner or something ? Maybe the scanner has problems with Apache or Php ... This is by far on

Re: OT: Heisenbug with binary data output in PHP

2006-11-02 Thread Felix Geisendörfer
Hi, http://www.thinkingphp.org/133.jpg would be a direct link to one of the images I test with, however all pictures I tried behave the same way. http://www.thinkingphp.org/image.php (source can be found at http://www.thinkingphp.org/image.phps) would be a script that runs fine on my host (ser

Re: OT: Heisenbug with binary data output in PHP

2006-11-02 Thread Dr. Tarique Sani <[EMAIL PROTECTED]>
Can you give the URL of the offending image? I will try and look into it Cheers Tarique --~--~-~--~~~---~--~~ 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.

Re: Re: Relations Question

2006-11-02 Thread Samuel DeVore
yes you can just use something like this var $hasMany = array('ChildGenre' => array('className'=>'Genre','foreignKey' => 'parent_genre_id')); var $belongsTo = array('ParentGenre' => array('className'=>'Genre')); should get you started On 11/2/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> w

Re: ERROR_Adding an RSS feed using FeedCreator

2006-11-02 Thread Adrian Godong
You're not alone. I'm looking at the same problem.I think it's because the wiki documentation is outdated. The sample from bitfolge.de (the creator of feedreader) mentioned something called saveRss function. Just tried, it works! Change the last line in your rss.thtml:    $rss->outputFeed();to    $

Re: Relations Question

2006-11-02 Thread [EMAIL PROTECTED]
Thank you. The link helped a lot. Now the only question i have is can i have parent genres and sub-genres. I thought that i read somewhere that you can setup your tables with a parent_id field. Any suggestions? --~--~-~--~~~---~--~~ You received this message b

Problem with JavaScript files in alternate docroot

2006-11-02 Thread ajessup
Hi, I've got a cake app, with the following structure /app <--- normal app dir /htdocs/ <-- my 'webroot' folder, also the web server's docroot /htdocs/js/ <-- javascript /htdocs/css/ <--- css /cake <--- normal cake dir I've setup my /htdocs/index.php to tell cake where cake and app dirs are, an

Re: Multiword Controller Name

2006-11-02 Thread Teriaki
Sorry guys, I just figured it out! It was actually caused by an element incorrectly trying to load a controller. This wasn't a problem in my other controllers since they were associated (by 1 or 2 levels of recursion). But because I had specifically removed all associations to test the new control

Re: Fatal error for Feed_Parser_Model.

2006-11-02 Thread Eric
Is there someone tried it before? So,any advice to do it ? Appreciate any relpy! --~--~-~--~~~---~--~~ 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

SimplePie_Can't use SimplePie_Item as array.

2006-11-02 Thread Eric
I try the SimplePie. But there is an error like Fatal error: Cannot use object of type SimplePie_Item as array in D:\Program Files\xampp\htdocs\cake\app\views\feed\index.thtml on line 9 Don't why. Thanks.. Loving Cake! --~--~-~--~~~---~--~~ You received

Re: ERROR_Adding an RSS feed using FeedCreator

2006-11-02 Thread Eric
Can baker help me ? I saw the API for Cake 1.2. It contains helper for RSS and XML. Is it the solution for this? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, s

Re: getting to the controller from a component's constructor?

2006-11-02 Thread sbarre
Ok well the way I've decided to do this is through a static class variable. That means it only works in PHP5, but that's my environment so it will be good enough for me. In AppController I added: > static $CurrentController and then the constructor has > self::$CurrentController = $this as t

Re: Multiword Controller Name

2006-11-02 Thread Teriaki
You're right, it is under app/controllers/ -- my mistake. Also there doesn't appear to be an error message. For example, if on any other controller, I try to open an invalid view, it responds with a correctly formatted 404 error. On this one, however, regardless of what appears after availability

ACLs and multiple access levels

2006-11-02 Thread Synchro
I'm just getting to grips with Cake, and I have a basic problem with ACLs. I'm dealing with authentication using my own User model and controller, and that's fine. Now the problem is that a user can access multiple accounts, and can have different permissions in each (they might be an admin in one

Re: Multiword Controller Name

2006-11-02 Thread Jon Bennett
> I'm fairly new to CakePHP, but I can't seem to get around this problem. > I have created about a dozen models and controllers, but all > controllers with multiword names fail. > > For example: > AvailabilityState in /app/models/availability_state.php > AvailabilityStatesController in > /app/comp

Re: Multiword Controller Name

2006-11-02 Thread John David Anderson (_psychic_)
On Nov 2, 2006, at 4:09 PM, Teriaki wrote: > > I'm fairly new to CakePHP, but I can't seem to get around this > problem. > I have created about a dozen models and controllers, but all > controllers with multiword names fail. How? What's the error message look like? -- John --~--~-~-

Multiword Controller Name

2006-11-02 Thread Teriaki
I'm fairly new to CakePHP, but I can't seem to get around this problem. I have created about a dozen models and controllers, but all controllers with multiword names fail. For example: AvailabilityState in /app/models/availability_state.php AvailabilityStatesController in /app/components/availabi

Re: SmartyView+SmartyHelpers

2006-11-02 Thread Travis Cline
I fixed up the issues I mentioned and had added defaultparameter passing. I'll post the new version up there in a bit (away from my dev environment right now). I'd like to figure out a way to combine the ideas. --~--~-~--~~~---~--~~ You received this message becau

Re: composite query

2006-11-02 Thread Tim
Hi Bernard, There are many ways to skin a cat... if you look at the Blog tutorial in the manual, there is the add() function: function add() { if (!empty($this->data)) { if ($this->Post->save($this->data)) { $this->flash('Your post

Re: SmartyView+SmartyHelpers

2006-11-02 Thread sbarre
Here's a Bin of the whole patched SmartyHtmlHelper class if you want to take a look. I figured we should sort out how it's going to work before I submit it to CakeForge as a new version to yours. http://bin.cakephp.org/view/1918458743 On Nov 2, 1:49 pm, "sbarre" <[EMAIL PROTECTED]> wrote: > O

Re: getting to the controller from a component's constructor?

2006-11-02 Thread sbarre
Yeah we talked about this already and this is not a solution for me, as I said in my first message, my Session class needs access to some controller parameters during initialization. Waiting for the controller's beforeFilter() call is too late for me. Thanks for the tip though.. I'll keep think

Re: Re: Relations Question

2006-11-02 Thread Samuel DeVore
I'll assume that you have a dvds_genres table with dvd_id and genre_id columns and the you have set up genre.php and dvd.php models to hasAndBelongToMany each other and that you have looked at the http://manual.cakephp.org/chapter/models page down near the bottom where it talks about this type of

Re: Relations Question

2006-11-02 Thread [EMAIL PROTECTED]
I have tried using the bake.php script with a Dvds hasAndBelongsToMany Genres and it doesnt work. When adding a new DVD, it has a text box for me to enter the genre id number. How should my dvds table be setup? --~--~-~--~~~---~--~~ You received this message bec

Re: SmartyView+SmartyHelpers

2006-11-02 Thread sbarre
On Nov 2, 12:41 pm, "Travis Cline" <[EMAIL PROTECTED]> wrote: > > How would you approach the $html->css issue, just require rel be > passed if you want additional parameters? > Just to touch on this: I've implemented the following code to deal with this issue: foreach ($funcParams as $param)

Re: SmartyView+SmartyHelpers

2006-11-02 Thread sbarre
On Nov 2, 12:41 pm, "Travis Cline" <[EMAIL PROTECTED]> wrote: > On 11/2/06, sbarre <[EMAIL PROTECTED]> wrote: > > > The other idea I had, to avoid doing the collapsed array trick would be > ... > > So you could have (for example): > > > {html func="input" fieldName="User/username" > > htmlAttribut

Re: Re: Validation bug on windows ?

2006-11-02 Thread Samuel DeVore
I can not. I do not run cake on a windows server. I would recommend getting on the irc channel for quicker feedback. It is likely that you will only get an answer from someone who has this problem. And I know that most people I have seen don't usually answer when they do not have the problem,

Re: Relations Question

2006-11-02 Thread Samuel DeVore
set it up as a hasAndBelongsToMany relationship then use bake.php and you can see how to handle it from a code perspective. Also I think there is a article in the bakery.cakephp.org site on 'tags' that might help sam d On 11/2/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I am trying to

Re: Re: Problem with underscores

2006-11-02 Thread Samuel DeVore
findAllByApple_jack On 11/2/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > also iirc , findAllBy calls should look something like this in php4: > findAllByapple_jack() > > > > > -- == S. DeVore (the old fart) the advice is free, the lack of crankiness will cost you --~--~-~--~--

Re: Relations Question

2006-11-02 Thread John David Anderson (_psychic_)
On Nov 2, 2006, at 11:20 AM, [EMAIL PROTECTED] wrote: > > I am trying to make a DVD catalog with Cake. Right now i have a few > tables, dvds, genres, and ratings. I already have setup the > scaffolding so that I can select a rating (G, PG, PG-13, R) from a > drop > down list when I add a new

Relations Question

2006-11-02 Thread [EMAIL PROTECTED]
I am trying to make a DVD catalog with Cake. Right now i have a few tables, dvds, genres, and ratings. I already have setup the scaffolding so that I can select a rating (G, PG, PG-13, R) from a drop down list when I add a new DVD. I want to do something very similar for the genres, but I want

Re: SmartyView+SmartyHelpers

2006-11-02 Thread sbarre
Ok I've got the patch working on the SmartyHtmlHelper class to use the underscore-delimited attribute names, and to recursively build arrays from the attributes list if required. It works pretty sweet... I'm just trying to sort through how to upload it to CakeForge now... On Nov 2, 11:38 am,

Re: Automatic plugin detection

2006-11-02 Thread Christoph Neumann
I was running into this problem too.  I defined some classes within a plugin that I wanted to extend within my main application tree.  I ended up defining a function "plugin" in the spirit of "vendor" and "uses". You use the function like so:plugin('foo', 'bar');Then any classes defined in "foo" or

Re: Bakery Search issue

2006-11-02 Thread Mikee Freedom
thanks. i imagine everyone knew that. :) On 02/11/06, Daniel Hofstetter <[EMAIL PROTECTED]> wrote: > > It is not implemented yet. > > -- > Daniel Hofstetter > http://cakebaker.42dh.com > > > > > --~--~-~--~~~---~--~~ You received this message because you are subs

Re: SmartyView+SmartyHelpers

2006-11-02 Thread Travis Cline
On 11/2/06, sbarre <[EMAIL PROTECTED]> wrote: > The other idea I had, to avoid doing the collapsed array trick would be ... > So you could have (for example): > > {html func="input" fieldName="User/username" > htmlAttributes_class="formInput" htmlAttributes_size="30"} That's a little more verbose

Re: Problem with underscores

2006-11-02 Thread [EMAIL PROTECTED]
also iirc , findAllBy calls should look something like this in php4: findAllByapple_jack() --~--~-~--~~~---~--~~ 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

Re: Problem with underscores

2006-11-02 Thread John David Anderson (_psychic_)
On Nov 2, 2006, at 10:10 AM, Christian wrote: > > Hi ev. > > I am relatively new to cakePhp. > > I am having some issue with models with underscores. Basically my > whole > application was running fine under PHP 5 and I had to move it to PHP4 > (4.3.10) 'cause of the hosting. PHP isn't as goo

Problem with underscores

2006-11-02 Thread Christian
Hi ev. I am relatively new to cakePhp. I am having some issue with models with underscores. Basically my whole application was running fine under PHP 5 and I had to move it to PHP4 (4.3.10) 'cause of the hosting. And now I was having all kind of errors with 2 models having underscore in their n

Re: [professionel] Re: composite query

2006-11-02 Thread Bernard Grosperrin
Tim > It sounds to me like you could use arrays, which may negate the need > for all of these elseif's that you describe... maybe combined with a > foreach statement, building the query up inside there? > Thanks you, that make sense, I will look at this. > Your second point, I'm not sure I und

Re: Validation bug on windows ?

2006-11-02 Thread realien
Hey guys, can someone confirm this is a bug or user error ? On Nov 1, 1:07 pm, "realien" <[EMAIL PROTECTED]> wrote: > I've been developing an app with a collegue and he was testing on a > linux box and his validations where working fine, I was having issues > on windows, he just moved his part of

Re: SmartyView+SmartyHelpers

2006-11-02 Thread sbarre
Ok I see what you're doing, I like it.. The other idea I had, to avoid doing the collapsed array trick would be to use the parameter name to identify array elements.. Since all the parameters are camelCased we could use dashes or underscores (would dots work?) to identify arrayed values... So

Re: Usenet reader

2006-11-02 Thread Samuel DeVore
if you write one ;) it should be possible to make it a model file (like some people have done for rss, ldap and other services. you should be able to take existing php code from another source and wrap it into a model and then retrieve data for read only. Sam D On 11/2/06, tms <[EMAIL PROTECTE

Re: Null values for numeric values/ mysql

2006-11-02 Thread mauijaws
Lets say I have a form to modify my data model. The data model contains numeric values. In my view I use input fields to manage numeric values. When the controller creates the data row everything is fine as empty inputs are not handled in the mysql insert statement issued by cake. However when yo

xmlrpc

2006-11-02 Thread Synchro
(reposting as it didn't appear on the group?) I'm trying to get my head around how xmlrpc works in cake. This thread: http://groups-beta.google.com/group/cake-php/browse_thread/thread/a5540ce03706601d/0a2a562c19355360 has a few details, and there are some vague references in the config section in

Re: Problems when using observeField to check password and its confirm

2006-11-02 Thread Samuel
so long the text isok,thanks sten ,I will study this later when i am free .but seems difficult for me... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cak

Usenet reader

2006-11-02 Thread tms
Hi all, Is in cake possibility (e.g. plugin, component) to simple implementing news (nntp) reader (only reader, not gateway) ? Thx for adv. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post

about "update" ajaxOption

2006-11-02 Thread Samuel
Hi all: if there is a div tag like this: My initial datas case is that: I use observerField() to update this area when some chages happens in the target field,but how can I leave the original data "My initial datas" there and add the updated datas ? like My initial datas my new datas thanks a

xmlrpc

2006-11-02 Thread Synchro
I'm trying to get my head around how xmlrpc works in cake. This thread: http://groups-beta.google.com/group/cake-php/browse_thread/thread/a5540ce03706601d/0a2a562c19355360 has a few details, and there are some vague references in the config section in the manual, but I've not found any working exa

Re: Year Field Save Error

2006-11-02 Thread Jerry
Hello bakers: Finally I found solution on trac.cakephp.org. Thanks to trac! The solution I found is on https://trac.cakephp.org/changeset/3490 In my situation (using 1.1.8.3544 cakephp), the only file I need to modify is cake/libs/controller/controller.php and just added the code as posted in

Re: SmartyView+SmartyHelpers

2006-11-02 Thread Travis Cline
On 11/2/06, Travis Cline <[EMAIL PROTECTED]> wrote: > Whoops! Whoops again. A couple problems/enhancements. If there are parameters after the array parameter that are passed in the order in the actual call is off. Hopefully you get the idea, feel free to up a new version seb. It might make sense

how to pass parameter to $ajax->link ??

2006-11-02 Thread Samuel
Hi all: One questino is that.I create a test field for tag input and then use $ajax->link('add',array('fallback'=>'#addtag','url'=>"../umanager/addTag",'update'=>'somearea'...)); I want to kown that how to pass the data form the test field to the link when clicking 'add ' .so it can be

Re: CakePHP scaffold & UTF8

2006-11-02 Thread Eric
I think the problems is the Mysql not Cake. Cause I faced it. Try to set your MySQL charset: UTF-8 Unicode (utf8) and MySQL connection collation utf-8_unicode_ci. Jerry wrote: > Hello Bakers: > > I found something interesting in CakePHP. It's about utf8. > > Some bakers suggest below approach

Re: Year Field Save Error

2006-11-02 Thread Jerry
One more strange thing: If I use bake.php to generate the code, the field with field type 'year' will not be generated by bake.php script. The name of the field is 'yr'. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

Re: othAuth Missing Component File

2006-11-02 Thread funksplutter
Thanks for the reply Eric. The odd thing is that othAuth works great on my local machine - in fact I'm really pleased with it. It's only on the remote server I seem to have a problem which I'm guessing has something to do with a file path. --~--~-~--~~~---~--~~ Y

Re: SmartyView+SmartyHelpers

2006-11-02 Thread Travis Cline
> I personally would be happy with: > - 5.1 reflection to transparently pass all smarty parameters that > don't match in helper method in the methods array parameter > - allowed direct setting of array parameters with delimiter parsing > - allowed direct setting using assign_adv (or other array

Re: CakePHP scaffold & UTF8

2006-11-02 Thread Jerry
So far the best solution I found is : http://groups.google.com/group/cake-php/browse_thread/thread/902d931ff87eb8ac/c4ca2c14891df179#c4ca2c14891df179 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group

Re: model validation seems to have a serious logic flaw

2006-11-02 Thread nate
It is written that way to allow saveField and other features to work properly. Cake 1.2 will feature functionality that allows you to check if a field is set, but in the meantime you are more than welcome to use a callback like beforeValidate, to make sure all fields are set. --~--~-~--

Re: Null values for numeric values/ mysql

2006-11-02 Thread ianmac
On Nov 2, 8:58 pm, "Ismael S. Kafeltz" <[EMAIL PROTECTED]> wrote: > I don't understand your problem, because if a set $myVariable = null; > in the MySql it is store (NULL) in numeric or whatever variable type it > is. > > Of course in mysql *not null* should not me set. Also - if your INT colum

Re: model validation seems to have a serious logic flaw

2006-11-02 Thread [EMAIL PROTECTED]
Although I completely agree with you and I have wondered about the design logic behind this myself, I think changing this behavior will have a big impact on existing applications. Having said that, I wouldn't mind refactoring my code to support proper Model validation. --~--~-~--~~-

model validation seems to have a serious logic flaw

2006-11-02 Thread ianmac
It seems to me that the model validation is somewhat flawed - let me explain: if I have a model with say three fields and I set up var $validate = array ( 'field1' => VAILID_NOT_EMPTY, 'field2' => VAILID_NOT_EMPTY,

MySQL to MySQLi driver

2006-11-02 Thread leo.cacheux
Hello bakers, I'd like to use the mysqli driver instead of the mysql driver. I change 'driver' and 'connect' in database.php, and now my application doesn't work anymore. I have no database error message, but no data from my requests. What are the differences between those drivers for CakePHP ?

Re: Bakery Search issue

2006-11-02 Thread Daniel Hofstetter
It is not implemented yet. -- Daniel Hofstetter http://cakebaker.42dh.com --~--~-~--~~~---~--~~ 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

CakePHP Manual rev 143 for CakePHP 1.1

2006-11-02 Thread Gustavo Carreno
Hi there! New release of your packaged manuals. Grab it at: http://cakeforge.org/frs/?group_id=53&release_id=154 [Notes] Greatings Bakers, Not much happening but I think that a new release is in order. Take a look at the changelog to get the nitty-gritty of the updates. PS: Sorry for the dat

Re: Null values for numeric values/ mysql

2006-11-02 Thread Ismael S. Kafeltz
I don't understand your problem, because if a set $myVariable = null; in the MySql it is store (NULL) in numeric or whatever variable type it is. Of course in mysql *not null* should not me set. --~--~-~--~~~---~--~~ You received this message because you are subs

Re: Nested categories controller and routing

2006-11-02 Thread AD7six
Hi Gremlin, I'm surprised this topic is still open. I would suggest: 1) get the passed args. 2) check if the last argument is an integer (if appropriate), if so the last but 1 is the category to search on, else the last argument is the category to search on. 3) for the category unbind all relati