Re: Server has broken links

2009-10-14 Thread Michael Gaiser
Cakes error log is empty and debug is set to 2. Any ideas why there isnt anything being written to the debug log? Thanks for the help ~Michael On Fri, Oct 9, 2009 at 8:51 AM, brian bally.z...@gmail.com wrote: Set debug to 2. When set to 0, Cake displays a 404 message. It's probable that you

Re: Server has broken links

2009-10-14 Thread Michael Gaiser
When I uncomment Configure::write('App.baseUrl', env('SCRIPT_NAME')); in my core.php it seems to work but feels like a cheat. Any reason mod_rewrite isnt working with the default setup? when I did a php info, it shows rewrite_mod loaded. ~Michael

Re: lost stylesheet depending on $html-link format ??

2009-10-14 Thread AD7six
On 14 oct, 04:18, Jas mciver.ja...@gmail.com wrote: Looking at the page source, everything looks as if it should be working. The page is functional, just missing css. Its only when I pass a parameter that this happens. I've tried taking everything out of the view and the controller action,

Re: Server has broken links

2009-10-14 Thread AD7six
On 14 oct, 08:09, Michael Gaiser mjgai...@gmail.com wrote: When I uncomment Configure::write('App.baseUrl', env('SCRIPT_NAME')); in my core.php it seems to work but feels like a cheat. Any reason mod_rewrite isnt working with the default setup? when I did a php info, it shows rewrite_mod

Re: How to make this query the Cake way?

2009-10-14 Thread Amit Rawat
Try the Ad-hoc joins:- http://bakery.cakephp.org/articles/view/quick-tip-doing-ad-hoc-joins-in-model-find --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to

new to cake-php

2009-10-14 Thread aravind raj
i am new to cake-php .. can get some free simple cakephp applications ... -- Aravind Think Global Act Local --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to

Re: lost stylesheet depending on $html-link format ??

2009-10-14 Thread Jas
my template is views/layouts/simplecurve.ctp and this is the contents !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http:// www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd html xmlns=http://www.w3.org/1999/xhtml; head ?php echo $html-charset(); ? meta http-equiv=content-type

Re: Controller and Session in View

2009-10-14 Thread Prof. No Time
Thanks Brian, I am using the AUTH component. I want to access Auth.user() in the view and I think the only way I can do that is if I can get the controller in the view so I can say this-controller-Auth-user(). I guess this is the wrongest way to go right? But I am new and just floating around

Re: model relations: Problems to run local functions over Model relations

2009-10-14 Thread Dr. Loboto
AppModel Object - cake did not find your model file and created AppModel as Miles and Brian both already said. On Oct 14, 2:57 am, Obelix obelixm...@web.de wrote: Hello, i have test if Model available and it's look like good. The Programcode - debug($this-CmsFile-CmsFolder); gives me

Re: lost stylesheet depending on $html-link format ??

2009-10-14 Thread Dr. Loboto
Your error: link href=../css/simplecurve.css rel=stylesheet type=text/css / Must be: echo $html-css('simplecurve'); On Oct 14, 2:42 pm, Jas mciver.ja...@gmail.com wrote: my template is views/layouts/simplecurve.ctp and this is the contents !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0

Submitting form data to a preview page before adding to database

2009-10-14 Thread aylaujp
I have this registration form (user/add/) that allow users to add username, contact info and info about themselves. It works well and all when I want to submit it directly to the database, but now I want to add another step in there, a Preview. So it would be Form Preview/Edit Publish. Here's

need text box for ajax input and output.

2009-10-14 Thread Jiru
//select.ctp ?php if (!empty($options)) { foreach ($options as $k = $v) { echo option value='$k'$v/option; } } ? here it shows the values in dropdown list when i used to select it using Ajax. But for the same process i need it in text boxes, both the input and output. How i can do it ?

Re: lost stylesheet depending on $html-link format ??

2009-10-14 Thread Jas
Yes! Thank you Dr. Loboto, you fixed it. Cant believe I missed that. On Oct 14, 7:16 pm, Dr. Loboto drlob...@gmail.com wrote: Your error: link href=../css/simplecurve.css rel=stylesheet type=text/css / Must be: echo $html-css('simplecurve'); On Oct 14, 2:42 pm, Jas mciver.ja...@gmail.com

Re: model relations: Problems to run local functions over Model relations

2009-10-14 Thread Obelix
Yes i have seen it. But i dont't know what is the Problem with the name Standard. I have generate the model and the Controller with 'Cake builder'. Cake has recognized the table and also the models and controllers. At the next Step i have test the naming Standard with -

autosuggest and auto-completion in text boxes

2009-10-14 Thread luke
Hii, developers, in my ajax auto complete program , // add.ctp div class=Users form ?php echo $form-create('User');? fieldset legend/legend ?php echo $form-select('country_id',array($countries),null,array ('id'='countries'),false);

Re: pageTitle and title_for_layout in CakePHP 1.3 views

2009-10-14 Thread malamalca
Ceryl, your're absolutely right. Didn't occur to me that i can use $this-set('title_for_layout',...); in view. Tnx. On 11 okt., 21:09, Céryl c.a.h.wilt...@student.tue.nl wrote: The echo Title_for_layout can be in the HEAD section of your layout. You can then place: ?php $this-set('title',

Re: How i change default _ in controllers default name?

2009-10-14 Thread Mateusz Kaczanowski
If you want to connect you are using url request or AMF protocol? --~--~-~--~~~---~--~~ 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

Re: need text box for ajax input and output.

2009-10-14 Thread Mateusz Kaczanowski
In ajax script you can deine field and value. For example field will be id of textarea and value will be a value. Then you can post this data to your controller. $this-params this function you can recive data. 2009/10/14 Jiru jiransl...@gmail.com //select.ctp ?php if (!empty($options)) {

Re: new to cake-php

2009-10-14 Thread Mateusz Kaczanowski
all you need is on book.cakephp.org //Manual. Some very simple apllications. 2009/10/14 aravind raj aravind0...@gmail.com i am new to cake-php .. can get some free simple cakephp applications ... -- Aravind Think Global Act Local -- Pozdrawiam, Mateusz Kaczanowski

Re: Submitting form data to a preview page before adding to database

2009-10-14 Thread Mateusz Kaczanowski
Hey. you can do this by adding ajax script. For example if someone will press preview button ajax script will send a form to view and return with html. 2009/10/14 aylaujp ayla...@gmail.com I have this registration form (user/add/) that allow users to add username, contact info and info about

How to switch between databases dynamically by session value

2009-10-14 Thread Christian
Hello, I read several threads about this but not found a final cake-like solution. A lot of posts are about switching based on URLs, but I need to switch to another testcases database connection based on a session value I set in an action. This testcases connection should be used until end of

Re: Help with advanced setup

2009-10-14 Thread Sam Sherlock
I often have something like (see edit of you previous message): (but I have bake set up and that is worth doing IMHO quite pain free too) -- cake is on the path so cd ~/www cake bake mysite ... bake one /cake /public_html /www /mysite /models

Re: Debug Error! Makes no sense!

2009-10-14 Thread majna
By posting error messages in debug mode? [Configure::write('debug', 1);] On Oct 13, 8:46 pm, Dave Maharaj :: WidePixels.com d...@widepixels.com wrote: I stripped out the controller function leaving it like this function view($id) {    $this-layout = 'default_right';    $this-set('reports',

How to implement multiple pagination with SAME model on a single view?

2009-10-14 Thread doze
Hello, Is there a way to do multiple pagination with same model on a single view? I know about the $options['model'] in pagination to do multiple paginations in single view with different models, but what about multiple paginations with same model. The model contains a datetime column and I'm

How to search from table

2009-10-14 Thread lokesh sharma
Hi, In my cakephp web application I have to search data from single table on the basis of city and name and display result in another page.ctp. Please tell me about any search plugin or find condition or the way to pass query to search data from my table. I've already tried some tutorial but

I have problem in search.

2009-10-14 Thread lokesh sharma
Hi,I have problem in search. // in the model function doSomething() { $this-query('select * from basicdetail'); } // in the controller function searchtry(){ return $this-MyModel-doSomething(); } but in searchtry.ctp I can't get my data, I've checked through logerror and I got that my for loop is

Re: I have problem in search.

2009-10-14 Thread Alexandru Ciobanu
Hi,I have problem in search. // in the model function doSomething() { $this-query('select * from basicdetail'); } // in the controller function searchtry(){ return $this-MyModel-doSomething(); } but in searchtry.ctp I can't get my data, I've checked through logerror and I got that my

Re: Help with advanced setup

2009-10-14 Thread Alexandru Ciobanu
On 10/14/2009 8:37 AM, Dave Maharaj :: WidePixels.com wrote: I am trying to re-arrange the folders on the server I would like to place cake folder outside www directory Here's my setup: I've placed the 'cake' folder in /usr/share/cakephp-1.2.5/ And edited app/webroot/index.php: if

Form helper and error messages

2009-10-14 Thread jburns
I have created a number of add/edit view using the form helper. Here is a really simplified example: ?php echo $form-create('User'); echo $form-input('first_name'); echo $form-input('last_name'); echo $form-end('Save'); ? I am not calling

Re: Form helper and error messages

2009-10-14 Thread Rick
Here is a little help: http://book.cakephp.org/view/198/options-error Also there are 'isFieldError' and 'error' methods available also. Rick On Oct 14, 8:28 am, jburns jeremybu...@me.com wrote: I have created a number of add/edit view using the form helper. Here is a really simplified

Re: How to search from table

2009-10-14 Thread Céryl
This just sound like the regular Cake find-action In the action for your view, just use $this-set($data, $this-yourModel-find('all', array('conditions' = array('yourModel.city' = $varCity, 'YourModel.name' = $varName))); And the you can acces the data from your table in the view you want by

Re: How to implement multiple pagination with SAME model on a single view?

2009-10-14 Thread Martin Westin
The support for multiple pagination on the same page is not complete. The source and API reveals that work did start on this feature but it was not finished for 1.2. I am not sure if it is suppsed to be in 1.3 or if you have to wait for 2.0. On Oct 14, 1:30 pm, doze doze...@gmail.com wrote:

Re: jquery substitute for ajax-observeField

2009-10-14 Thread Marcelo Andrade
On Tue, Oct 13, 2009 at 4:28 PM, hahmadi82 hahmad...@gmail.com wrote: If anyone could help with this it would be much appreciated. I'm not a jQuery expert, but it's not so hard do accompplish that. I guess making the appropriate ajax call from a .onchange() event should do the trick. If I'm

Re: Server has broken links

2009-10-14 Thread Michael Gaiser
Nope. Already went though that page and everything was set right. On Tue, Oct 13, 2009 at 11:30 PM, AD7six andydawso...@gmail.com wrote: On 14 oct, 08:09, Michael Gaiser mjgai...@gmail.com wrote: When I uncomment Configure::write('App.baseUrl', env('SCRIPT_NAME')); in my core.php it

Re: Submitting form data to a preview page before adding to database

2009-10-14 Thread Marcelo Andrade
On Wed, Oct 14, 2009 at 4:36 AM, aylaujp ayla...@gmail.com wrote: I have this registration form (user/add/) that allow users to add username, contact info and info about themselves. It works well and all when I want to submit it directly to the database, but now I want to add another step in

Re: find __() function parameters in /app and update *.po - automated

2009-10-14 Thread Toby Ashley
While this discussion is going on, I thought I'd raise / ask something... In a recent project, I needed to make it easy for administrators to be able to edit the text used throughout the site. The site itself runs in 12 languages, and as a result I have 12 *.po files, one per territory. The

Re: How i change default _ in controllers default name?

2009-10-14 Thread thodoris
AMF. Actually FB4beta2 installs default the ZEND amf in the webroot. I am trying to make a new data service but when i locate the rooms_controler.php of cakephp it give me an error that don't support filename with _. It's my second day in cakephp world and will be very glad if someone can give

What to use? Elements? Behaviors? Helpers?

2009-10-14 Thread gimperdan...@gmail.com
On the index of my website I get content from several different tables in the database. Which is best to use? Elements? Behaviors? or Helpers? As far as I understand the index(home.ctp) page doesn't have a model or controller. --~--~-~--~~~---~--~~ You received

Re: What to use? Elements? Behaviors? Helpers?

2009-10-14 Thread Céryl
I don't really know the answer, but just to add to that, the home.ctp has a controller, it's the pages_controller. And also, you can of course use actions from other controllers and models in the pages-views by using Cake's requestAction. I use it sometimes to get for instance number of posts,

Re: What to use? Elements? Behaviors? Helpers?

2009-10-14 Thread gimperdan...@gmail.com
Thanks. That helps a little. From what I've been reading it's better to use Elements for HTML chunks and Helpers for logic. But requestAction seems like a good option too. On Oct 14, 10:54 am, Céryl c.a.h.wilt...@student.tue.nl wrote: I don't really know the answer, but just to add to that, the

Re: executing queries from a .sql file in the console

2009-10-14 Thread Jorge Horacio Cué Cantú
Other difference, I am using the $dataSource-_execute() inside a Controller, I untherstand You want to use it inside a Shell. Is this correct?, Is there a difference in environment? Regards. El 14 de octubre de 2009 09:27, Yuncong Zhang njit...@gmail.com escribió: Thank you Jorge, The

HABTM relation

2009-10-14 Thread Benedikt R.
Hi! If i want to add a record to TABLE A, is there an efficient way to add a record in the JOIN TABLE for many (or all) records in TABLE B? I try to build a simple task management. An user adds a task and there will be added a connection to each other user in the same group as the current user.

Re: executing queries from a .sql file in the console

2009-10-14 Thread Yuncong Zhang
Yeah, I use it inside a Shell inheritance. uses('model'.DS.'connection_manager'); $db = ConnectionManager::getInstance(); $dataSource = $db-getDataSource('default'); $sql = '*blahblah*'; $resultSrc = $dataSource-_execute($sql); $results=array(); while($data=$dataSource-fetchResult()) {

Re: What to use? Elements? Behaviors? Helpers?

2009-10-14 Thread Eber Freitas Dias
Hi! The fact that home.ctp is the default home for your app it doesn't mean you have to use it! You can just re declare a new home in your routes using the controller you want. Something like: Router::connect('/', array('controller' = 'mycontroller', 'action' = 'index')); The second argument

Re: Obama: Afghanistan decision in 'coming weeks'

2009-10-14 Thread brian
On Tue, Oct 13, 2009 at 8:46 PM, Larry E. Masters aka PhpNut php...@gmail.com wrote: Do not send spam like this to the CakePHP google group, I will block your account if it happens again. -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string

Re: What to use? Elements? Behaviors? Helpers?

2009-10-14 Thread gimperdan...@gmail.com
I kinda understand what you're saying, but I am rather lost with some concepts in Cake. I have to read more first... Thanks... PS: legal seu site! On Oct 14, 11:20 am, Eber Freitas Dias eber.frei...@gmail.com wrote: Hi! The fact that home.ctp is the default home for your app it doesn't mean

Ajax call with external redirect doesn't work

2009-10-14 Thread marco.rizze...@gmail.com
Hi I must do a ajax call to an external site. I use a proxy to circumvent the Same Origin Policy. My action-controller proxy is: function proxy($url) { $this-redirect($url,301,true); } In my view when I do the ajax call I get the error : Error: Http:Controller could not be

Re: What to use? Elements? Behaviors? Helpers?

2009-10-14 Thread red
As I understand, you try to build some kind of dashboard. Check this tutorial, maybe this works for you: http://teknoid.wordpress.com/2008/12/16/how-to-build-a-dashboard-for-your-application-in-cakephp/ On Oct 14, 5:54 pm, gimperdan...@gmail.com gimperdan...@gmail.com wrote: I kinda understand

Re: Controller and Session in View

2009-10-14 Thread brian
On Wed, Oct 14, 2009 at 4:00 AM, Prof. No Time libertylivingst...@gmail.com wrote: Thanks Brian, I am using the AUTH component. I want to access Auth.user() in the view and I think the only way I can do that is if I can get the controller in the view so I can say

Re: find __() function parameters in /app and update *.po - automated

2009-10-14 Thread Miles J
Additionally on the subject of PhpNut's suggestion. What if we change the text string in the view (english one) and then the translated ones wont match anymore because the msgid has changed. And if we generate new po files then we would have to translate them all over again. Thats primarily my

Re: Debug Error?

2009-10-14 Thread brian
On Tue, Oct 13, 2009 at 4:16 PM, Dave Maharaj :: WidePixels.com d...@widepixels.com wrote: I ran a find and replace for all debug(); Still same thing. I meant the Debugger class, not debug(). Like Debugger::log(), Debugger::dump(), etc. If Configure's debug setting is 0 you'll get a fatal

Fatal error: BehaviorCollection::trigger()

2009-10-14 Thread Dave Maharaj :: WidePixels.com
Anyone seen this? The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition 'ValidationBehavior' of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load

Re: model relations: Problems to run local functions over Model relations

2009-10-14 Thread brian
How does the model class look? It should be: class CmsFolder extends AppModel { Is that correct? On Wed, Oct 14, 2009 at 4:55 AM, Obelix obelixm...@web.de wrote: Yes i have seen it. But i dont't know what is the Problem with the name Standard. I have generate the model and the Controller

Re: Deployment issue - must be simple but I am missing it

2009-10-14 Thread me me me
On Oct 12, 2:47 pm, FrederickD manzanillo.engl...@gmail.com wrote: My site is herehttp://bgnation.ca/reporting/. The initial page renders fine (I haven't replaced the lorem ipsum yet... mea culpa...). However, when I try to log in on the side bar I receive a 404 error

Re: Deployment issue - must be simple but I am missing it

2009-10-14 Thread FrederickD
Thanks for the reply. The debug value has always been '2' so that I see the poopy pants on deployment. I actually have made no other changes than the .htaccess files until I was approaching vague awareness from the group. So far I'm still in the dark. I can start over easily enough. I still am

Re: pageTitle and title_for_layout in CakePHP 1.3 views

2009-10-14 Thread mark_story
You are not limited to title_for_layout either. You can set any view variable and use that. -Mark On Oct 11, 1:30 pm, mmalca m...@nahtigal.com wrote: There was an elegant way to set page title anywhere in view using CakePHP 1.2 - with $this-pageTitle = 'new title';  This has been removed in

RE: Debug Error?

2009-10-14 Thread Dave Maharaj :: WidePixels.com
Nothing out of the ordinary. No there was none (Debugger::log(), Debugger::dump() anything like that added anywhere) Just the data sent back from the controller. Just weird how nothing was reported when debug was set to 1 or 2 but at 0 it just died. I just cleared the entire view and

Re: How to switch between databases dynamically by session value

2009-10-14 Thread brian
Are you certain that the settings for 'testcases' are correct? Did you by any chance name the database 'testcases' instead of 'db_testcases'? On Wed, Oct 14, 2009 at 6:24 AM, Christian christian.lusz...@gmail.com wrote: Hello, I read several threads about this but not found a final cake-like

Re: Debug Error?

2009-10-14 Thread Miles J
Well if you remove the view and it works, then its obviously something wrong in the view. Your best bet is to remove sections of the view 1 by 1 to see what errors. On Oct 14, 9:45 am, Dave Maharaj :: WidePixels.com d...@widepixels.com wrote: Nothing out of the ordinary. No there was none

Re: find __() function parameters in /app and update *.po - automated

2009-10-14 Thread Larry E. Masters aka PhpNut
Toby, It sounds like you are trying to use translations as a way to also change text. Examples (forgive me in advance if google did not translate these properly): Welcome to the home page of CakePHP the best PHP framework for rapidly building applications. Translated to German this would be:

Re: model relations: Problems to run local functions over Model relations

2009-10-14 Thread Obelix
It's a model in a plugin. The name from the plugin is CMS. The class is defined as follows class CmsFolder extends CmsAppModel { On 14 Okt., 18:30, brian bally.z...@gmail.com wrote: How does the model class look? It should be: class CmsFolder extends AppModel { Is that correct? On

Re: find __() function parameters in /app and update *.po - automated

2009-10-14 Thread Larry E. Masters aka PhpNut
Miles, It is not a suggestion it is the correct way the code should be used. As I stated in the previous email the pot file is reopened, using poedit for example, and you merge the changes from your code. Your .po and .mo files will have the correct msgid and your translators will be able to

Re: find __() function parameters in /app and update *.po - automated

2009-10-14 Thread Pablo Viojo
We are using slugs for translations in our site, and our site is quite big... :) Pablo Viojo pvi...@gmail.com http://needish.com On Wed, Oct 14, 2009 at 1:59 PM, Larry E. Masters aka PhpNut php...@gmail.com wrote: Miles, It is not a suggestion it is the correct way the code should be

Re: find __() function parameters in /app and update *.po - automated

2009-10-14 Thread Toby Ashley
I am using this system mainly for translations, yes. The site runs in 12 languages, and currently contains over 250 ctp files. However, an added benefit of the l18n system for me is that the administrator can also make adjustments to the text on the English site, not just the translated

Re: find __() function parameters in /app and update *.po - automated

2009-10-14 Thread Rob
as always helpfull ;) thanks guys. i use full sentences, idd way easier. shell script works like charm. i guess it gets compressed/cached by cake anyway (on debug 0), right? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Extending Cake Shell Classes

2009-10-14 Thread vb13
I have a number of shell scripts and they share common functions so I though it would be smart to have a common base class MyShell that extends Shell and have all my classes extend MyShell. Well, it turns out if I do so, initialize() method of subclasses is not getting called. See line 316 in the

Re: How to convert tinyint(1) back to boolean?

2009-10-14 Thread Xhaphir
Hi there, sorry for the late response. I thought I will get a email if someone responds. Thanks for your help so far but that is not solving my problems... What I would like to do is: - read all fields from my database Table - display all Integers as Integers and all booleans as booleans

Re: What to use? Elements? Behaviors? Helpers?

2009-10-14 Thread gimperdan...@gmail.com
Ok... thanks for the tutorial. It helped some. This is my main problem right now... that in order to use model and controllers they need to be attached to a database table. And I don't always want to have a database table that corresponds to that model. For instance: I have 3 tables: artists

Re: What to use? Elements? Behaviors? Helpers?

2009-10-14 Thread Eber Freitas Dias
Hey! First of all, you never route something to a Model... Take a look at this portion of the CakePHP Book: http://book.cakephp.org/view/13/Basic-Principles-of-CakePHP In fact, you should read all the CakePHP Book in order to understand things better. For instance, you should need to write any

Selecting empty rows?

2009-10-14 Thread BeroFX
How can I select records where a column doesn't contain any value, like ''. Doing it like this $this-Document-find('all', array ('conditions'=array('Document.title'=''))); produces a WHERE `Document`.`title` = NULL query and that's not right. What I need is a WHERE title='' query returned.

Re: Paginator sort field and direction indicator?

2009-10-14 Thread nMac
Guys, below what I did. I think this is better than all the alternatives: table cellspacing=0 class=listingTable tr ? $fields = array('Smr.startDate' = 'Date', 'Smr.status' = 'Status', 'Smr.title' =

Problem to select right value on $form-input (select) with text index

2009-10-14 Thread Leonardo Hackin Freire
Hi dudes, I'm getting a little problem when populate a select through the $form-input. In my controller Contato, where i save the client_id field, I populate an variable calling clientes with this line: $clientes = $this-Cliente-find('list', array('order' = array('Cliente.razaoSocial ASC')));

Re: Ajax update div, cakephp 1.2

2009-10-14 Thread hahmadi82
I'd like to know the same thing... How do you add something or remove something from a div via ajax Laburno wrote: Hi all! Could someone explain to a total noob like me, what is the best method to simply update a div with ajax, using cake 1.2? I wish to have a link that call a search

Re: What to use? Elements? Behaviors? Helpers?

2009-10-14 Thread gimperdan...@gmail.com
ok, thanks everyone, I got something going on. It works, i just hope it's the proper way to do it. On Oct 14, 3:15 pm, Eber Freitas Dias eber.frei...@gmail.com wrote: Hey! First of all, you never route something to a Model... Take a look at this portion of the CakePHP

Re: how to deal with empty data in index-views (example inside...)

2009-10-14 Thread DigitalDude
Hey Martin, interesting idea, really! I thought of such a solution for maybe new messages that a user has or like you pointed out, files etc. I think I should take some time to think about my database structure, there may be a few things I could improve and make things a little smoother and

Re: retrieve online status of a user while logged in

2009-10-14 Thread DigitalDude
Hey, that sounds nice, I think I'll give it a try and make an example of this. I think most apps use a separate Javascript-Client for these purposes, but I have to look for infos about that a little longer the next few weeks... Regards, DD On 13 Okt., 07:39, John Andersen

How to create a gettext-catalogue on Windows??

2009-10-14 Thread DigitalDude
Hey, I'm using the gettext-method in my app to make it multilingual. For the catalogue, I installed PoEdit on my Windows XP machine. That's not such a big problem, as I can open a catalogue file and edit it. But how can I let cake build up a catalogue on my XP machine? There is a way, I know

Re: How to create a gettext-catalogue on Windows??

2009-10-14 Thread Miles J
You use the command line and it has an option of building it. On Oct 14, 2:31 pm, DigitalDude e.blumsten...@googlemail.com wrote: Hey, I'm using the gettext-method in my app to make it multilingual. For the catalogue, I installed PoEdit on my Windows XP machine. That's not such a big

Re: gwoo Leaving CakePHP??

2009-10-14 Thread robustsolution
If this is true good luck for him and for everyone in this great community. everyday I discover that cake is something that should be delivered as a curriculum in the academic institutes like cisco and c# On Oct 15, 1:18 am, Adam adam.pars...@pearson.com wrote: [gwoo] resigned from the Cake

Re: gwoo Leaving CakePHP??

2009-10-14 Thread Adam
Looking at some irc logs its true and he left a week ago. Starts Oct 15th, 15:40 PhpNut: jose_zap actually he [gwoo] resigned over a week ago PhpNut: right before I took the project over again Ceeram: wouldnt it be great if PhpNut and Gwoo were both still on the project Ceeram: disagreement

How do I set session.save_path?

2009-10-14 Thread number9
Hi, I've setup an install so the cake and app folder are in the /etc/ folder and the webroot/tmp/config folders are in the webroot (so many sites can share the same codebase). I'm getting the following errors however: Warning (2): session_start() [function.session-start]: open(/tmp/

Re: How do I set session.save_path?

2009-10-14 Thread number9
OK - I have managed to find this value, but I have no idea what to set it to. I have moved the TMP folder into the webroot - but WEBROOT . TMP / settings/ doesn't seem to be working? On Oct 15, 1:58 am, number9 xpozit...@gmail.com wrote: Hi, I've setup an install so the cake and app folder

Re: Selecting empty rows?

2009-10-14 Thread brian
On Wed, Oct 14, 2009 at 5:00 PM, BeroFX ber...@gmail.com wrote: How can I select records where a column doesn't contain any value, like ''. Doing it like this $this-Document-find('all', array ('conditions'=array('Document.title'=''))); produces a WHERE `Document`.`title` = NULL query and

Re: Problem to select right value on $form-input (select) with text index

2009-10-14 Thread brian
Cake only handles integer primary keys, AFAIK. On Wed, Oct 14, 2009 at 4:41 PM, Leonardo Hackin Freire leohac...@gmail.com wrote: Hi dudes, I'm getting a little problem when populate a select through the $form-input. In my controller Contato, where i save the client_id field, I populate an

New to CakePHP issue loggin IP

2009-10-14 Thread PatrickTalmadge
I'm new to CakePHP and working on a project where I need to log the client IP when they register. When it saves to the DB the IP doesn't save. This is the code I currently have in the controller: class UsersController extends AppController { var $name = 'Users'; var $helpers = array('Html',

DboSource-query() increases memory unlimitedly

2009-10-14 Thread Sho Shimauchi
My Program's memory usage increses when Model-query() is called. I found out that a cache DboSource-_queryCache is not flushed in source code. https://trac.cakephp.org/browser/trunk/cake/1.2.x.x/cake/libs/model/datasources/dbo_source.php#L211 In DboSource-query(), DboSource-fetchAll() is called

Re: New to CakePHP issue loggin IP

2009-10-14 Thread Brett Wilton
I haven't tried getClientIP() but I'd check that you have the field name correct etc, try putting something known in. As an alternative I've used $_SERVER['REMOTE_ADDR'] in the past which does work. http://wiltonsoftware.com --~--~-~--~~~---~--~~ You

Re: gwoo Leaving CakePHP??

2009-10-14 Thread Larry E. Masters aka PhpNut
Adam, Since being informed by gwoo that he was leaving the project a couple weeks ago, I have stepped back into a more active role in the project. At this time I have not selected a new project manager but you can be assured the project will go on. The lead developers are as active as ever on the

Re: gwoo Leaving CakePHP??

2009-10-14 Thread O.J. Tibi
Thanks Garett for all the good Cake. May you find joy in your life's new direction. Larry, our faith is in you. You guys are the best. Bake on! Cheers, OJ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP

Refresh page on login / out

2009-10-14 Thread Dave Maharaj :: WidePixels.com
I have a login module on the side of each page if not logged in. Problem is when a user logs in or out from the home page which is the $this-Auth-loginRedirect and $this-Auth-logoutRedirect it still shows logged in or login. How can i refresh the page or something so the page updates correctly?