Re: ajax->link works once in IE, doesn't work after

2007-12-21 Thread metasan
Hi, your problem sounds like an 'id' problem. Check if when you are adding the row you change the div id too. Hope this will help you. Regards. metasan www.pieg.net On Dec 22, 5:11 am, nile <[EMAIL PROTECTED]> wrote: > I'm using $ajax->link to insert a "row" of content into an empty > area of

Re: FormHelper dateTime Question

2007-12-21 Thread car-television
On Dec 21, 7:11 pm, Ldg27 <[EMAIL PROTECTED]> wrote: > I need to create some datetime selects with the dateTime method from > the form helper. I need the select's year to have only current year > and next year. > I do this by: > $form->dateTime('Event.startime','DMY', 12, null, > array('maxYear'=

Re: How to display MS Word Uploaded file into the browser Using PHP

2007-12-21 Thread [EMAIL PROTECTED]
is this a joke? On Dec 21, 7:26 am, Parag <[EMAIL PROTECTED]> wrote: > Please Provide th solution --~--~-~--~~~---~--~~ 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@googl

ajax->link works once in IE, doesn't work after

2007-12-21 Thread nile
I'm using $ajax->link to insert a "row" of content into an empty area of my page. The html that gets inserted has some content and another empty , so the link will be able to insert another "row" of content. If firefox the link works perfectly, but in IE7 the link only works the first time. Su

Consolidating optional admin route

2007-12-21 Thread Joel Stein
Quick question... I'm trying to assign a route to a controller, both in the case of admin urls and without. Is there an easy way to consolidate these two lines? Router::connect('/admin/bulletin/:action/*', array('plugin' => 'newsletter', 'controller' => 'newsletter', 'prefix' => 'admin')); Route

Re: New To Cake PHP

2007-12-21 Thread Serge Rodovnichenko
Theory is here: http://en.wikipedia.org/wiki/Model-view-controller On Dec 21, 6:10 pm, Gourab singha <[EMAIL PROTECTED]> wrote: > I am new To Cake PHP .It is very difficult to me that communicate > Module,Controller,View To Each Other,Please Send me a simple coded > project that help me to unders

Re: Working with XML-RPC

2007-12-21 Thread Serge Rodovnichenko
This is just implementation of data interchange between 2 my sites. This is not an implementation of one of well-known interfaces, just few procedures to call a remote database that doesn't support connections from hosts other than localhost ;-) url = '/0h-1a-1a-backd00r/xmlrpc.php';

Re: Class, filename and naming conventions

2007-12-21 Thread lordG
Yeah, correct ideas guys, thanks for the feedback. The intention though of the discussion is in review of the purpose of the naming conventions so as to obtain clarity and maybe shared thought on the current consistency of the classes and names. I moved away from this scenary a while ago, I am no

Re: Way to Store Subscribers to Post-Threads

2007-12-21 Thread MrTufty
An alternative way which might scale better would be to have your posts table, your users table, and a posts_users table, joined using a hasAndBelongsToMany association. That way you don't get those comma- separated values, which are a complete bitch to deal with if you ever want to access them us

Re: Cake 1.2 - Saving Data To Multiple Models In One save() call

2007-12-21 Thread Baz
In there manual there is an example of saving associated data. If I recall correctly, there are two saves needed though. http://tempdocs.cakephp.org/#TOC89634 This gives you exactly what you need. If you REALLY need one save, then you need to write your own function. On Dec 20, 2007 4:17 PM, f

Re: How to display MS Word Uploaded file into the browser Using PHP

2007-12-21 Thread Samuel DeVore
I suggest some waving of hands and a healthy dose of mumbo jumbo On Dec 21, 2007 9:02 AM, bingomanatee <[EMAIL PROTECTED]> wrote: > > You ultimately cannot directly display MS word inside a web page. > > You can allow users to download a MS word page, or within word, > translate it into PDF or H

FormHelper dateTime Question

2007-12-21 Thread Ldg27
I need to create some datetime selects with the dateTime method from the form helper. I need the select's year to have only current year and next year. I do this by: $form->dateTime('Event.startime','DMY', 12, null, array('maxYear'=>date('Y', strtotime('next year')), 'minYear'=>date('Y')), false);

Re: Problems going to production with CakePHP

2007-12-21 Thread subtropolis zijn
On Dec 21, 2007 12:33 PM, mbavio <[EMAIL PROTECTED]> wrote: > > > > I put that line in "home.ctp", and when i put www.jdpropiedades.com.ar, > it shows me the next line: > > /var/www/vhosts/jdpropiedades.com.ar/httpdocs/app/views/pages/ > home.ctp1 > > So, it´s working, the home.ctp is loading...

Re: Problems going to production with CakePHP

2007-12-21 Thread cakeFreak
Check out this thread: http://groups.google.com/group/cake-php/browse_frm/thread/889295952424caf9 and in particular to this post: http://groups.google.com/group/cake-php/msg/3c8b54771a75b59a --

Way to Store Subscribers to Post-Threads

2007-12-21 Thread steve
I have a discussion board (kind of like mini discussion board), where users can subscribe to a particular Post ( so that when there is a reply to this post, they get mailed a notification ). I'm deciding whether or not to store it this way: posts table post_id users_subbed_t

Re: Problems going to production with CakePHP

2007-12-21 Thread cakeFreak
Another time i had a "blank screen" when I've forgotten to upload an helper (I didn't add it with SVN... an Capistrano didn't export it ...) Dan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To p

Re: Problems going to production with CakePHP

2007-12-21 Thread mbavio
dw and Chris, thanks for your answers... I´m starting to think that isnt a server problem, I´ve prove a line that AD7six gave to me: I put that line in "home.ctp", and when i put www.jdpropiedades.com.ar, it shows me the next line: /var/www/vhosts/jdpropiedades.com.ar/httpdocs/app/views/pages/

Re: Problems going to production with CakePHP

2007-12-21 Thread francky06l
Do you have zend optimizer on production environment ? If you use cake 1.2, comment the zend optimizer in php.ini hth On Dec 21, 6:14 pm, mbavio <[EMAIL PROTECTED]> wrote: > Hi, I´m having some troubles moving my app from local to a production > enviroment. I´ve mod_rewrite ON and tmp with 777, b

Re: Problems going to production with CakePHP

2007-12-21 Thread Chris Hartjes
On Dec 21, 2007 12:14 PM, mbavio <[EMAIL PROTECTED]> wrote: > > Hi, I´m having some troubles moving my app from local to a production > enviroment. I´ve mod_rewrite ON and tmp with 777, but when I put > www.jdpropiedades.com.ar, a blank page appears. I dont know what to > do, I´ve configured all a

Re: Problems going to production with CakePHP

2007-12-21 Thread dw
Make sure all of your .htaccess files are there. I've had issues with Filezilla and .htaccess files. Don't forget the one in webroot. On Dec 21, 9:14 am, mbavio <[EMAIL PROTECTED]> wrote: > Hi, I´m having some troubles moving my app from local to a production > enviroment. I´ve mod_rewrite ON an

Problems going to production with CakePHP

2007-12-21 Thread mbavio
Hi, I´m having some troubles moving my app from local to a production enviroment. I´ve mod_rewrite ON and tmp with 777, but when I put www.jdpropiedades.com.ar, a blank page appears. I dont know what to do, I´ve configured all as the manual says. Oh, my VPS uses virtualhost, by the way. Anybody ha

issue with sql 1054 error cakephp 1.1

2007-12-21 Thread clrockwell
Hello again, Issue is that local testing works great and remote does not, I'm not sure how to explain this, so I'll jump right in: The call in question : $r = $this->Exhibitoruser->findByuserId($id); In the sql output everything is exactly the same exact this last bit: this is the sql genera

Re: PHP Version 6 compatibilty

2007-12-21 Thread Chris Hartjes
On Dec 21, 2007 11:14 AM, bingomanatee <[EMAIL PROTECTED]> wrote: > > It better; PHP already doesn't "Support" PHP 4 so when 6 comes out, > 5's days are numbered. > > Unless we just do an end zone and all revert to PHP 3 ... :D > I follow the weekly PHP summaries via Zend Developer Zone and I get

Re: Events

2007-12-21 Thread bingomanatee
Its likely that you will have to do a lot of work to get any calendar to display your desired result. The phpCalendar code is a good place to work but no calendar will compute repetitions. You will have to create code to get the events which could possibly occur during the month being displayed.

Re: New To Cake PHP

2007-12-21 Thread Davide
Gourab singha wrote: > > I am new To Cake PHP .It is very difficult to me that communicate > Module,Controller,View To Each Other,Please Send me a simple coded Sorry, I have no time to post code samples and so on, but sometime ago, I posted on the blog[1] the resources I used for learning this fr

Re: PHP Version 6 compatibilty

2007-12-21 Thread bingomanatee
It better; PHP already doesn't "Support" PHP 4 so when 6 comes out, 5's days are numbered. Unless we just do an end zone and all revert to PHP 3 ... :D On Dec 19, 7:38 am, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On Dec 19, 2007 8:38 AM, Stefan <[EMAIL PROTECTED]> wrote: > > > > > I guess th

Re: How to remove the fieldset tags in $form->radio()

2007-12-21 Thread bingomanatee
I would suggest that the easiest solution is to hand code a radio element and feed it parameters for $fieldname (such as 'Users.gender') and $options (array('M' => 'Male', 'F' => 'Female')); If the $form class is not handling things as you would like you may find the quickest solution is to just b

Re: Multiple Controllers Single View

2007-12-21 Thread bingo
hi bingomanatee, thanks for you reply. I just found out that now you can directly call element from the controller. http://cakebaker.42dh.com/2007/12/21/rendering-elements-from-controllers/ On Dec 21, 10:18 am, bingomanatee <[EMAIL PROTECTED]> wrote: > There are two simple ways to handle shar

Re: How to display MS Word Uploaded file into the browser Using PHP

2007-12-21 Thread bingomanatee
You ultimately cannot directly display MS word inside a web page. You can allow users to download a MS word page, or within word, translate it into PDF or HTML formats which are viewable in a browser. --~--~-~--~~~---~--~~ You received this message because you are

Re: New To Cake PHP

2007-12-21 Thread bingomanatee
There are two projects in the manual on the cakephp.org site: * Setting up a user login system * Setting up a blog There are other examples of "first day CakePHP" at IBM.com; do a web search for IBM CakePHP for those. Given your questions, the first tutorial might help the most; for displaying

Re: include everywhere | app_controller.php

2007-12-21 Thread daphonz
Sure. You can use the controller callback functions in app_controller, listed here: http://tempdocs.cakephp.org/#TOC52711 So try doing something like: function beforeFilter() { /* Super controller logic that accesses a function in app_model or something */ return true; } If you need to

Re: RequestAction + Plugin = Apache Crash

2007-12-21 Thread subtropolis zijn
I just came across a couple of posts in the archive (search the archive for "apache crash") last night discussing similar problems. Do either of you use the Zend optimizer? Disabling this seems to have fixed the problem for some people. --~--~-~--~~~---~--~~ You rec

Re: Best Practice for multiple belongsTo associations (Cake 1.1)

2007-12-21 Thread subtropolis zijn
On Dec 21, 2007 6:04 AM, Chris Hawes <[EMAIL PROTECTED]> wrote: > > I have four tables: tasks, contacts, documents and companies. > > Multiple tasks can be assigned to either a contact, document or company. > > The problems is, I don't want to limit myself to just three tables, > and I'd rather no

Re: New To Cake PHP

2007-12-21 Thread Chris Hartjes
On Dec 21, 2007 10:10 AM, Gourab singha <[EMAIL PROTECTED]> wrote: > > I am new To Cake PHP .It is very difficult to me that communicate > Module,Controller,View To Each Other,Please Send me a simple coded > project that help me to understand the communication between > Module,Controller,View .Ple

Re: how can we create datagrind in cakephp using ajax helper

2007-12-21 Thread bingomanatee
I would look also on the Yahoo UI class libarary. You can set a CakePHP Ajax page to generate a JSON model and feed that into an Ajax datagrid class. Depending on your project, you need also to evaluate efficiency both in speed and bandwidth. For instance if speed was the only concern, we might j

Re: include everywhere | app_controller.php

2007-12-21 Thread Chris Hartjes
On Dec 21, 2007 10:33 AM, carSign <[EMAIL PROTECTED]> wrote: > > Hi - > > So I am trying to include a small snippet of code in each page of my > site. Is there a way to do this without modifying each controller? > > For example - I want to log visitors to my site. Each page visited > would have

Re: othAuth

2007-12-21 Thread daphonz
It looks like you need to set PHP to allow call-time pass by reference, which is technically depreciated, but works fine. You can do that by adding the following line to the .htaccess file in your cake directory: php_flag allow_call_time_pass_reference on Hope this helps. Casey On Dec 20, 5:4

New To Cake PHP

2007-12-21 Thread Gourab singha
I am new To Cake PHP .It is very difficult to me that communicate Module,Controller,View To Each Other,Please Send me a simple coded project that help me to understand the communication between Module,Controller,View .Please Don't attach and Mysql database table .Then it is hard to me to understa

Re: Date Ranges & Conditions

2007-12-21 Thread Baz
glad to help. On Dec 21, 2007 12:43 AM, Fabian <[EMAIL PROTECTED]> wrote: > > thanks baz that worked great =) > > On Dec 19, 7:52 pm, Fabian <[EMAIL PROTECTED]> wrote: > > $conditions = array("`date_added` > " . "'" . $startDate . "'", > > "`date_added` < " . "'" . $endDate . "'"); > > > > On Dec

Re: help with cake

2007-12-21 Thread bingomanatee
You might also find the routing documentation in the manual illuminating. I solve much of this by creating a Home_controller ; Home_controller- >uses = FALSE, and all the view stubs I want are in the views/home/ directory. For instance the site root '/' is mapped to '/home' via routing, and hand

include everywhere | app_controller.php

2007-12-21 Thread carSign
Hi - So I am trying to include a small snippet of code in each page of my site. Is there a way to do this without modifying each controller? For example - I want to log visitors to my site. Each page visited would have some information put into the database. URL User info tiestamp browser inf

Re: Multiple Controllers Single View

2007-12-21 Thread bingomanatee
There are two simple ways to handle shared views. One is to simply specify the $this->view property within the handling methods. The other is to redirect from one method to another, with a specific flag. For instance, say you have a class Foo_controller with a view rss($edition) method and you wa

Re: Class, filename and naming conventions

2007-12-21 Thread bingomanatee
I think for admin functionality and consistency with the general thrust of cakePHP you should consider the admin model that is implicit in CakePHP itself. (check the manual, under configuration or controller.) Your Admin_method() code can even choose a specific layout and view by changing its own

Re: How to display MS Word Uploaded file into the browser Using PHP

2007-12-21 Thread Ron Chaplin
Parag, As this is NOT a CakePHP specific issue, why do you even request assistance here? Secondly, there are many more details that would be needed to be known about your setup to even offer a solution. Please google this for yourself at least, and if you don't get any helpful results, try lookin

Re: How to display MS Word Uploaded file into the browser Using PHP

2007-12-21 Thread AD7six
On Dec 21, 2:26 pm, Parag <[EMAIL PROTECTED]> wrote: > Please Provide th solution Please provide th details. PS. Google is your best buddy. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post

Re: RequestAction + Plugin = Apache Crash

2007-12-21 Thread Martin Wood-Mitrovski
I had exactly the same issue, well, not with a plugin but i had a requestAction in my default layout to grab the nav for my admin section. I got a little bit further in debugging and found that any time a cake error occured (bad db credentials, missing view etc..) then apache would segfault be

How to display MS Word Uploaded file into the browser Using PHP

2007-12-21 Thread Parag
Please Provide th solution --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECT

Multiple Controllers Single View

2007-12-21 Thread bingo
hi, I have a single RSS feed generator that can data from multiple controller and generate the RSS. Currently I have it as an element and for each controller class, I have a view that call this element to generate the RSS feed. For instance. I was wondering is there any way in cakePHP 1.2, that

Re: Requesting picture in webroot but controller requested

2007-12-21 Thread Ron Chaplin
I have found that adding in a $html->image('sample.jpg', array('alt'=>'Sample Debug')); to a script and then viewing the source of the rendered page gives me some clue as to where the file is trying to be pulled from. On Fri, 2007-12-21 at 05:16 -0800, djiize wrote: > are your .htaccess files OK?

Re: Requesting picture in webroot but controller requested

2007-12-21 Thread Adam Royle
It is a paths issue - the image doesn't exist in the path specified. If you request a URL (html file, image, whatever) that doesn't not exist, it is automatically passed to index.php and subsequently passed through to cake's dispatcher as a page request. So make sure your image path is right and t

Re: Requesting picture in webroot but controller requested

2007-12-21 Thread djiize
are your .htaccess files OK? and Apache mod_rewrite activated? On 21 déc, 13:40, stefuNz <[EMAIL PROTECTED]> wrote: > hm no ... using the img folder doesn't work, too ... > in the pre-beta i began with it worked ... > Error: ImgController could not be found. is the error message > > cheers... >

Re: how can we create datagrind in cakephp using ajax helper

2007-12-21 Thread hydra12
Yes, you can. It's not so easy to get setup, but I've written a tutorial about it here: http://www.ntatd.org/mark/?p=29. Also checkout this post: http://extjs.com/forum/showthread.php?p=53728#post53728. It starts with me asking questions trying to get the datagrid working, then ends with me help

Re: Requesting picture in webroot but controller requested

2007-12-21 Thread stefuNz
hm no ... using the img folder doesn't work, too ... in the pre-beta i began with it worked ... Error: ImgController could not be found. is the error message cheers... On 21 Dez., 12:48, djiize <[EMAIL PROTECTED]> wrote: > maybe because images folder is "img" > try using $html->image helper fun

Re: how can we create datagrind in cakephp using ajax helper

2007-12-21 Thread [EMAIL PROTECTED]
thanks for your reply, I still have one question - Can i used this with cakePHP? On Dec 21, 3:28 pm, dizz <[EMAIL PROTECTED]> wrote: > There isn't an Ajax helper for a datagrid but take a look at extjs.com > > On Dec 21, 11:35 am, "[EMAIL PROTECTED]" > > <[EMAIL PROTECTED]> wrote: > > Hi, > > i

Best Practice for multiple belongsTo associations (Cake 1.1)

2007-12-21 Thread Chris Hawes
Hello, I'm currently designing a database for an app I'm writing, and have a question on something. I have four tables: tasks, contacts, documents and companies. Multiple tasks can be assigned to either a contact, document or company. The problems is, I don't want to limit myself to just thr

Re: Requesting picture in webroot but controller requested

2007-12-21 Thread djiize
maybe because images folder is "img" try using $html->image helper function in your views On 21 déc, 12:35, stefuNz <[EMAIL PROTECTED]> wrote: > Hi.. > > I really don't get it ! I'm using CakePHP 1.2, nightly build from 18. > dec > > when i request /cake/images/picture.png, cake is looking for >

Requesting picture in webroot but controller requested

2007-12-21 Thread stefuNz
Hi.. I really don't get it ! I'm using CakePHP 1.2, nightly build from 18. dec when i request /cake/images/picture.png, cake is looking for ImagesController ! thats very confusing! how can i make cake display the picture? cheers, stefan --~--~-~--~~~---~--~~ You

Shibboleth, LDAP and CakePHP

2007-12-21 Thread Penfold
Hi All, I'm working on a project which will have a customer focus to college and universities; currently there is a big push for the adoption of shibboleth for single sign on. I'm trying to work out if it will be a major issue trying to integrate shibboleth authentication into our cakePHP site.

RequestAction + Plugin = Apache Crash

2007-12-21 Thread MrTufty
Hi guys, Found a strange issue in the current SVN (I'm using branches, so I'm currently on r6179). In my default layout I use 2 requestAction calls to pull in data for elements. This works 100% fine, in the main part of the app. I use a plugin to handle the backend administration of the site, b

Re: how can we create datagrind in cakephp using ajax helper

2007-12-21 Thread dizz
There isn't an Ajax helper for a datagrid but take a look at extjs.com On Dec 21, 11:35 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > i just want to know , > how can we create datagrind in cakephp using ajax helper > I have post this topic before this also > but I didn't find any sol

Re: array reformat

2007-12-21 Thread abstract
Maybe postConditions(...) is what You are looking for. It's a controller's method, and You can use it like this: $data = $this->postConditios($this->data) On Dec 20, 4:55 pm, mithnik <[EMAIL PROTECTED]> wrote: > In case someone needs this here is the solution: > no cake used: > /* > * Usage $data

Re: RESTful CakePHP

2007-12-21 Thread dizz
I just found that it does pass the ID just not the same way that non- restful cake works. You need to grab the id from $this->params['id'] On Dec 21, 4:17 pm, dizz <[EMAIL PROTECTED]> wrote: > Hello, > > I see in the code that there is plans to make CakePHP RESTful. > > Does this functionality w

RESTful CakePHP

2007-12-21 Thread dizz
Hello, I see in the code that there is plans to make CakePHP RESTful. Does this functionality work yet? I have been testing with a Post/ Posts model/controller and have added the Router::mapResources('posts'); to the routes file. For some reason if I go to /cakeapp/posts/1 it sends me back to t